Skip to content

Commit

Permalink
change buildInternalLinkDetail name to buildSearchFilterUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
charmingduchess committed Dec 2, 2024
1 parent 16a38e5 commit cd844d7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/models/BibDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class BibDetails {
case "supplementaryContent":
return this.supplementaryContent
case "creatorLiteral":
return this.buildInternalLinkedDetail(fieldMapping)
return this.buildSearchFilterUrl(fieldMapping)
default:
return this.buildStandardDetail(fieldMapping)
}
Expand Down Expand Up @@ -137,9 +137,7 @@ export default class BibDetails {
.map((fieldMapping: FieldMapping): AnyBibDetail => {
let detail: AnyBibDetail
if (fieldMapping.field === "contributorLiteral")
detail = this.buildInternalLinkedDetail(fieldMapping)
// else if (fieldMapping.field === "subjectLiteral")
// detail = this.subjectHeadings
detail = this.buildSearchFilterUrl(fieldMapping)
else detail = this.buildStandardDetail(fieldMapping)
return detail
})
Expand Down Expand Up @@ -201,7 +199,7 @@ export default class BibDetails {
}
}

buildInternalLinkedDetail(fieldMapping: {
buildSearchFilterUrl(fieldMapping: {
label: string
field: string
}): LinkedBibDetail {
Expand Down

0 comments on commit cd844d7

Please sign in to comment.