Skip to content

Commit

Permalink
Fix-hyperlinks (#839)
Browse files Browse the repository at this point in the history
* Fix-hyperlinks

Changes to be committed:
modified:   app/controllers/catalog_controller.rb

* Add facetable to ucla_metadata predicate & delete from catalog_controller

Changes to be committed:
modified:   app/models/ucla_metadata.rb
  • Loading branch information
jendiamond authored Aug 25, 2020
1 parent 42e3168 commit f1481ff
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/models/ucla_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ module UclaMetadata
end

property :architect, predicate: ::RDF::Vocab::MARCRelators.arc do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :author, predicate: ::RDF::URI.intern('http://id.loc.gov/vocabulary/relators/aut') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :binding_note, predicate: ::RDF::URI.intern('http://marc21rdf.info/elements/5XX/M563__a'), multiple: false do |index|
Expand All @@ -32,7 +32,7 @@ module UclaMetadata
end

property :calligrapher, predicate: ::RDF::URI.intern('http://id.loc.gov/vocabulary/relators/cll') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :collation, predicate: ::RDF::URI.intern('http://iflastandards.info/ns/fr/frbr/frbrer/P3077'), multiple: false do |index|
Expand Down Expand Up @@ -68,11 +68,11 @@ module UclaMetadata
end

property :editor, predicate: ::RDF::URI.intern('http://id.loc.gov/vocabulary/relators/edt') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :engraver, predicate: ::RDF::URI.intern('hhttp://id.loc.gov/vocabulary/relators/egr') do |index|
index.as :stored_searchable
property :engraver, predicate: ::RDF::URI.intern('http://id.loc.gov/vocabulary/relators/egr') do |index|
index.as :stored_searchable, :facetable
end

property :extent, predicate: ::RDF::Vocab::DC11.format do |index|
Expand Down Expand Up @@ -124,7 +124,7 @@ module UclaMetadata
end

property :illustrator, predicate: ::RDF::URI.intern('http://id.loc.gov/vocabulary/relators/ill.html') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :latitude, predicate: ::RDF::Vocab::EXIF.gpsLatitude do |index|
Expand Down Expand Up @@ -196,7 +196,7 @@ module UclaMetadata
end

property :printmaker, predicate: ::RDF::URI.intern('http://id.loc.gov/vocabulary/relators/prm') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :provenance, predicate: ::RDF::URI.intern('http://purl.org/dc/terms/provenance') do |index|
Expand All @@ -220,7 +220,7 @@ module UclaMetadata
end

property :rubricator, predicate: ::RDF::URI.intern('http://id.loc.gov/vocabulary/relators/rbr') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :scribe, predicate: ::RDF::URI.intern('http://id.loc.gov/vocabulary/relators/scr') do |index|
Expand Down Expand Up @@ -260,7 +260,7 @@ module UclaMetadata
end

property :translator, predicate: ::RDF::URI.intern('http://id.loc.gov/vocabulary/relators/trl') do |index|
index.as :stored_searchable
index.as :stored_searchable, :facetable
end

property :uniform_title, predicate: ::RDF::URI.intern('http://purl.org/dc/elements/1.1/title') do |index|
Expand All @@ -273,3 +273,5 @@ module UclaMetadata
# displayable: https://www.rubydoc.info/gems/solrizer/3.4.0/Solrizer%2FDefaultDescriptors.displayable
# stored_searchable https://www.rubydoc.info/gems/solrizer/3.4.0/Solrizer%2FDefaultDescriptors.stored_searchable
# stored_sortable https://www.rubydoc.info/gems/solrizer/3.4.0/Solrizer%2FDefaultDescriptors.stored_sortable
# :facetable - combined with adding field-name_sim to the config.add_show_field in app/controllers/catalog_controler.rb
# in Ursus this creates a link on the item/show page of Ursus that links to a search for all fields of this name

0 comments on commit f1481ff

Please sign in to comment.