Skip to content

Commit

Permalink
Metadata updates 962 1044 1043 828 827 826 820 825 1053 (#886)
Browse files Browse the repository at this point in the history
* Update import manifest, importer guide & caralog_controller

* First spec

* Adds new fields

* Linting

* Update

* Fix error

* Fix error

* updates

* Reinstate test

* Fix errors

* Change phrase

* Change phrase

* Change phrase

* Update

* Update

* Change to disclaimer to ssm

* Fix spelling error
  • Loading branch information
jendiamond authored Aug 20, 2021
1 parent 16593c7 commit b479bca
Show file tree
Hide file tree
Showing 25 changed files with 473 additions and 109 deletions.
2 changes: 1 addition & 1 deletion app/assets/csv/import_manifest.csv
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Object Type,Title,Item ARK,Parent ARK,Rights.copyrightStatus,File Name,AltIdentifier.local,AltTitle.other,Binding note,Condition note,Coverage.geographic,Date.creation,Date.normalized,Description.caption,Description.fundingNote,Description.latitude,Description.longitude,Description.note,Format.dimensions,Format.extent,Format.medium,Language,Name.architect,Name.photographer,Name.repository,Name.subject,Name.repository,Opac url,Project Name,Publisher.publisherName,Relation.isPartOf,Rights.countryCreation,Rights.rightsHolderContact,Rights.statementLocal,Subject,Type.genre,Type.typeOfResource,Place of origin,AltTitle.uniform,Support,Summary,Page layout,Text direction,viewingHint,IIIF Range,Illustrations note,Provenance; Description.history,Table of Contents; Description.tableOfContents,Subject.conceptTopic,Subject.descriptiveTopic,Collation,Foliation note,Foliation,Illuminator,Name.illuminator,Name.lyricist,Name.composer,Scribe,Name.scribe,Masthead,Representative image,Featured image,Tagline,Subject geographic,Subject temporal,Translator,Name.translator,Commentator,Name.commentator,Colophon,Finding Aid URL, Alt ID.url, Rubricator,Name.rubricator,License,Illustrator,Name.illustrator,Calligrapher,Name.calligrapher,Editor,Name.editor,Engraver,Name.engraver,Note,Printmaker,Name.printmaker,Contents note,Description.contents
Object Type,Title,Item ARK,Parent ARK,Rights.copyrightStatus,File Name,AltIdentifier.local,AltTitle.other,Binding note,Condition note,Coverage.geographic,Date.creation,Date.normalized,Description.caption,Description.fundingNote,Description.latitude,Description.longitude,Description.note,Format.dimensions,Format.extent,Format.medium,Language,Name.architect,Name.photographer,Name.repository,Name.subject,Name.repository,Opac url,Project Name,Publisher.publisherName,Relation.isPartOf,Rights.countryCreation,Rights.rightsHolderContact,Rights.statementLocal,Subject,Type.genre,Type.typeOfResource,Place of origin,AltTitle.uniform,Support,Summary,Page layout,Text direction,viewingHint,IIIF Range,Illustrations note,Provenance; Description.history,Table of Contents; Description.tableOfContents,Subject.conceptTopic,Subject.descriptiveTopic,Collation,Foliation note,Foliation,Illuminator,Name.illuminator,Name.lyricist,Name.composer,Scribe,Name.scribe,Masthead,Representative image,Featured image,Tagline,Subject geographic,Subject temporal,Translator,Name.translator,Commentator,Name.commentator,Colophon,Finding Aid URL, Alt ID.url, Rubricator,Name.rubricator,License,Illustrator,Name.illustrator,Calligrapher,Name.calligrapher,Editor,Name.editor,Engraver,Name.engraver,Note,Printmaker,Name.printmaker,Contents note,Description.contents,Content disclaimer,Interviewer,Name.interviewer,Interviewee,Name.interviewee,Cartographer,Name.cartographer,Artist,Name.artist,Recipient,Name.recipient,Director,Name.director,Producer,Name.producer
39 changes: 39 additions & 0 deletions app/assets/markdown/importer_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- [Collation](#collation)
- [Colophon](#colophon)
- [Condition note](#condition-note)
- [Content disclaimer](#contentdisclaimer)
- [Contents note](#contents-note)
- [Coverage.geographic](#coveragegeographic)
- [Date.created](#datecreated)
Expand All @@ -44,17 +45,24 @@
- [Local identifier](#local-identifier)
- [Masthead](#masthead)
- [Name.architect](#namearchitect)
- [Name.artist](#nameartist)
- [Name.calligrapher](#namecalligrapher)
- [Name.cartographer](#namecartographer)
- [Name.commentator](#namecommentator)
- [Name.composer](#namecomposer)
- [Name.creator](#namecreator)
- [Name.director](#namedirector)
- [Name.editor](#nameeditor)
- [Name.engraver](#nameengraver)
- [Name.illuminator](#nameilluminator)
- [Name.illustrator](#nameillustrator)
- [Name.interviewee](#nameinterviewee)
- [Name.interviewer](#nameinterviewer)
- [Name.lyricist](#namelyricist)
- [Name.photographer](#namephotographer)
- [Name.printmaker](#nameprintmaker)
- [Name.producer](#nameproducer)
- [Name.recipient](#namerecipient)
- [Name.rubricator](#namerubricator)
- [Name.scribe](#namescribe)
- [Name.translator](#nametranslator)
Expand Down Expand Up @@ -164,6 +172,7 @@ Examples:

- `copyrighted` (single value)

<!----------------------------->
## Other Supported Fields

#### AltTitle.other
Expand Down Expand Up @@ -196,6 +205,8 @@ Also accepts: `Description.colophon`

Also accepts: `Description.condition`

#### Content disclaimer

#### Contents note

#### Coverage.geographic
Expand Down Expand Up @@ -285,10 +296,18 @@ The IIIF parameters following a IIIF image base URL. Used for the masthead image

#### Name.architect

#### Name.artist

Also accepts: `Artist

#### Name.calligrapher

Also accepts `Calligrapher`

#### Name.cartographer

Also accepts: `Cartographer`

#### Name.commentator

Also accepts: `Commentator`
Expand All @@ -299,6 +318,10 @@ Also accepts: `Commentator`

Also accepts: `Creator`

#### Name.director

Also accepts: `Director`

#### Name.editor

Also accepts: `Editor`
Expand All @@ -315,6 +338,14 @@ Also accepts: `Illuminator`

Also accepts: `Illustrator`

#### Name.Interviewee

Also accepts: `Interviewee`

#### Name.Interviewer

Also accepts: `Interviewee`

#### Name.lyricist

#### Name.photographer
Expand All @@ -325,6 +356,14 @@ Also accepts: `Personal or Corporate Name.photographer`

Also accepts: `Printmaker`

#### Name.producer

Also accepts: `Producer`

#### Name.recipient

Also accepts: `Recipient`

#### Name.rubricator

Also accepts: `Rubricator`
Expand Down
71 changes: 71 additions & 0 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,21 @@ def self.modified_field

config.add_show_field 'alternative_title_tesim'
config.add_show_field 'architect_tesim'
config.add_show_field 'artist_tesim'
config.add_show_field 'author_tesim'
config.add_show_field 'binding_note_ssi'
config.add_show_field 'calligrapher_tesim'
config.add_show_field 'caption_tesim'
config.add_show_field 'cartographer_tesim'
config.add_show_field 'collation_ssi'
config.add_show_field 'colophon_tesim'
config.add_show_field 'content_disclaimer_ssm', label: 'Disclaimer'
config.add_show_field 'composer_tesim'
config.add_show_field 'commentator_tesim'
config.add_show_field 'condition_note_ssi'
config.add_show_field 'contents_note_tesim'
config.add_show_field 'dimensions_tesim'
config.add_show_field 'director_tesim'
config.add_show_field 'editor_tesim'
config.add_show_field 'engraver_tesim'
config.add_show_field 'extent_tesim'
Expand All @@ -135,6 +139,8 @@ def self.modified_field
config.add_show_field 'illuminator_tesim'
config.add_show_field 'illustrations_note_tesim'
config.add_show_field 'illustrator_tesim'
config.add_show_field 'interviewee_tesim'
config.add_show_field 'interviewer_tesim'
config.add_show_field 'location_tesim'
config.add_show_field 'local_identifier_ssm'
config.add_show_field 'lyricist_tesim'
Expand All @@ -148,7 +154,9 @@ def self.modified_field
config.add_show_field 'place_of_origin_tesim'
config.add_show_field 'preservation_copy_ssi'
config.add_show_field 'printmaker_tesim'
config.add_show_field 'producer_tesim'
config.add_show_field 'provenance_tesim'
config.add_show_field 'recipient_tesim'
config.add_show_field 'repository_tesim'
config.add_show_field 'rights_country_tesim'
config.add_show_field 'rights_holder_tesim'
Expand Down Expand Up @@ -231,6 +239,15 @@ def self.modified_field
}
end

config.add_search_field('artist') do |field|
field.label = 'Location'
solr_name = solr_name('artist', :stored_searchable)
field.solr_local_parameters = {
qf: solr_name,
pf: solr_name
}
end

config.add_search_field('binding_note') do |field|
solr_name = solr_name('binding_note', :stored_sortable)
field.solr_local_parameters = {
Expand All @@ -239,6 +256,15 @@ def self.modified_field
}
end

config.add_search_field('cartographer') do |field|
field.label = 'Location'
solr_name = solr_name('cartographer', :stored_searchable)
field.solr_local_parameters = {
qf: solr_name,
pf: solr_name
}
end

config.add_search_field('collation') do |field|
solr_name = solr_name('collation', :stored_searchable)
field.solr_local_parameters = {
Expand Down Expand Up @@ -312,6 +338,15 @@ def self.modified_field
}
end

config.add_search_field('director') do |field|
field.label = 'Location'
solr_name = solr_name('director', :stored_searchable)
field.solr_local_parameters = {
qf: solr_name,
pf: solr_name
}
end

config.add_search_field('foliation') do |field|
solr_name = solr_name('foliation', :stored_searchable)
field.solr_local_parameters = {
Expand All @@ -328,6 +363,24 @@ def self.modified_field
}
end

config.add_search_field('nterviewee') do |field|
field.label = 'Location'
solr_name = solr_name('nterviewee', :stored_searchable)
field.solr_local_parameters = {
qf: solr_name,
pf: solr_name
}
end

config.add_search_field('nterviewer') do |field|
field.label = 'Location'
solr_name = solr_name('nterviewer', :stored_searchable)
field.solr_local_parameters = {
qf: solr_name,
pf: solr_name
}
end

config.add_search_field('lyricist') do |field|
solr_name = solr_name('lyricist', :stored_searchable)
field.solr_local_parameters = {
Expand All @@ -344,6 +397,15 @@ def self.modified_field
}
end

config.add_search_field('producer') do |field|
field.label = 'Location'
solr_name = solr_name('producer', :stored_searchable)
field.solr_local_parameters = {
qf: solr_name,
pf: solr_name
}
end

config.add_search_field('publisher') do |field|
solr_name = solr_name('publisher', :stored_searchable)
field.solr_local_parameters = {
Expand All @@ -352,6 +414,15 @@ def self.modified_field
}
end

config.add_search_field('recipient') do |field|
field.label = 'Location'
solr_name = solr_name('recipient', :stored_searchable)
field.solr_local_parameters = {
qf: solr_name,
pf: solr_name
}
end

config.add_search_field('scribe') do |field|
solr_name = solr_name('scribe', :stored_searchable)
field.solr_local_parameters = {
Expand Down
Loading

0 comments on commit b479bca

Please sign in to comment.