From 8d13af3005cd6a654500e6779c208c9f3e7d0dfd Mon Sep 17 00:00:00 2001 From: Kim Nguyen Date: Mon, 14 Sep 2020 11:00:17 -0400 Subject: [PATCH] Avoid creating empty anchors if no thumbnail available. --- application/view/omeka/site/item-set/browse.phtml | 4 +++- application/view/omeka/site/item/browse.phtml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/application/view/omeka/site/item-set/browse.phtml b/application/view/omeka/site/item-set/browse.phtml index e81e31a558..e41ef11b5c 100644 --- a/application/view/omeka/site/item-set/browse.phtml +++ b/application/view/omeka/site/item-set/browse.phtml @@ -24,7 +24,9 @@ foreach ($itemSets as $itemSet): $body = $bodyTerm ? $itemSet->value($bodyTerm) : $itemSet->displayDescription(); ?>
  • - linkRaw($this->thumbnail($itemSet, 'medium')); ?> + thumbnail($itemSet, 'medium')): ?> + linkRaw($itemSetThumbnail); ?> +

    link($heading); ?>

    diff --git a/application/view/omeka/site/item/browse.phtml b/application/view/omeka/site/item/browse.phtml index a9ccd64a78..4af80fd405 100644 --- a/application/view/omeka/site/item/browse.phtml +++ b/application/view/omeka/site/item/browse.phtml @@ -59,7 +59,9 @@ foreach ($items as $item): $body = $bodyTerm ? $item->value($bodyTerm) : $item->displayDescription(); ?>
  • - linkRaw($this->thumbnail($item, 'medium')); ?> + thumbnail($item, 'medium')): ?> + linkRaw($itemThumbnail); ?> +

    link($heading); ?>