From c58671e9410dd6090ddde682e84b4d375dbd24f9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 12 Apr 2022 11:56:43 +0000 Subject: [PATCH] Bug 30512: Staff interface search results template error This patch removes some markup from the search results template which was causing markup to be output on the screen. Rather than correct the markup so that the "p1" class is correctly added to the relevant links I'm removing it. The "p1" class isn't used anywhere. The patch also corrects two incorrect template filters on one of the page's links. To test, apply the patch and enable the following system preferences: - AmazonCoverImages - IntranetCoce (if available) - LocalCoverImages - Perform a catalog search in the staff interface which will return results with cover images from each of the enabled services. - The covers should show correctly in the search results with no markup being output on screen. --- .../intranet-tmpl/prog/en/modules/catalogue/results.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index d404da064d..369bbf6488 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -434,7 +434,7 @@
[% IF ( LocalCoverImages ) %][% SEARCH_RESULT.localimage | html %]
- 'p1'> + Local cover image
Local cover image
@@ -443,7 +443,7 @@ [% IF ( AmazonCoverImages && SEARCH_RESULT.normalized_isbn ) %]
- 'p1'> + Cover image from Amazon.com
Amazon cover image
@@ -453,7 +453,7 @@ [% IF ( SyndeticsCovers ) %] [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
- + Cover from Syndetics
Syndetics cover image
@@ -465,7 +465,7 @@ [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %] [% IF ( coce_id ) %]
- 'p1'> +
Coce cover image
-- 2.20.1