From 6a76120ea2cc480b10d088e02349a3f55b5e89cd 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 --- 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 6273c69c66..69e8657961 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -595,7 +595,7 @@ [% IF ( biblio.biblioitem.publicationyear ) %]
  • Publication year: - [% biblio.biblioitem.publicationyear | $KohaDates %] + [% biblio.biblioitem.publicationyear | html %]
  • [% END %] -- 2.30.2