From eda11a029397aef5fea4d3e821c6c87dd2519ede 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. Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers --- .../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 6e58c78555..cde3f0f090 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -436,7 +436,7 @@
[% IF ( LocalCoverImages ) %][% SEARCH_RESULT.localimage | html %]
- 'p1'> + Local cover image
Local cover image
@@ -445,7 +445,7 @@ [% IF ( AmazonCoverImages && SEARCH_RESULT.normalized_isbn ) %]
- 'p1'> + Cover image from Amazon.com
Amazon cover image
@@ -455,7 +455,7 @@ [% IF ( SyndeticsCovers ) %] [% IF ( SEARCH_RESULT.normalized_isbn || SEARCH_RESULT.normalized_upc || SEARCH_RESULT.normalized_oclc ) %]
- + Cover from Syndetics
Syndetics cover image
@@ -467,7 +467,7 @@ [% coce_id = SEARCH_RESULT.normalized_ean || SEARCH_RESULT.normalized_isbn %] [% IF ( coce_id ) %]
- 'p1'> +
Coce cover image
-- 2.39.5