From 8cd49951bf3513c6eaceaf4494375ad01636250b Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 29 Mar 2022 13:27:10 +0200 Subject: [PATCH] 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 Signed-off-by: Nick Clemens Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 4c26daab88..97698a8ff8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -578,7 +578,7 @@ [% IF ( biblio.biblioitem.publicationyear ) %]
  • Publication year: - [% biblio.biblioitem.publicationyear | $KohaDates %] + [% biblio.biblioitem.publicationyear | html %]
  • [% END %] -- 2.39.5