Skip to content

Commit

Permalink
Collapse contributor fields into a single field
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Aug 12, 2024
1 parent 714adfa commit 66cc3c8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Drupal/Islandora go library
Generate an Open API spec based on your Islandora data model

```
./go-islandora generate node-structs \
go-islandora generate node-structs \
--node-cex-yaml=path/to/drupal/config/sync/node.type.islandora_object.yml \
--output=api.yml
go-islandora generate sheets-structs --output=workbench.yml
```
8 changes: 1 addition & 7 deletions cmd/sheetsStructs.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@ func sheetsFields() []CsvColumn {
"Title": "title",
"Full Title": "field_full_title",
"Make Public (Y/N)": "published",
"Contributor Name 1": "field_linked_agent.name",
"Contributor Relator 1": "field_linked_agent.rel_type",
"Contributor Type 1": "field_linked_agent.vid",
"ORCID Number 1": "field_linked_agent.entity.field_identifier.attr0=orcid",
"Contributor Status 1": "field_linked_agent.entity.field_contributor_status",
"Contributor Email 1": "field_linked_agent.entity.field_email",
"Contributor Institution 1": "field_linked_agent.entity.field_relationships",
"Contributor": "field_linked_agent",
"Related Department": "field_department_name",
"Resource Type": "field_resource_type",
"Genre (Getty AAT)": "field_genre",
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.22.2
require (
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1
github.com/oapi-codegen/oapi-codegen/v2 v2.3.0
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
gopkg.in/yaml.v2 v2.4.0
)

Expand All @@ -22,7 +22,6 @@ require (
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/perimeterx/marshmallow v1.1.5 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/cobra v1.8.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/text v0.15.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU=
github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0=
golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
Expand Down
8 changes: 1 addition & 7 deletions workbench/workbench.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 66cc3c8

Please sign in to comment.