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 <katrin.fischer.83@web.de>

https://bugs.koha-community.org/show_bug.cgi?id=6743
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Katrin Fischer 2022-01-09 10:49:44 +00:00 committed by Fridolin Somers
parent 660b1d1e17
commit d8f527667f
2 changed files with 2 additions and 2 deletions

View file

@ -153,7 +153,7 @@
[% END %]
</td>
<td class="libraryfilterclass">[% Branches.GetName( serial.branchcode ) | html %]</td>
<td>[% AuthorisedValues.GetByCode( 'LOC', serial.location, 1 ) | html %]</td>
<td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => serial.location, opac => 1 ) | html %]</td>
<td>[% serial.notes | html %]</td>
[% IF ( serial.status2 && serial.planneddate ) %]
<td data-order="[% serial.planneddate | html %]">

View file

@ -133,7 +133,7 @@
<h3>[% subscription_LOO.branchname | html %]</h3>
[% IF ( subscription_LOO.location ) %]
<p>Location : <em>[% AuthorisedValues.GetByCode( 'LOC', subscription_LOO.location, 1 ) | html | html_line_break %]</em></p>
<p class="subscription_location">Location: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription_LOO.location, opac => 1 ) | html %]</p>
[% END %]
[% IF ( subscription_LOO.notes ) %]