[Koha-bugs] [Bug 21705] Map copryrightdate to both 260/264c by default for new MARC21 installations

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 5 21:04:32 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21705

Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #128186|0                           |1
        is obsolete|                            |

--- Comment #5 from Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> ---
Created attachment 141394
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=141394&action=edit
Bug 21705: Map copryrightdate to both 260/264c by default for new MARC21
installations

This patch adds a mapping from 264 to biblio.copyrightdate.

To test:

1. Apply patch
2. Delete existing frameworks
2.1. In the database, run the following commands
delete from marc_tag_structure;
delete from marc_subfield_structure;
delete from biblio_framework;
3. Load default framework
3.1. In a terminal, run
./misc/load_yaml.pl -f
installer/data/mysql/en/marcflavour/marc21/mandatory/marc21_framework_DEFAULT.yml
--load
4. In the staff interface, go to Administration > MARC bibliographic framework
--> The default framework should be there
5. Make 264c appear in the editor
5.1. In Administration > MARC bibliographic framework, click on Actions > MARC
structure next to the default framework
5.2. Search for 264
5.3. Click on Actions > Edit subfields
5.4. Click on tab c
5.5. Check the 'Editor' box 
5.6. Click 'Save changes'
6. In Administration > Koha to MARC mapping, check the mappings for
biblio.copyrightdate
6.1. Go to Administration > Koha to MARC mapping
6.2. Search for copyrightdate
--> biblio.copyrightdate should be mapped to 260c as well as 264c
7. Create a bibliographic record with a value in 264c
7.1. Go to Cataloging
7.2. Click 'New record'
7.3. Fill in mandatory fields (000, 003, 005, 008, 040c, 245a, 942c)
7.4. Enter a date in 264c
7.5. Click 'Save'
7.6. Note the record number (no need to add an item)
8. Create a bibliographic record with a value in 260c
8.1. Go to Cataloging
8.2. Click 'New record'
8.3. Fill in mandatory fields (000, 003, 005, 008, 040c, 245a, 942c)
8.4. Enter a date in 260c
8.5. Click 'Save'
8.6. Note the record number (no need to add an item)
9. Check the database biblio entry for both records, they should both have a
value for copyrightdate
9.1. In the database, enter the following query, replacing AA with your
biblionumber from step 7.6 and BB with the biblionumber from 8.6
select biblionumber, copyrightdate from biblio where biblionumber in (AA, BB)
--> Both biblios should have a date in copyrightdate

I hope I didn't forget anything! :)

Caroline

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list