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

Merged

Conversation

thms-rmb
Copy link
Contributor

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

@thms-rmb
Copy link
Contributor 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
Contributor Author

Tests have been updated

skairunner added a commit to skairunner/zotero-translators that referenced this pull request Jan 29, 2025
- 720 fields are sometimes used e.g. in datasets to describe additional
  contributors.
- Use 720 field as a contributor.
- Note that tests will fail until zotero#3409 is merged. This is because the
  MARC code assumes that all books with no authors that have
  contributors are actually meant to be editors, which is invalid.
  However, we have no way of setting items to be not Book without zotero#3409.
@AbeJellinek AbeJellinek merged commit b59e11c into zotero:master Jan 29, 2025
1 check passed
@AbeJellinek
Copy link
Member

Thanks!

skairunner added a commit to skairunner/zotero-translators that referenced this pull request Feb 3, 2025
- 720 fields are sometimes used e.g. in datasets to describe additional
  contributors.
- Use 720 field as a contributor.
- Note that tests will fail until zotero#3409 is merged. This is because the
  MARC code assumes that all books with no authors that have
  contributors are actually meant to be editors, which is invalid.
  However, we have no way of setting items to be not Book without zotero#3409.
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