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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 2 Sep 2016 14:21:28 +0000 (14:21 +0000)
commit50abf24ff04aae0c9010411fa6e98561c2ccc66f
tree8cb9caeade80396d297cf8eb7116126958638c1d
parent1c87129971ddcd4289c42083a6005638b0d5370d
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>
cataloguing/addbiblio.pl
cataloguing/additem.pl