]> git.koha-community.org Git - koha.git/commit
Bug 31286: Embed see-from headings into bibliographic records export
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 3 Aug 2022 01:17:25 +0000 (15:17 -1000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 25 Mar 2024 08:53:24 +0000 (09:53 +0100)
commitfd70ee6a9411d9f320c6f609415d74dd38a0116f
tree181ec5fa9931217bbdcd1c9e141bec9bb706b7af
parentbc56fb9a281cb3ec3d9e56689c88b8ee4cb976a7
Bug 31286: Embed see-from headings into bibliographic records export

In misc/export_records.pl add an option to add see-from headings (from authorities 4xx) into bibliographic records export.
Like it is done during record indexing.

Test plan :
1) Choose a biblio record having a field (for example 650) linked to an authority with a see-form.
2) Export this record without see-from headings :
   misc/export_records.pl --starting_biblionumber=X --ending_biblionumber=X --filename /tmp/record_without.xml --format xml
3) Export this record with see-from headings :
   misc/export_records.pl --starting_biblionumber=X --ending_biblionumber=X --filename /tmp/record_with.xml --format xml --embed_see_from_headings
4) Compare /tmp/record_without.xml and /tmp/record_with.xml
=> you should see two 650, one with main heading and one with see-from heading

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Exporter/Record.pm
misc/export_records.pl