[Bug 15162] New: Add for Unimarc transformation to new metadata formats
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Bug ID: 15162 Summary: Add for Unimarc transformation to new metadata formats Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: MARC Bibliographic data support Assignee: gmcharlt@gmail.com Reporter: frederic@tamil.fr QA Contact: testopia@bugs.koha-community.org MARC21/NORMARC have XSL files to transform marcxml biblio records into various metadata formats: mods, mod3, oai-dc, rdfdc, rss2, srw_dc. Those XSL are located in 'intranet-tmpl/prog/en/xslt' directory. For Unimarc, there is just one XSL to transform record into OAI-DC format. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=13642 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |13642 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 [Bug 13642] Adding new features for Dublin Core metadata -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 --- Comment #1 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44670 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44670&action=edit Bug 15162 - Add for Unimarc transformation to new metadata formats This patch add: -UNIMARCslim2SRWDC.xsl -UNIMARCslim2RDFDC.xsl To test: -In UNIMARC envarioment -Apply patch -Apply patch 13642 -Follow test plan for bug 13642 -Check for any data loss -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |hector.hecaxmmx@gmail.com Assignee|gmcharlt@gmail.com |hector.hecaxmmx@gmail.com -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Small patch Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44670|0 |1 is obsolete| | --- Comment #2 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 44679 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44679&action=edit Bug 15162 Add for Unimarc XSL trans for RDF-DC & SRW-DC To test with an Unimarc Catalog: - Open this URL /cgi-bin/koha/unapi?id=koha:biblionumber:41201&format=marcxml And play with id & format parameters Test format=rdfdc and format=srw_dc - Or try with bug 13642 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44679|0 |1 is obsolete| | --- Comment #3 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44766 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44766&action=edit [SIGNED-OFF]Bug 15162 Add for Unimarc XSL trans for RDF-DC & SRW-DC To test with an Unimarc Catalog: - Open this URL /cgi-bin/koha/unapi?id=koha:biblionumber:41201&format=marcxml And play with id & format parameters Test format=rdfdc and format=srw_dc - Or try with bug 13642 Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as advertised. Both XML formats generated successfully. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|13642 | Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 [Bug 13642] Adding new features for Dublin Core metadata -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |13642 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 [Bug 13642] Adding new features for Dublin Core metadata -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |15170 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15170 [Bug 15170] Add 264 field to MARC21*DC.xsl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|15170 | Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15170 [Bug 15170] Add 264 field to MARC21*DC.xsl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44766|0 |1 is obsolete| | --- Comment #4 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 44822 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44822&action=edit Bug 15162 Add for Unimarc XSL trans for RDF-DC & SRW-DC Fix also, marginaly, OAI-DC XSL file which were using 090$a as biblionumber rather than 001. To test with an Unimarc Catalog: - Open this URL /cgi-bin/koha/unapi?id=koha:biblionumber:41201&format=marcxml And play with id & format parameters Test format=rdfdc and format=srw_dc - Or try with bug 13642 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44822|0 |1 is obsolete| | --- Comment #5 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 44823 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44823&action=edit Bug 15162 Add for Unimarc XSL trans for RDF-DC & SRW-DC Fix also, marginaly, OAI-DC XSL file which were using 090$a as biblionumber rather than 001. To test with an Unimarc Catalog: - Open this URL /cgi-bin/koha/unapi?id=koha:biblionumber:41201&format=marcxml And play with id & format parameters Test format=rdfdc and format=srw_dc - Or try with bug 13642 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44823|0 |1 is obsolete| | --- Comment #6 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 44824 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44824&action=edit Bug 15162 Add for Unimarc XSL trans for RDF-DC & SRW-DC Fix also, marginaly, OAI-DC XSL file which were using 090$a as biblionumber rather than 001. To test with an Unimarc Catalog: - Open this URL /cgi-bin/koha/unapi?id=koha:biblionumber:41201&format=marcxml And play with id & format parameters Test format=rdfdc and format=srw_dc - Or try with bug 13642 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44824|0 |1 is obsolete| | --- Comment #7 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44825 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44825&action=edit [SIGNED-OFF]Bug 15162 Add for Unimarc XSL trans for RDF-DC & SRW-DC Fix also, marginaly, OAI-DC XSL file which were using 090$a as biblionumber rather than 001. To test with an Unimarc Catalog: - Open this URL /cgi-bin/koha/unapi?id=koha:biblionumber:41201&format=marcxml And play with id & format parameters Test format=rdfdc and format=srw_dc - Or try with bug 13642 Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as advertised. Both XML formats generated successfully. Also fix problem with OPACBaseURL in UNIMARC environment. Tested with Sandbox too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|hector.hecaxmmx@gmail.com |frederic@tamil.fr -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 --- Comment #8 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Comment on attachment 44825 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44825 [SIGNED-OFF]Bug 15162 Add for Unimarc XSL trans for RDF-DC & SRW-DC Review of attachment 44825: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15162&attachment=44825) ----------------------------------------------------------------- ::: koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2RDFDC.xsl @@ +142,5 @@
+ <xsl:text>URN:ISSN:</xsl:text> + <xsl:value-of select="marc:subfield[@code='a']"/> + </dc:identifier> + </xsl:for-each> + <xsl:for-each select="marc:datafield[@tag=995]">
It seems that unapi does not return the item fields. @@ +147,5 @@
+ <dc:identifier> + <xsl:text>LOC:</xsl:text> + <xsl:choose> + <xsl:when test="marc:subfield[@code='c']='MAIN'">Main library</xsl:when> + <xsl:when test="marc:subfield[@code='c']='BIB2'">Library 2</xsl:when>
Hum? :) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 --- Comment #9 from Frédéric Demians <frederic@tamil.fr> --- (In reply to Jonathan Druart from comment #8)
Comment on attachment 44825 [details] [review] [SIGNED-OFF]Bug 15162 Add for Unimarc XSL trans for RDF-DC & SRW-DC
Review of attachment 44825 [details] [review]: -----------------------------------------------------------------
::: koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2RDFDC.xsl @@ +142,5 @@
+ <xsl:text>URN:ISSN:</xsl:text> + <xsl:value-of select="marc:subfield[@code='a']"/> + </dc:identifier> + </xsl:for-each> + <xsl:for-each select="marc:datafield[@tag=995]">
It seems that unapi does not return the item fields.
So it won't hurt. It's a cut-and-paste of the OAI-PMH XSL.
@@ +147,5 @@
+ <dc:identifier> + <xsl:text>LOC:</xsl:text> + <xsl:choose> + <xsl:when test="marc:subfield[@code='c']='MAIN'">Main library</xsl:when> + <xsl:when test="marc:subfield[@code='c']='BIB2'">Library 2</xsl:when>
Hum? :)
It's how it is now for OAI XSL. It's not a regression... It won't display anything except if a Unimarc DB has a branch named MAIN or BIB2. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44825|0 |1 is obsolete| | --- Comment #10 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 46582 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46582&action=edit Bug 15162 Add for Unimarc XSL trans for RDF-DC & SRW-DC Fix also, marginaly, OAI-DC XSL file which were using 090$a as biblionumber rather than 001. To test with an Unimarc Catalog: - Open this URL /cgi-bin/koha/unapi?id=koha:biblionumber:41201&format=marcxml And play with id & format parameters Test format=rdfdc and format=srw_dc - Or try with bug 13642 Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as advertised. Both XML formats generated successfully. Also fix problem with OPACBaseURL in UNIMARC environment. Tested with Sandbox too. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 --- Comment #11 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 46583 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46583&action=edit Bug 15162: Remove specific test in UNIMARCslim2*.xsl Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #12 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Frédéric Demians from comment #9)
@@ +147,5 @@
+ <dc:identifier> + <xsl:text>LOC:</xsl:text> + <xsl:choose> + <xsl:when test="marc:subfield[@code='c']='MAIN'">Main library</xsl:when> + <xsl:when test="marc:subfield[@code='c']='BIB2'">Library 2</xsl:when>
Hum? :)
It's how it is now for OAI XSL. It's not a regression... It won't display anything except if a Unimarc DB has a branch named MAIN or BIB2.
I have removed them. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 --- Comment #13 from Frédéric Demians <frederic@tamil.fr> ---
I have removed them.
Good. Thanks for that, and thanks for the QA. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org