Koha/acqui
Owen Leonard 0629d4082f Bug 24134: Add placeholder for 2 digit years to allow autogeneration of dates in 008
This patch modifies the code for parsing MARC framework configurations
so that the placeholder "<<YY>>" translates to a two-year date.

To test, apply the patch and modify a framework to include placeholders.
For example, in MARC21:

 - Administration -> MARC structure -> 952 -> Edit subfields -> d
 - Expand "Advanced constraints" and add a default value:
   <<YYYY>> <<YY>> <<MM>> <<DD>> <<USER>>
 - Save your configuration and go to Cataloging.
 - Go to the add/edit items page for a record which uses the framework
   you edited.
 - In the "Add item" form, in the "Date aquired" field, you should see
   the correct values. For example: '2019 19 12 03 Leonard'

Perform the same test when adding an item during the Acquisitions
process (depending on your AcqCreateItem setting).

Note that acqui/neworderempty.pl has been modified because the
placeholder-replacement code is repeated there, but I couldn't discover
how to test it (if it is used at all?)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-13 07:55:44 +02:00
..
acqui-home.pl
add_user_search.pl
addorder.pl Bug 24347: (follow-up) Remove custom catalog search from acquisitions 2020-01-30 10:59:27 +00:00
addorderiso2709.pl Bug 21268: Don't remove 0 allocated funds from fund list 2020-07-30 17:44:27 +02:00
ajax-getauthvaluedropbox.pl
basket.pl Bug 21268: Don't remove 0 allocated funds from fund list 2020-07-30 17:44:27 +02:00
basketgroup.pl Bug 9993: On editing basket group delivery place resets to logged in branch 2020-02-04 10:21:38 +00:00
basketheader.pl Bug 25611: Use selected vendor when creating a basket 2020-06-24 14:31:37 +02:00
booksellers.pl Bug 21268: Don't remove 0 allocated funds from fund list 2020-07-30 17:44:27 +02:00
cancelorder.pl
check_budget_total.pl
check_uniqueness.pl Bug 23463: Replace SearchItemsByField by SearchItems 2020-03-23 09:26:09 +00:00
duplicate_orders.pl Bug 21268: Don't remove 0 allocated funds from fund list 2020-07-30 17:44:27 +02:00
edi_ean.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
edifactmsgs.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
edimsg.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
finishreceive.pl Bug 23596: Edit suggestion's reason when receiving 2020-04-14 16:30:16 +01:00
histsearch.pl Bug 14669: Add search option for managing library to orders search 2019-10-08 14:04:48 +01:00
invoice-files.pl
invoice.pl Bug 21268: Don't remove 0 allocated funds from fund list 2020-07-30 17:44:27 +02:00
invoices.pl
lateorders-export.pl Bug 24163: UTF-8 encode the output 2020-05-05 11:08:44 +01:00
lateorders.pl Bug 25266: Remove uneeded var 2020-06-15 10:32:20 +02:00
modordernotes.pl
neworderempty.pl Bug 24134: Add placeholder for 2 digit years to allow autogeneration of dates in 008 2020-08-13 07:55:44 +02:00
newordersubscription.pl
newordersuggestion.pl Bug 4833: (QA follow-up) Add budgetname to SearchSuggestion 2019-05-15 16:46:47 +00:00
ordered.pl Bug 25223: Make join of aqbasket and aqorders explicit 2020-04-22 09:29:13 +01:00
orderreceive.pl Bug 21268: Don't remove 0 allocated funds from fund list 2020-07-30 17:44:27 +02:00
parcel.pl Bug 24672: (bug 24430 follow-up) Do not get active orders on deleted biblio record 2020-03-24 09:31:34 +00:00
parcels.pl Bug 21268: Don't remove 0 allocated funds from fund list 2020-07-30 17:44:27 +02:00
showorder.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
spent.pl Bug 23397: (follow-up) Split and display itemtypes 2019-09-06 13:17:46 +01:00
supplier.pl
transferorder.pl
uncertainprice.pl Bug 18177: remove aqbooksellers.booksellerurl 2020-03-27 12:15:47 +00:00
updatesupplier.pl
z3950_search.pl Bug 21921: Add date publication year to biblio Z39.50 search form in acquisition 2020-02-17 13:44:34 +00:00