Skip to content

Commit

Permalink
Arrays always use the English plural
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed Feb 12, 2025
1 parent 8a7a4cf commit 892d407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composables/use-tei-headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const extractMetadata = function (
],
issued: [item.teiHeader.fileDesc.sourceDesc.biblStruct.monogr.imprint?.date.$ ?? ""],
publisherPlace: item.teiHeader.fileDesc.sourceDesc.biblStruct.monogr.imprint?.pubPlace?.$,
page: item.teiHeader.fileDesc.sourceDesc.biblStruct.monogr.imprint?.biblScope.find(
page: item.teiHeader.fileDesc.sourceDesc.biblStruct.monogr.imprint?.biblScopes.find(
(s) => s["@unit"] === "page",
)?.$,
},
Expand All @@ -241,10 +241,10 @@ const extractMetadata = function (
],
issued: [item.teiHeader.fileDesc.sourceDesc.biblStruct.monogr.imprint?.date.$ ?? ""],
publisherPlace: item.teiHeader.fileDesc.sourceDesc.biblStruct.monogr.imprint?.pubPlace?.$,
volume: item.teiHeader.fileDesc.sourceDesc.biblStruct.monogr.imprint?.biblScope.find(
volume: item.teiHeader.fileDesc.sourceDesc.biblStruct.monogr.imprint?.biblScopes.find(
(s) => s["@unit"] === "volume",
)?.$,
page: item.teiHeader.fileDesc.sourceDesc.biblStruct.monogr.imprint?.biblScope.find(
page: item.teiHeader.fileDesc.sourceDesc.biblStruct.monogr.imprint?.biblScopes.find(
(s) => s["@unit"] === "page",
)?.$,
},
Expand Down
2 changes: 1 addition & 1 deletion types/teiCorpus.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export type BiblStruct = {
imprint?: {
date: XmlTextNode;
pubPlace?: XmlTextNode;
biblScope: Array<{
biblScopes: Array<{
"@unit": string;
$: string;
}>;
Expand Down

0 comments on commit 892d407

Please sign in to comment.