From 3762a45de239db58f13c4687519e3342b49820d7 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 9 Jan 2022 10:49:44 +0000 Subject: [PATCH] Bug 6734: (QA follow-up) Fix punctuation, TT filters, and CSS class * Changes Location : to Location: * Removes html_line_break filter, as location is not multi-line * Add subscription_location CSS class * Use AuthorisedValues.GetDescriptionByKohaField() Signed-off-by: Katrin Fischer https://bugs.koha-community.org/show_bug.cgi?id=6743 --- .../opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt index 31a6cf80cd..dc92e43e32 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt @@ -153,7 +153,7 @@ [% END %] [% Branches.GetName( serial.branchcode ) | html %] - [% AuthorisedValues.GetByCode( 'LOC', serial.location, 1 ) | html %] + [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => serial.location, opac => 1 ) | html %] [% serial.notes | html %] [% IF ( serial.status2 && serial.planneddate ) %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt index 3e1c02c968..3cf41913d2 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt @@ -133,7 +133,7 @@

[% subscription_LOO.branchname | html %]

[% IF ( subscription_LOO.location ) %] -

Location : [% AuthorisedValues.GetByCode( 'LOC', subscription_LOO.location, 1 ) | html | html_line_break %]

+

Location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription_LOO.location, opac => 1 ) | html %]

[% END %] [% IF ( subscription_LOO.notes ) %] -- 2.30.2