From aacb797f006df675e701e1f09ebff6a023c95f62 Mon Sep 17 00:00:00 2001 From: Jeremy Nelson Date: Fri, 28 Jul 2023 09:46:06 -0700 Subject: [PATCH] Updates prefix for new 035 fields --- libsys_airflow/plugins/folio/helpers/marc.py | 2 +- tests/helpers/test_marc_helper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsys_airflow/plugins/folio/helpers/marc.py b/libsys_airflow/plugins/folio/helpers/marc.py index a5c6cd75..a2758e56 100644 --- a/libsys_airflow/plugins/folio/helpers/marc.py +++ b/libsys_airflow/plugins/folio/helpers/marc.py @@ -217,7 +217,7 @@ def _move_001_to_035(record: pymarc.Record) -> str | None: field035 = pymarc.Field( tag="035", indicators=[" ", " "], - subfields=[pymarc.Subfield(code="a", value=f"(sirsi){field001.data}")], + subfields=[pymarc.Subfield(code="a", value=f"(Sirsi){field001.data}")], ) record.add_field(field035) record.remove_field(field001) diff --git a/tests/helpers/test_marc_helper.py b/tests/helpers/test_marc_helper.py index 5a3304e8..03d3de93 100644 --- a/tests/helpers/test_marc_helper.py +++ b/tests/helpers/test_marc_helper.py @@ -426,7 +426,7 @@ def test_move_001_to_035(mock_marc_record): record = mock_marc_record _move_001_to_035(record) assert ( - record.get_fields("035")[0].get_subfields("a")[0] == "(sirsi)gls_0987654321" + record.get_fields("035")[0].get_subfields("a")[0] == "(Sirsi)gls_0987654321" ) # noqa