Skip to content

Releases

New Order class, Item class and Bib properties

Choose a tag to compare

@charlottekostelic charlottekostelic released this 02 Jun 18:51
ba3c52d

Added

  • Python 3.13 to unit tests in GitHub actions
  • OclcNumber class
    • replaces helper functions previously in from local_values.py:
      • oclcNo_with_prefix, oclcNo_without_prefix, is_oclc_number, has_oclc_prefix, _add_oclc_prefix and _delete_oclc_prefix

Changed

  • changed most Bib methods to properties. This follows the pattern that pymarc uses with managed Record attributes:
    • methods changed to properties:
      • audience
      • branch_call_no
      • branch_call_no_field
      • cataloging_date
      • control_number
      • created_date
      • dewey
      • dewey_shortened
      • form_of_item
      • languages
      • lccn
      • main_entry
      • oclc_nos
      • orders
      • overdrive_number
      • physical_description
      • record_type
      • sierra_bib_format
      • sierra_bib_id
      • sierra_bib_id_normalized
      • subjects_lc
      • suppressed
      • upc_number
    • normalize_oclc_control_number and remove_unsupported_subjects are still methods as they attributes of a Bib object
  • the pymarc_record_to_local_bib function is now a classmethod for the Bib class
  • Order is now a class rather than a NamedTuple
    • Order objects are instantiated from a Field object with an optional following_field parameter

Removed

  • helper functions in local_values.py. the functionality has been retained in the Bib, Order, and OclcNumber class

Pymarc 5.2 bump

Choose a tag to compare

@klinga klinga released this 13 Nov 16:35
34e74cd

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

Choose a tag to compare

@klinga klinga released this 21 Mar 01:51
cd89f82

What's Changed

Full Changelog: 0.9.0...0.10.0

Updated to pymarc 5.1

Choose a tag to compare

@charlottekostelic charlottekostelic released this 23 Jan 18:20
  • 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

Choose a tag to compare

@klinga klinga released this 16 Aug 18:52
  • adds sierra_bib_format() to Bib class that parses and normalizes 998$d (Sierra bib format code)
  • adds pymarc_record_to_local_bib() to convert pymarc.Record instance into Bib instance

Unsupported thesauri removal

Choose a tag to compare

@klinga klinga released this 17 Apr 04:17
48452c6

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

Choose a tag to compare

@klinga klinga released this 13 Apr 15:15

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

Choose a tag to compare

@klinga klinga released this 07 Feb 04:42

Moved testing from Travis to Github-Actions and added Python 3.10.

Suppressed method

Choose a tag to compare

@klinga klinga released this 15 Nov 14:31

Adds suppressed() method to Bib which determines based on 998 $e if bib is suppressed from the public display.

control number

Choose a tag to compare

@klinga klinga released this 23 Sep 14:07

Added control_number method to the Bib class.