Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable handle-picaxml handler to handle pica/xml not just ppxml #530

Open
TobiasNx opened this issue May 6, 2024 · 0 comments
Open

Enable handle-picaxml handler to handle pica/xml not just ppxml #530

TobiasNx opened this issue May 6, 2024 · 0 comments

Comments

@TobiasNx
Copy link
Contributor

TobiasNx commented May 6, 2024

At the moment handle-picaxml only can handle ppxml:

https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%0A%7C+decode-xml%0A%7C+handle-picaxml%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%0A%3B&data=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Crecord+xmlns%3D%22http%3A//www.oclcpica.org/xmlns/ppxml-1.0%22%3E%0A++%3Cglobal+opacflag%3D%22%22+status%3D%22%22%3E%0A++++%3Ctag+id%3D%22003@%22+occ%3D%22%22%3E%0A++++++%3Csubf+id%3D%220%22%3E12345X%3C/subf%3E%0A++++%3C/tag%3E%0A++++%3Ctag+id%3D%22021A%22+occ%3D%22%22%3E%0A++++++%3Csubf+id%3D%22a%22%3EEin+Buch%3C/subf%3E%0A++++++%3Csubf+id%3D%22h%22%3Ezum+Lesen%3C/subf%3E%0A++++%3C/tag%3E%0A++++%3Ctag+id%3D%22045B%22+occ%3D%222%22%3E%0A++++++%3Csubf+id%3D%22a%22%3ESpo+1025%3C/subf%3E%0A++++++%3Csubf+id%3D%22a%22%3EBID+200%3C/subf%3E%0A++++%3C/tag%3E%0A++%3C/global%3E%0A%3C/record%3E

But cannot handle pica/xml:
https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%0A%7C+decode-xml%0A%7C+handle-picaxml%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%0A%3B&data=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A++%3Crecord+xmlns%3D%22info%3Asrw/schema/5/picaXML-v1.0%22+xmlns%3Axsi%3D%22http%3A//www.w3.org/2001/XMLSchema-instance%22+xsi%3AschemaLocation%3D%22info%3Asrw/schema/5/picaXML-v1.0+http%3A//www.oclcpica.org/xml/picaplus.xsd%22%3E%0A++++++%3Cdatafield+tag%3D%22001@%22%3E%0A++++++%3Csubfield+code%3D%220%22%3E0917%3A14-03-05%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22001B%22%3E%0A++++++%3Csubfield+code%3D%220%22%3E0917%3A23-03-05%3C/subfield%3E%0A++++++%3Csubfield+code%3D%22t%22%3E16%3A15%3A13.000%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22001D%22%3E%0A++++++%3Csubfield+code%3D%220%22%3E0917%3A23-03-05%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22001X%22%3E%0A++++++%3Csubfield+code%3D%220%22%3E0%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22002@%22%3E%0A++++++%3Csubfield+code%3D%220%22%3EAau%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22003@%22%3E%0A++++++%3Csubfield+code%3D%220%22%3E481592954%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22004A%22%3E%0A++++++%3Csubfield+code%3D%220%22%3E3774250936%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22011@%22%3E%0A++++++%3Csubfield+code%3D%22a%22%3E2004%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22021A%22%3E%0A++++++%3Csubfield+code%3D%22a%22%3EDer+Hamster%3C/subfield%3E%0A++++++%3Csubfield+code%3D%22d%22%3Eartgerecht+halten%2C+gesund+ern%C3%A4hren%2C+richtig+verstehen%3C/subfield%3E%0A++++++%3Csubfield+code%3D%22h%22%3EPeter+Hollmann%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22028A%22%3E%0A++++++%3Csubfield+code%3D%22d%22%3EPeter%3C/subfield%3E%0A++++++%3Csubfield+code%3D%22a%22%3EHollmann%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22032@%22%3E%0A++++++%3Csubfield+code%3D%22a%22%3E5.+Aufl%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22033A%22%3E%0A++++++%3Csubfield+code%3D%22p%22%3EM%C3%BCnchen%3C/subfield%3E%0A++++++%3Csubfield+code%3D%22n%22%3EGr%C3%A4fe+und+Unzer%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22034D%22%3E%0A++++++%3Csubfield+code%3D%22a%22%3E127+S%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22034M%22%3E%0A++++++%3Csubfield+code%3D%22a%22%3Ezahlr.+Ill%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22036E%22%3E%0A++++++%3Csubfield+code%3D%22a%22%3EMein+Heimtier%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22044K%22%3E%0A++++++%3Csubfield+code%3D%22a%22%3ERatgeber%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22044L%22%3E%0A++++++%3Csubfield+code%3D%22S%22%3E+%3C/subfield%3E%0A++++++%3Csubfield+code%3D%22a%22%3ERatgeber%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22044L%22+occurrence%3D%2201%22%3E%0A++++++%3Csubfield+code%3D%22S%22%3E+%3C/subfield%3E%0A++++++%3Csubfield+code%3D%22a%22%3EHamsterhaltung%3C/subfield%3E%0A++++%3C/datafield%3E%0A++++%3Cdatafield+tag%3D%22045B%22%3E%0A++++++%3Csubfield+code%3D%22a%22%3EXbp+3%3C/subfield%3E%0A++++%3C/datafield%3E%0A%3C/record%3E

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant