From 1bb9b8b5514f512dfba74ca1ace97ec7fbcb4884 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 9 Apr 2021 12:09:28 +0000 Subject: [PATCH] Bug 28119: Use full description in layout type selection This patch changes the template for editing label layout so that a full description of label types is shown to the user rather than brief names. To test, apply the patch and go to Tools -> Label creator -> New -> Layout. - On the "Choose layout type" line you should see selections with full descriptions, e.g. "Only the barcode is printed." - Choose a layout type and save the layout. Confirm that your choice was saved correctly. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Bug 28119: (follow-up) Remove unnecessary punctuation Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../en/modules/labels/label-edit-layout.tt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt index f04ff65fd5..e6a0efae27 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt @@ -1,14 +1,14 @@ [% USE raw %] [% SET footerjs = 1 %] -[% BLOCK translate_label_types %] -[% SWITCH type %] -[% CASE 'BIB' %]Biblio -[% CASE 'BARBIB' %]Barcode/Biblio -[% CASE 'BIBBAR' %]Biblio/Barcode -[% CASE 'ALT' %]Alternating -[% CASE 'BAR' %]Barcode -[% END %] -[% END %] +[%- BLOCK translate_label_types -%] + [%- SWITCH type -%] + [%- CASE 'BIB' -%] Only the bibliographic data is printed + [%- CASE 'BARBIB'-%] Barcode proceeds bibliographic data + [%- CASE 'BIBBAR'-%] Bibliographic data proceeds barcode + [%- CASE 'ALT' -%] Barcode and bibliographic data are printed on alternating labels + [%- CASE 'BAR' -%] Only the barcode is printed + [%- END -%] +[%- END -%] [% INCLUDE 'doc-head-open.inc' %] [% IF ( layout_id ) %]Edit label layout [% layout_id | html %] [% ELSE %] New label layout [% END %] › Layouts › Label creator › Tools › Koha [% INCLUDE 'doc-head-close.inc' %] -- 2.39.5