]> git.koha-community.org Git - koha.git/commit
Bug 30395: Fix TT filtering of publicationyear in reserve/request.tt
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 29 Mar 2022 11:27:10 +0000 (13:27 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 4 Apr 2022 14:24:26 +0000 (16:24 +0200)
commit8cd49951bf3513c6eaceaf4494375ad01636250b
tree1ad270237429e5c1cc6a3ddbf895a581c13cd1e4
parent666a322acb3f8ab9365ac9c0cf00e1dcd1b4fed8
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>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt