Repository navigation
Releases
Releases · BookOps-CAT/bookops-marc
New Order class, Item class and Bib properties
Added
- Python 3.13 to unit tests in GitHub actions
OclcNumberclass- replaces helper functions previously in from
local_values.py:oclcNo_with_prefix,oclcNo_without_prefix,is_oclc_number,has_oclc_prefix,_add_oclc_prefixand_delete_oclc_prefix
- replaces helper functions previously in from
Changed
- changed most
Bibmethods to properties. This follows the pattern that pymarc uses with managedRecordattributes:- methods changed to properties:
audiencebranch_call_nobranch_call_no_fieldcataloging_datecontrol_numbercreated_datedeweydewey_shortenedform_of_itemlanguageslccnmain_entryoclc_nosordersoverdrive_numberphysical_descriptionrecord_typesierra_bib_formatsierra_bib_idsierra_bib_id_normalizedsubjects_lcsuppressedupc_number
normalize_oclc_control_numberandremove_unsupported_subjectsare still methods as they attributes of aBibobject
- methods changed to properties:
- the
pymarc_record_to_local_bibfunction is now aclassmethodfor theBibclass Orderis now a class rather than aNamedTupleOrderobjects are instantiated from aFieldobject with an optionalfollowing_fieldparameter
Removed
- helper functions in
local_values.py. the functionality has been retained in theBib,Order, andOclcNumberclass
Pymarc 5.2 bump
Bumps dependencies to:
- pymarc v5.2.3
- pytest v8.3..3
- black v24.8.0
- mypy v1.13
Refactors code to support a new class, Indicators in pymarc (introduced in v5.2.0)
0.10.0 Handling of OCLC Numbers
Updated to pymarc 5.1
- updated dependencies
- pymarc (5.1.0)
- updated dev dependencies:
- black (22.12.0)
- pytest (7.4.4)
- github actions upgrade to v4
- added tests for Python 3.11 & 3.12
Sierra bib format code parsing and instating Bib from pymarc.Record instance
- adds
sierra_bib_format()toBibclass that parses and normalizes 998$d (Sierra bib format code) - adds
pymarc_record_to_local_bib()to convertpymarc.Recordinstance intoBibinstance
Unsupported thesauri removal
Added
- remove_unsupported_subjects() that deletes subject tags (6xx) which are not supported by BookOps (NYPL & BPL CAT)
- dev dependency mypy 0.942
- basic type checking
Fixes parsing bib created dates in NYPL records
Fixed
- parsing of NYPL bib created date Sierra field (907$c)
Changed
- bumps pymarc to v4.2.0
CI moved from Travis to Github-Actions
Moved testing from Travis to Github-Actions and added Python 3.10.
Suppressed method
Adds suppressed() method to Bib which determines based on 998 $e if bib is suppressed from the public display.
control number
Added control_number method to the Bib class.