Bug 20129

Summary: MetadataPrefix=marc21 doesn't use specified xslt
Product: Koha Reporter: martin.stastny
Component: Web servicesAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: black23, josef.moravec
Version: 17.11   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description martin.stastny 2018-02-02 10:42:42 UTC
Hello,

Since 17.11, metadaPrefix marc21 uses some default xslt stylesheet instead of our edited one in the OAI. We got defined marc21 format by yaml conf file, but OAI uses another one. If we rename format e.g. to marc2 it works fine.
Specifically, with those 2 defined formats, will "nkp" works as expected, but "marc21" output will be different from "nkp" and wrong:
  nkp:
    metadataPrefix: nkp
    metadataNamespace: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim
    schema: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
    xsl_file: /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/cs-CZ/xslt/MARC21NKP.xsl
  marc21:
    metadataPrefix: marc21
    metadataNamespace: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim
    schema: http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd
    xsl_file: /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/cs-CZ/xslt/MARC21NKP.xsl
Comment 1 Josef Moravec 2018-02-07 13:12:51 UTC
It is duplicate of bug 19353

You can test it and sign off ;)

*** This bug has been marked as a duplicate of bug 19353 ***
Comment 2 Michal Denar 2018-02-07 16:20:50 UTC
Here is how sign-off pathes:
https://wiki.koha-community.org/wiki/Sign_off_on_patches

or kohadevbox: https://github.com/digibib/kohadevbox