| Summary: | Embed see-also-from headings into bibliographic records export | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Fridolin Somers <fridolin.somers> |
| Component: | Command-line Utilities | Assignee: | Fridolin Somers <fridolin.somers> |
| Status: | Signed Off --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | david, robin |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34481 | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | Trivial patch |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: |
Adds a new option, `--embed_see_also_from_headings`, to the `misc/export_records.pl` script.
This will include any authority record see-also-from headings in the export for any bibliographic record 6xx fields, where the authority record has a 5xx.
Example:
1. A bibliographic record has a 650 - SUBJECT ADDED ENTRY--TOPICAL TERM:
. 650$a = Perl (Computer program language)
. 650$9 = 19
2. The authority record (Perl (Computer program language)) has a 550 - SEE ALSO FROM TRACING--TOPICAL TERM:
. 550$a = Scripting languages (Computer science)
. 550$w = g
3. With the `--embed_see_also_from_headings` option added to `misc/export_records.pl` you get the authority record's 550 information in the export:
```
<datafield tag="650" ind1="z" ind2=" ">
<subfield code="a">Scripting languages (Computer science)</subfield>
<subfield code="w">g</subfield>
</datafield>
```
|
Version(s) released in: | |
| Circulation function: | |||
| Bug Depends on: | 31286, 34481 | ||
| Bug Blocks: | |||
| Attachments: |
Bug 32509: Embed see-also-from headings into bibliographic records export
Bug 32509: Embed see-also-from headings into bibliographic records export Bug 32509: Embed see-also-from headings into bibliographic records export Bug 32509: Embed see-also-from headings into bibliographic records export Bug 32509: Embed see-also-from headings into bibliographic records export |
||
|
Description
Fridolin Somers
2022-12-20 19:05:31 UTC
Created attachment 144748 [details] [review] Bug 32509: Embed see-also-from headings into bibliographic records export This is just the code. If someone is interested, I will provide test plan and UT. Created attachment 144751 [details] [review] Bug 32509: Embed see-also-from headings into bibliographic records export Should this be 'needs signoff'? Needs test plan and unit test Maybe should rename Koha::RecordProcessor "EmbedSeeFromHeadings" For example "EmbedOtherHeadings" Created attachment 190692 [details] [review] Bug 32509: Embed see-also-from headings into bibliographic records export Patch from commit c2cd6a9 Created attachment 190696 [details] [review] Bug 32509: Embed see-also-from headings into bibliographic records export In misc/export_records.pl add an option to add see-also-from headings (from authorities 5xx) into bibliographic records export. Like see-from. Test plan : 1) Choose a biblio record having a field (for example 650) linked to an authority with a see-also-from. 2) Export this record without see-also-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-also-from headings : misc/export_records.pl --starting_biblionumber=X --ending_biblionumber=X --filename /tmp/record_with.xml --format xml --embed_see_also_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-also-from heading Sent from https://gitlab.com/koha-community/perl-git-bz ;) Created attachment 190743 [details] [review] Bug 32509: Embed see-also-from headings into bibliographic records export In misc/export_records.pl add an option to add see-also-from headings (from authorities 5xx) into bibliographic records export. Like see-from. Test plan : 1) Choose a biblio record having a field (for example 650) linked to an authority with a see-also-from. 2) Export this record without see-also-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-also-from headings : misc/export_records.pl --starting_biblionumber=X --ending_biblionumber=X --filename /tmp/record_with.xml --format xml --embed_see_also_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-also-from heading Signed-off-by: David Nind <david@davidnind.com> Testing notes (using KTD): 1. Programming Perl (biblionumber = 262) has a 650 (Perl (Computer program language)) where the authority record (authid = 19) has a 550 (Scripting languages (Computer science)). 2. Attempted a release note with an example. |