Summary: | Fix unapi for NORMARC | ||
---|---|---|---|
Product: | Koha | Reporter: | Magnus Enger <magnus> |
Component: | Z39.50 / SRU / OpenSearch Servers | Assignee: | Magnus Enger <magnus> |
Status: | CLOSED FIXED | QA Contact: | Jonathan Druart <jonathan.druart> |
Severity: | normal | ||
Priority: | P5 - low | CC: | chris, jonathan.druart, m.de.rooy |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 10058 - Fix unapi for NORMARC
Sample NORMARC record Bug 10058 - Fix unapi for NORMARC Bug 10058 - Fix unapi for NORMARC |
Description
Magnus Enger
2013-04-15 19:54:50 UTC
Created attachment 17476 [details] [review] Bug 10058 - Fix unapi for NORMARC This patch uses a lot of MARC21 XSLT to transform NORMARC records to desired formats. Since NORMARC is mostly a subset of MARC21, I think this should give passable results. And better results than no unapi-support at all for NORMARC! To reproduce: - Make sure you have marcflavour = NORMARC - Visit /cgi-bin/koha/unapi in a browser - Observe the empty <formats></formats> element To test: - Apply the patch - Visit /cgi-bin/koha/unapi in a browser - Observe the the list of formats in the <formats></formats> element - Import the provided sample NORMARC record and make a note of its biblionumber - View the record at /cgi-bin/koha/unapi?id=koha:biblionumber:x&format=y where x = the biblionumber of the sample record and y = one of the formats marcxml, marcxml-full, mods, mods-full, mods3, mods3-full, oai_dc, rdfdc, rss2, rss2-full and srw_dc - Check that the transformed records make some kind of superficial sense Created attachment 17477 [details]
Sample NORMARC record
Created attachment 17487 [details] [review] Bug 10058 - Fix unapi for NORMARC This patch uses a lot of MARC21 XSLT to transform NORMARC records to desired formats. Since NORMARC is mostly a subset of MARC21, I think this should give passable results. And better results than no unapi-support at all for NORMARC! To reproduce: - Make sure you have marcflavour = NORMARC - Visit /cgi-bin/koha/unapi in a browser - Observe the empty <formats></formats> element To test: - Apply the patch - Visit /cgi-bin/koha/unapi in a browser - Observe the the list of formats in the <formats></formats> element - Import the provided sample NORMARC record and make a note of its biblionumber - View the record at /cgi-bin/koha/unapi?id=koha:biblionumber:x&format=y where x = the biblionumber of the sample record and y = one of the formats marcxml, marcxml-full, mods, mods-full, mods3, mods3-full, oai_dc, rdfdc, rss2, rss2-full and srw_dc - Check that the transformed records make some kind of superficial sense Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> QA comment: Looks good according to test plan. Marked as Passed QA. Created attachment 17552 [details] [review] Bug 10058 - Fix unapi for NORMARC This patch uses a lot of MARC21 XSLT to transform NORMARC records to desired formats. Since NORMARC is mostly a subset of MARC21, I think this should give passable results. And better results than no unapi-support at all for NORMARC! To reproduce: - Make sure you have marcflavour = NORMARC - Visit /cgi-bin/koha/unapi in a browser - Observe the empty <formats></formats> element To test: - Apply the patch - Visit /cgi-bin/koha/unapi in a browser - Observe the the list of formats in the <formats></formats> element - Import the provided sample NORMARC record and make a note of its biblionumber - View the record at /cgi-bin/koha/unapi?id=koha:biblionumber:x&format=y where x = the biblionumber of the sample record and y = one of the formats marcxml, marcxml-full, mods, mods-full, mods3, mods3-full, oai_dc, rdfdc, rss2, rss2-full and srw_dc - Check that the transformed records make some kind of superficial sense Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> This patch has been pushed to master and 3.12.x. Pushed to 3.10.x will be in 3.10.6 |