Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link to view in SearchWorks #310

Closed
mejackreed opened this issue Jul 27, 2016 · 6 comments · Fixed by #1082
Closed

Add link to view in SearchWorks #310

mejackreed opened this issue Jul 27, 2016 · 6 comments · Fixed by #1082

Comments

@mejackreed
Copy link
Contributor

Potentially could be troublesome as records can be unreleased

@drh-stanford
Copy link

related to #403

@thatbudakguy thatbudakguy changed the title Indexing: look for SW release tag and add link if released Add link to view in SearchWorks Jun 7, 2024
@thatbudakguy
Copy link
Member

thatbudakguy commented Jun 7, 2024

We could consider doing this by making a request to purl-fetcher at render time to check (live) whether the thing actually is released to SearchWorks.

Needs design.

@peetucket peetucket self-assigned this Jul 8, 2024
@peetucket peetucket moved this from Ready to In Progress in Geo Workcycles 2024 Jul 8, 2024
@peetucket
Copy link
Member

@peetucket
Copy link
Member

https://purl.stanford.edu/rb811tg2000.xml
https://opengeometadata.org/reference-uris/

Add schema.org Related Link key/value pair to dct_refererences_s field in earthworks traject in searchworks_traject_indexer

as_reference macro

geo_aardvark_config.rb

@thatbudakguy
Copy link
Member

thatbudakguy commented Jul 9, 2024

steps to accomplish this:

  • add a method to PurlRecord that can access release tag metadata to determine what platforms the record is released to
  • add a new setting for the searchworks base URL, similar to settings.purl_url
  • add a new macro to Traject::Macros::Cocina (similar to purl_url) that generates a searchworks view URL using the base URL if the record is released to searchworks
  • call the macro in the aardvark config to add the searchworks URL to dct_references_s with a key of https://schema.org/relatedLink (see how it works for purl URLs)
  • update earthworks to find this new field in the solr document and how the searchworks link
  • reindex all earthworks documents

@peetucket
Copy link
Member

echo "hj948rn6493" | bundle exec traject --debug-mode -c lib/traject/config/geo_aardvark_config.rb -s reader_class_name=Traject::DruidReader --stdin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

4 participants