]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 23 May 2024 08:39:39 +0000 (10:39 +0200)
commita0556b5bc7cedb7b6d0ccd83b44f89df2a2d9fe5
tree2821fedda5685b230c4c073aa170b94da1f91e63
parent529b34cbf6bba5ebc91bade37a98e70e4ce65572
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>
(cherry picked from commit fd70ee6a9411d9f320c6f609415d74dd38a0116f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Exporter/Record.pm
misc/export_records.pl