Skip to content

Commit

Permalink
fix extent biz
Browse files Browse the repository at this point in the history
  • Loading branch information
charmingduchess committed Nov 25, 2024
1 parent e916971 commit 25f07b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion __test__/pages/bib/bibPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe("Bib Page with items", () => {
})

// TODO: Determine if this should be rendering twice
it("renders the bottom bib details", () => {
it.only("renders the bottom bib details", () => {
expect(screen.getAllByTestId("publication-date")[0]).toHaveTextContent(
"Vol. 1, issue 1-"
)
Expand Down
5 changes: 1 addition & 4 deletions src/models/BibDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ export default class BibDetails {
return this.supplementaryContent
case "creatorLiteral":
return this.buildInternalLinkedDetail(fieldMapping)
case "owner":
return this.owner
default:
return this.buildStandardDetail(fieldMapping)
}
Expand Down Expand Up @@ -186,7 +184,7 @@ export default class BibDetails {

buildStandardDetail(fieldMapping: FieldMapping) {
const bibFieldValue =
this.bib[fieldMapping.field] || this[fieldMapping.field]
this[fieldMapping.field] || this.bib[fieldMapping.field]
if (!bibFieldValue) return
return this.buildDetail(
convertToSentenceCase(fieldMapping.label),
Expand Down Expand Up @@ -355,7 +353,6 @@ export default class BibDetails {
parts.push(dimensions[0])
modifiedExtent = [parts.join("; ")]
}

return modifiedExtent
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/modelTests/BibDetails.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ describe("Bib model", () => {
)
})
})
xdescribe("extent", () => {
describe("extent", () => {
it("should add a semicolon after extent if there is not one already", () => {
const bib = new BibDetailsModel({
identifier: [{ uri: "123456" }],
Expand Down

0 comments on commit 25f07b2

Please sign in to comment.