]> git.koha-community.org Git - koha.git/commit
Bug 7045: Use <<tag>> for default value placeholders
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 16 Aug 2016 08:09:53 +0000 (09:09 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 24 Oct 2016 09:07:55 +0000 (11:07 +0200)
commit81399156f8aaeea0d3fff7877731cd8d89e615d3
tree9a7ce952e05ab8c5402a98598613ab7c5dcf304b
parent9af21daf526ac4454811db9aade06eb3c6f61457
Bug 7045: Use <<tag>> for default value placeholders

When adding a biblio, the default value of a MARC subfield defined in
the frameworks can be used as placeholders to set the current date or
the surname of the logged in user (use cases?).
The different placeholders are 'YYYY', 'MM', 'DD', 'user'.
When adding an item, same behavior except that 'user' is not replaced.

This patch makes behaviors consistent between the 2 editors and
surrounds placeholders with << >>
We will now have: <<YYYY>>, <<MM>>, <<DD>> and <<USER>>

Test plan:
Define default values for biblio and item subfields.
Create a bibliographic record and attach it an item.
The default values should be used and replaced if you used placeholders.

Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 50abf24ff04aae0c9010411fa6e98561c2ccc66f)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 60ab0769530c190dcd849f15909eed4961aa8a83)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
cataloguing/addbiblio.pl
cataloguing/additem.pl