diff --git a/module/VuFind/src/VuFind/ILS/Logic/Holds.php b/module/VuFind/src/VuFind/ILS/Logic/Holds.php index 85ee8f78752838cd5e859ba436c70783830e9eee..88ebd73c4fa1cd319e4d7c8bed84a9c064f48393 100644 --- a/module/VuFind/src/VuFind/ILS/Logic/Holds.php +++ b/module/VuFind/src/VuFind/ILS/Logic/Holds.php @@ -283,7 +283,7 @@ class Holds $copy['link'] = $this->getRequestDetails( $copy, $holdConfig['HMACKeys'], 'Hold' ); - $copy['allowLightbox'] = true; + $copy['linkLightbox'] = true; // If we are unsure whether hold options are available, // set a flag so we can check later via AJAX: $copy['check'] = $copy['addLink'] === 'check'; @@ -370,7 +370,7 @@ class Holds = $this->catalog->getHoldLink( $copy['id'], $copy ); - $holdings[$location_key][$copy_key]['allowLightbox'] + $holdings[$location_key][$copy_key]['linkLightbox'] = false; } else { /* Build non-opac link */ @@ -378,7 +378,7 @@ class Holds = $this->getRequestDetails( $copy, $holdConfig['HMACKeys'], 'Hold' ); - $holdings[$location_key][$copy_key]['allowLightbox'] + $holdings[$location_key][$copy_key]['linkLightbox'] = true; } } diff --git a/themes/bootstrap3/templates/RecordTab/holdingsils.phtml b/themes/bootstrap3/templates/RecordTab/holdingsils.phtml index e0c2b956391c101036e27b23847fbcb60765eb34..2ef3ceeb56e13cb368ced08596e2b0df3146e113 100644 --- a/themes/bootstrap3/templates/RecordTab/holdingsils.phtml +++ b/themes/bootstrap3/templates/RecordTab/holdingsils.phtml @@ -109,7 +109,7 @@ <? /* Begin Available Items (Holds) */ ?> <span class="text-success"><?=$this->transEsc("Available")?><link property="availability" href="http://schema.org/InStock" /></span> <? if (isset($row['link']) && $row['link']): ?> - <a class="<?=$check ? 'checkRequest ' : ''?>placehold" <? if (!empty($row['allowLightbox'])): ?>data-lightbox <? endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i> <?=$this->transEsc($check ? "Check Hold" : "Place a Hold")?></a> + <a class="<?=$check ? 'checkRequest ' : ''?>placehold" <? if (!empty($row['linkLightbox'])): ?>data-lightbox <? endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i> <?=$this->transEsc($check ? "Check Hold" : "Place a Hold")?></a> <? endif; ?> <? if (isset($row['storageRetrievalRequestLink']) && $row['storageRetrievalRequestLink']): ?> <a class="<?=$checkStorageRetrievalRequest ? 'checkStorageRetrievalRequest ' : ''?> placeStorageRetrievalRequest" data-lightbox href="<?=$this->recordLink()->getRequestUrl($row['storageRetrievalRequestLink'])?>"><i class="fa fa-flag" aria-hidden="true"></i> <?=$this->transEsc($checkStorageRetrievalRequest ? "storage_retrieval_request_check_text" : "storage_retrieval_request_place_text")?></a> @@ -128,7 +128,7 @@ <span><?=$this->transEsc("Requests")?>: <?=$this->escapeHtml($row['requests_placed'])?></span> <? endif; ?> <? if (isset($row['link']) && $row['link']): ?> - <a class="<?=$check ? 'checkRequest' : ''?> placehold" <? if (!empty($row['allowLightbox'])): ?>data-lightbox <? endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i> <?=$this->transEsc($check ? "Check Recall" : "Recall This")?></a> + <a class="<?=$check ? 'checkRequest' : ''?> placehold" <? if (!empty($row['linkLightbox'])): ?>data-lightbox <? endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i> <?=$this->transEsc($check ? "Check Recall" : "Recall This")?></a> <? endif; ?> <? endif; ?> <? if (isset($row['item_notes'])): ?>