[Koha-bugs] [Bug 23924] Add a parameter to the script add_date_fields_to_marc_records.pl to specify a date field
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Apr 17 02:57:38 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23924
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david at davidnind.com
--- Comment #11 from David Nind <david at davidnind.com> ---
How I tested (using KTD):
1. Made 905$a and 908$a and visible in editor for the BKS framework.
2. Select a record and added a date in 908$a using default format e.g.
02/02/2023 (for example record 1)
3. Select another record and added a date in 908$a using ISO format e.g.
2023-04-01 (for example record 262)
4. Applied the patch.
5. Ran these examples, including output from change:
- perl misc/add_date_fields_to_marc_records.pl --field='905$a=0/%Y'
--field='905$a=1/%Y/%b-%m' --field='905$a=2/%Y/%b-%m/%d'
--unless-exists='905$a' --where "biblionumber=1" --date-field='908$a'
--verbose --confirm
02/02/2023 at misc/add_date_fields_to_marc_records.pl line 82.
The following MARC fields will be added to record 1:
905 _a0/2023
905 _a1/2023/Feb-02
905 _a2/2023/Feb-02/02
Bibliographic record 1 has been modified
- perl misc/add_date_fields_to_marc_records.pl --field='905$a=0/%Y'
--field='905$a=1/%Y/%b-%m' --field='905$a=2/%Y/%b-%m/%d'
--unless-exists='905$a' --where "biblionumber=262" --date-field='908$a'
--verbose --confirm
2023-04-01 at misc/add_date_fields_to_marc_records.pl line 82.
The following MARC fields will be added to record 262:
905 _a0/2023
905 _a1/2023/Apr-04
905 _a2/2023/Apr-04/01
Bibliographic record 262 has been modified
I hope that is sufficent to test!
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list