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

Library Catalog (TIND ILS): Enrich item type from Schema.org #3409

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

thms-rmb
Copy link

Records in the TIND platform may include a Schema.org mapping. This mapping often has a @type property that is more accurate than what can be obtained purely from the MARC data of the record.

The effort of improving the item type matching was attempted before (in #3387), but a different approach was suggested in a comment (at #3387 (comment)):

We already have a TIND ILS translator [...] and we can trivially extend it [...] to use bits of Schema.org metadata to do things like detect the item type better.

@thms-rmb thms-rmb force-pushed the thms-rmb/improve-item-type-detection branch from 9180a24 to dd4ea42 Compare January 22, 2025 11:53
Records in the TIND platform may include a Schema.org mapping. This
mapping often has a `@type` property that is more accurate than what
can be obtained purely from the MARC data of the record.
@thms-rmb thms-rmb force-pushed the thms-rmb/improve-item-type-detection branch from dd4ea42 to b7685d0 Compare January 22, 2025 11:56
Copy link
Member

@AbeJellinek AbeJellinek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Existing tests need to be updated (though not because of these changes, I think)
  • We need to check the Schema.org metadata in detectWeb() too, because right now the added test is still being detected as a book

Library Catalog (TIND ILS).js Outdated Show resolved Hide resolved
Library Catalog (TIND ILS).js Outdated Show resolved Hide resolved
Library Catalog (TIND ILS).js Outdated Show resolved Hide resolved
Library Catalog (TIND ILS).js Outdated Show resolved Hide resolved
@thms-rmb
Copy link
Author

@AbeJellinek

We need to check the Schema.org metadata in detectWeb() too, because right now the added test is still being detected as a book

Fixed

Existing tests need to be updated (though not because of these changes, I think)

Right, I think some of the tests might even need to be entirely replaced - Caltech Library no longer uses TIND ILS and so the test links never resolve.

I might be able to find roughly equivalent tests from other customers, would it be OK to include that in this PR as well?

@AbeJellinek
Copy link
Member

I might be able to find roughly equivalent tests from other customers, would it be OK to include that in this PR as well?

Definitely.

@thms-rmb thms-rmb force-pushed the thms-rmb/improve-item-type-detection branch from 8dfa1a2 to cde2876 Compare January 25, 2025 07:52
@thms-rmb
Copy link
Author

Tests have been updated

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

Successfully merging this pull request may close these issues.

2 participants