Skip to content

Commit

Permalink
Add Digitale Keilschrift Bibliothek to Ext Nos
Browse files Browse the repository at this point in the history
  • Loading branch information
ejimsan committed Jan 5, 2025
1 parent 5348886 commit d9af722
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions ebl/fragmentarium/application/fragment_fields_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ class ExternalNumbersSchema(Schema):
oracc_numbers = fields.List(
fields.String(), load_default=(), data_key="oraccNumbers"
)
digitale_keilschrift_bibliothek = fields.String(load_default="", data_key="digitaleKeilschriftBibliothek")
seal_numbers = fields.List(fields.String(), load_default=(), data_key="sealNumbers")

@post_load
Expand Down
5 changes: 5 additions & 0 deletions ebl/fragmentarium/domain/fragment_external_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class ExternalNumbers:
philadelphia_number: str = ""
achemenet_number: str = ""
nabucco_number: str = ""
digitale_keilschrift_bibliothek: str = ""
yale_peabody_number: str = ""
oracc_numbers: Sequence[str] = ()
seal_numbers: Sequence[str] = ()
Expand Down Expand Up @@ -100,6 +101,10 @@ def achemenet_number(self) -> str:
def nabucco_number(self) -> str:
return self._get_external_number("nabucco")

@property
def digitale_keilschrift_bibliothek(self) -> str:
return self._get_external_number("digitale_keilschrift_bibliothek")

@property
def philadelphia_number(self) -> str:
return self._get_external_number("philadelphia_number")
Expand Down
1 change: 1 addition & 0 deletions ebl/tests/factories/fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ class Meta:
yale_peabody_number = factory.Sequence(lambda n: f"yale-peabody-number-{n}")
achemenet_number = factory.Sequence(lambda n: f"achemenet-number-{n}")
nabucco_number = factory.Sequence(lambda n: f"nabucco-number-{n}")
digitale_keilschrift_bibliothek = factory.Sequence(lambda n: f"digitale-keilschrift-bibliothek-{n}")
oracc_numbers = factory.List(
[factory.Sequence(lambda n: f"oracc-number-{n}")], TupleFactory
)
Expand Down

0 comments on commit d9af722

Please sign in to comment.