Closed nics closed 3 years ago
This works though:
catmandu convert SRU --base http://sru.k10plus.de/gvk --recordSchema picaxml --parser picaxml --query 'pica.lrk=caj and pica.bib=0001 not pica.exk=anmeldung' to CSV --fix 'remove_field(record)'
But JSON hangs:
catmandu convert SRU --base http://sru.k10plus.de/gvk --recordSchema picaxml --parser picaxml --query 'pica.lrk=caj and pica.bib=0001 not pica.exk=anmeldung' to JSON --fix 'remove_field(record)'
And line delimited JSON doesn't:
catmandu convert SRU --base http://sru.k10plus.de/gvk --recordSchema picaxml --parser picaxml --query 'pica.lrk=caj and pica.bib=0001 not pica.exk=anmeldung' to JSON --line-delimited 1 --fix 'remove_field(record)
Prettified JSON also doesn't:
catmandu convert SRU --base http://sru.k10plus.de/gvk --recordSchema picaxml --parser picaxml --query 'pica.lrk=caj and pica.bib=0001 not pica.exk=anmeldung' to JSON --pretty 1 --fix 'remove_field(record)
So it's probably caused by Catmandu::Exporter::JSON?
This has started working for me with the latest Catmandu, Catmandu::SRU and Catmandu::PICA so I'm closing the issue.
catmandu convert SRU --base http://sru.k10plus.de/gvk --recordSchema picaxml --parser picaxml --query 'pica.lrk=caj and pica.bib=0001 not pica.exk=anmeldung' --fix 'remove_field(record)'
Removing
record
doesn't work in 0.429 but works in Catmandu 1.10/Catmandu::SRU 0.422.