Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies update Nov 2024 #16

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bookops_marc/bib.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from datetime import date
from typing import List, Optional, Dict

from pymarc import Record, Field
from pymarc import Record, Field, Indicators
from pymarc.constants import LEADER_LEN

from .errors import BookopsMarcError
Expand Down Expand Up @@ -191,14 +191,14 @@ def dewey(self) -> Optional[str]:

# check if LC full ed. present first
for field in fields:
if field.indicators == ["0", "0"]:
if field.indicators == Indicators("0", "0"):
class_mark = field.get(code="a").strip()
class_mark = normalize_dewey(class_mark)
return class_mark # type: ignore

# then other agency full ed.
for field in fields:
if field.indicators == ["0", "4"]:
if field.indicators == Indicators("0", "4"):
class_mark = field.get(code="a").strip()
class_mark = normalize_dewey(class_mark)
return class_mark # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion bookops_marc/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class SierraBibReader(MARCReader):
"""
An interator class for reading file of local Sierra MARC records.
An iterator class for reading file of local Sierra MARC records.
"""

def __init__(
Expand Down
Loading