Skip to content

Commit

Permalink
Fix thumbnails for CSW
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Jan 10, 2025
1 parent afbc037 commit 02fc0aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export default class PortalItemLoaderWidgetController {
url = this.htmlDecode(url);
}
// handle item page url
let itemPageUrl = this.getCswItemAttribute(cswItem, "dc:URI", "DOI");
let itemPageUrl = this.getCswItemAttribute(cswItem, "dc:URI", "protocol", "DOI");
if (selectedPortal.itemPageUrl) {
itemPageUrl = intl.substitute(selectedPortal.itemPageUrl, { id: id });
}
Expand All @@ -460,7 +460,7 @@ export default class PortalItemLoaderWidgetController {
title: this.getCswItemAttribute(cswItem, "dc:title"),
snippet: this.getCswItemAttribute(cswItem, "dct:abstract") || this.getCswItemAttribute(cswItem, "dc:description"),
description: this.getCswItemAttribute(cswItem, "dc:description"),
thumbnailUrl: this.getCswItemAttribute(cswItem, "dc:URI", "image/png"),
thumbnailUrl: this.getCswItemAttribute(cswItem, "dc:URI", "protocol", "image/png"),
modified: modifiedDate,
type: type,
url: url,
Expand Down

0 comments on commit 02fc0aa

Please sign in to comment.