From 3acb1df804d8d194e25571995157e89abd3c86b2 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Fri, 6 May 2016 10:42:14 -0400 Subject: [PATCH] Explicitly check StorageRetrieval and ILLRequest links for 'block' status. Thank you, Andre! --- themes/bootstrap3/templates/RecordTab/holdingsils.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/bootstrap3/templates/RecordTab/holdingsils.phtml b/themes/bootstrap3/templates/RecordTab/holdingsils.phtml index 6ae06f432d5..71aa0b283a7 100644 --- a/themes/bootstrap3/templates/RecordTab/holdingsils.phtml +++ b/themes/bootstrap3/templates/RecordTab/holdingsils.phtml @@ -92,8 +92,8 @@ $checkILLRequest = isset($row['checkILLRequest']) && $row['checkILLRequest']; // AJAX block record? $block = !$check && isset($row['addLink']) && $row['addLink'] === 'block'; - $blockStorageRetrievalRequest = !$checkStorageRetrievalRequest && isset($row['addStorageRetrievalRequestLink']) && $row['addStorageRetrievalRequestLink']; - $blockILLRequest = !$checkILLRequest && isset($row['addILLRequestLink']) && $row['addILLRequestLink']; + $blockStorageRetrievalRequest = !$checkStorageRetrievalRequest && isset($row['addStorageRetrievalRequestLink']) && $row['addStorageRetrievalRequestLink'] === 'block'; + $blockILLRequest = !$checkILLRequest && isset($row['addILLRequestLink']) && $row['addILLRequestLink'] === 'block'; ?> <? if (isset($row['barcode']) && $row['barcode'] != ""): ?> <tr vocab="http://schema.org/" typeof="Offer"> -- GitLab