Skip to content

Commit

Permalink
Patch hits for pages missing in mets:structLink
Browse files Browse the repository at this point in the history
  • Loading branch information
joschrew committed Aug 12, 2024
1 parent cf058ce commit 49932ec
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions src/components/search/SearchResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,39 +41,38 @@ export default {
info() {
if (!this.item) {
return [];
} else if (this.item.noData){
} else if (this.item.noData && ["publisher", "placeOfPublish", "subtitle", "creator"]
.every((prop) => !this.item[prop])) {
return [
{
label: "no data available",
value: ""
}
]
} else {
return [
{
label: "Publisher",
value: this.item.publisher || "N/A",
},
{
label: "Place of Publication",
value: this.item.placeOfPublish || "N/A",
},
{
label: "Year of Publication",
value: this.item.yearOfPublish || "N/A",
},
{
label: "Subtitle",
value: this.item.subtitle || "N/A",
},
{
label: "Author",
value: this.item.creator || "N/A",
},
];
}
const item = this.item;
return [
{
label: "Publisher",
value: item.publisher || "N/A",
},
{
label: "Place of Publication",
value: item.placeOfPublish || "N/A",
},
{
label: "Year of Publication",
value: item.yearOfPublish || "N/A",
},
{
label: "Subtitle",
value: item.subtitle || "N/A",
},
{
label: "Author",
value: item.creator || "N/A",
},
];
},
itemId() {
return this.item.PID;
Expand Down

0 comments on commit 49932ec

Please sign in to comment.