From d0a42b7ed53fd043c9a96817f91416d1cfe7a6c9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 2 Nov 2020 12:28:09 +0000 Subject: [PATCH] Bug 26889: Remove extra space from "Damaged :" in item search This patch adds the chomp shorthand [%- -%] to the BLOCK for showing labels in the item search template. This collapses the whitespace around the label, eliminating the unwanted space around the ":" To test, apply the patch and go to the item search page in the staff interface. There should be no space before the colon in the "Damaged" label. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../prog/en/modules/catalogue/itemsearch.tt | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index 0290678ab4..fe2639d2aa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -3,34 +3,34 @@ [% USE Asset %] [% USE AuthorisedValues %] -[% BLOCK form_label %] - [% SWITCH label %] - [% CASE 'barcode' %]Barcode - [% CASE 'itemcallnumber' %]Call number - [% CASE 'stocknumber' %]Inventory number - [% CASE 'title' %]Title - [% CASE 'author' %]Author - [% CASE 'publishercode' %]Publisher - [% CASE 'publicationyear' %]Publication date - [% CASE 'collectiontitle' %]Collection title - [% CASE 'isbn' %]ISBN - [% CASE 'issn' %]ISSN - [% CASE 'homebranch' %]Home library - [% CASE 'holdingbranch' %]Current library - [% CASE 'All libraries' %]All libraries - [% CASE 'location' %]Shelving location - [% CASE 'All locations' %]All locations - [% CASE 'itype' %]Item type - [% CASE 'All item types' %]All item types - [% CASE 'ccode' %]Collection - [% CASE 'All collection codes' %]All collections - [% CASE 'notforloan' %]Status - [% CASE 'All statuses' %]All statuses - [% CASE 'damaged' %]Damaged - [% CASE 'itemlost' %]Lost - [% CASE 'withdrawn' %]Withdrawn - [% END %] -[% END %] +[%- BLOCK form_label -%] + [%- SWITCH label -%] + [%- CASE 'barcode' %]Barcode + [%- CASE 'itemcallnumber' %]Call number + [%- CASE 'stocknumber' %]Inventory number + [%- CASE 'title' %]Title + [%- CASE 'author' %]Author + [%- CASE 'publishercode' %]Publisher + [%- CASE 'publicationyear' %]Publication date + [%- CASE 'collectiontitle' %]Collection title + [%- CASE 'isbn' %]ISBN + [%- CASE 'issn' %]ISSN + [%- CASE 'homebranch' %]Home library + [%- CASE 'holdingbranch' %]Current library + [%- CASE 'All libraries' %]All libraries + [%- CASE 'location' %]Shelving location + [%- CASE 'All locations' %]All locations + [%- CASE 'itype' %]Item type + [%- CASE 'All item types' %]All item types + [%- CASE 'ccode' %]Collection + [%- CASE 'All collection codes' %]All collections + [%- CASE 'notforloan' %]Status + [%- CASE 'All statuses' %]All statuses + [%- CASE 'damaged' %]Damaged + [%- CASE 'itemlost' %]Lost + [%- CASE 'withdrawn' %]Withdrawn + [%- END -%] +[%- END -%] [% BLOCK form_field_select %]
-- 2.39.5