Feature: add osp as import source #9034
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Partially closes #8589.
Include
osp:
as a source record and point to ISBNdb, as it is the source of data for OSP-sourced imports.Pursuant to #8589 we want to import ISBNdb records, based on ISBNs from OSP that are not already in Open Library. We also want to track these records, so we settled on including
osp:<isbn_13>
in thesource_records
field. But if it's in the source records field, we should handle it 'properly' as a source record so it doesn't falsely display as a MARC record instead.Technical
Note,
osp:
will currently only show in an import record if (1) we 'fix' the import sources history so it doesn't always display the last source record, or (2)osp:
isn't the last source record.Currently OSP records have been imported with the
idb:
source record as last, so it displays.Testing
Screenshot
Without this PR applied:
![image](https://private-user-images.githubusercontent.com/26524678/319836412-f615e423-74e0-4a43-80df-f6ac218cd38a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyODIyNTAsIm5iZiI6MTcyMDI4MTk1MCwicGF0aCI6Ii8yNjUyNDY3OC8zMTk4MzY0MTItZjYxNWU0MjMtNzRlMC00YTQzLTgwZGYtZjZhYzIxOGNkMzhhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA2VDE2MDU1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ3MDFhYWRmNTAxOThmY2I1ZDI1NmFmN2Q3ZTg4ZmM5NzdhODcyNjU5OTkwM2JmNDU4ZTcxOTJiY2QxNTIwMWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.28eqzMPbi8kpyDQkA4M_H9Q00r4GCcUw7V5PCJy6yKQ)
With the PR applied:
![image](https://private-user-images.githubusercontent.com/26524678/319836546-443162ec-c590-40b2-931c-e2ff701d0538.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyODIyNTAsIm5iZiI6MTcyMDI4MTk1MCwicGF0aCI6Ii8yNjUyNDY3OC8zMTk4MzY1NDYtNDQzMTYyZWMtYzU5MC00MGIyLTkzMWMtZTJmZjcwMWQwNTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA2VDE2MDU1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkNzU2ZWJiODI1OGFlMjllMTM4YjU3ZTc3Y2VjODRjZjNjOTk1YTI1NDhmNzkyZmQ0MGEzYjg5ZTkzOWZhZjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.DYLRLOvAjv6NfE219VhycTmR-zS2ailPqqD_9sYNEKs)
Stakeholders
@mekarpeles