Bug 30395: Fix TT filtering of publicationyear in reserve/request.tt

biblioitems.publicationyear is not a date (it can be, but we cannot
guarantee that) so the $KohaDates filter should not be used on this data

Test plan:
1. Verify that in the default MARC framework there is a field linked to
   biblioitems.publicationyear (typically it's 210$d for UNIMARC)
2. Create a biblio with a non ISO-formatted date in this field. It
   can be a "YYYY" year for instance. Create an item for this biblio.
3. Try to place a hold on this biblio. If it works, you can sign off

Signed-off-by: Sonia <sonia.bouis@univ-lyon3.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Julian Maurice 2022-03-29 13:27:10 +02:00 committed by Fridolin Somers
parent 666a322acb
commit 8cd49951bf

View file

@ -578,7 +578,7 @@
[% IF ( biblio.biblioitem.publicationyear ) %]
<li>
<span class="label">Publication year:</span>
[% biblio.biblioitem.publicationyear | $KohaDates %]
[% biblio.biblioitem.publicationyear | html %]
</li>
[% END %]
</ol>