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)
committerFrédéric Demians <f.demians@tamil.fr>
Sat, 22 Oct 2016 07:04:33 +0000 (09:04 +0200)
commit60ab0769530c190dcd849f15909eed4961aa8a83
tree1c0b98d307f3f167eb109b8789bd9b99436de0c4
parent1de610bb63f70b9f4a1e3a8a5683de5d3bb7bb12
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>
cataloguing/addbiblio.pl
cataloguing/additem.pl