Files that will need to be updated: bibdata - schema.xml, *_index.properties, api/views.py (for filtering/ordering), api/serializers.py (BibSerializer)
Add bib "date_created" field
From Sierra record_metadata.creation_date_gmt field.
Add to a 9XX field in the MARC record and then pull from that in index.properties file.
Files that will need to be updated: bibdata - schema.xml, export/sierra2marc.py (S2MarcBatch._one_to_marc), *_index.properties, api/views.py (for filtering/ordering), api/serializers.py (BibSerializer)
Add bib "date_updated" field
From Sierra record_metadata.date_last_updated_gmt field.
Add to a 9XX field in the MARC record and then pull from that in index.properties file.
Files that will need to be updated: bibdata - schema.xml, export/sierra2marc.py (S2MarcBatch._one_to_marc), *_index.properties, api/views.py (for filtering/ordering), api/serializers.py (BibSerializer)
Modification to bibdata "url" field (MARC 856)
Make sure the URL _only_ contains the URL. Strip out any _target="blank" etc.
File to update: Strip it out of the 856u in export/sierra2marc.py.
Normalized call number fields on bibs
Add for each type of call number that's present. Right now we only have mainCallNumberSort for the normalized version of mainCallNumber, but we should have normalized versions of every call number (and sudoc number) on a bib resource.
Item availability info on bibs
Would be nice to have item availability on the bib resource--would need to think about where that should go, vis-a-vis HAL-JSON. (Might need to add an _embedded with item statuses.)
Bib locations
Item locations are on item records, but we're not exporting the bib location. Would be a useful thing to have.
Make sure to restart Solr and reindex bib records after all changes are made.
Add bib "edition" field
schema.xml
,*_index.properties
,api/views.py
(for filtering/ordering),api/serializers.py
(BibSerializer)Add bib "date_created" field
record_metadata.creation_date_gmt
field.schema.xml
,export/sierra2marc.py
(S2MarcBatch._one_to_marc),*_index.properties
,api/views.py
(for filtering/ordering),api/serializers.py
(BibSerializer)Add bib "date_updated" field
record_metadata.date_last_updated_gmt
field.schema.xml
, export/sierra2marc.py (S2MarcBatch._one_to_marc),*_index.properties
,api/views.py
(for filtering/ordering),api/serializers.py
(BibSerializer)Modification to bibdata "url" field (MARC 856)
_target="blank"
etc.export/sierra2marc.py
.Normalized call number fields on bibs
mainCallNumberSort
for the normalized version ofmainCallNumber
, but we should have normalized versions of every call number (and sudoc number) on a bib resource.Item availability info on bibs
_embedded
with item statuses.)Bib locations
Make sure to restart Solr and reindex bib records after all changes are made.