From a7741759aa501c8545b6acd97c0a2d851a148c12 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 26 Aug 2016 19:20:34 +0000 Subject: [PATCH] Bug 15388 - Show Syndetics covers by UPC in search results MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Syndetics code accepts UPC and OCLC numbers, however, we were only passing this if there was an ISBN. This patch alters the code to search if either an ISBN or UPC is present To test: Enable syndetics (will need an account) Search for items with UPCs or OCLC numbers and no ISBN (DVDs) Note there are no images in search results but there are in details Apply patch Note that items with images in details now also have images in results Signed-off-by: Barbara.Johnson@bedfordtx.gov Signed-off-by: Martin Renvoize Signed-off-by: Brendan Gallagher (cherry picked from commit dbf2f7d6d97686179a1e794e0c74ad8be441a177) Signed-off-by: Frédéric Demians --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 7021638ed1..f261e6e94a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -236,7 +236,7 @@ [% END %] [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] - [% IF SEARCH_RESULT.normalized_isbn %] + [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %] [% IF ( using_https ) %] [% ELSE %] -- 2.39.5