[Bug 13642] New: Adding new features for Dublin Core metadata
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Bug ID: 13642 Summary: Adding new features for Dublin Core metadata Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: hector.hecaxmmx@gmail.com QA Contact: testopia@bugs.koha-community.org Adding new features for Dublin Core metadata This is an enhancement for Dublin Core metadata. When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be. This enhancement gives to Koha the ability to download a file in XML or RDF format. A new module (/C4/DublinCoreTransformer.pm) is required for this purpose. This module transform a marc record to Dublin Core following the DC Specifications: DC-XML, Simple DC-RDF, DC-RDF and as agregated OAI-DC. RDF can be exported as multiple formats like: rdfxml, rdfjson, ntriples, turtle, etc. This patch include modification to these files: MODULES: /C4/Record.pm OPAC: /koha-tmpl/opac-tmpl/bootstrap/js/script.js /koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-datail-sidebar.inc /koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc /opac/opac-export.pl CATALOGUE /koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/datail.tt /koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc /catalogue/export.pl NOTE: MARC::Crosswalk::DublinCore not support RDA yet. Not uses XSL to convert the data. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #1 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35637 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35637&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #1/9 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #2 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35638 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35638&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #2/9 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #3 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35639 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35639&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #3/9 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #4 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35640 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35640&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #4/9 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #5 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35641 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35641&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #5/9 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #6 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35642 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35642&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #6/9 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #7 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35643 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35643&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #7/9 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #8 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35644 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35644&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #8/9 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #9 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35645 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35645&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #9/9 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #10 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35663 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35663&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be. New feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Apply patch[es]. 2) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C and OAI-DC can be validated by other validator. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities not found in .deb package -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35637|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35639|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35641|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35643|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35638|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35640|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35642|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35644|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35645|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |veron@veron.ch --- Comment #11 from Marc Véron <veron@veron.ch> --- Exporting to Dublin Core... Simple DC-RDF -> Can save file DC-XML -> Can save file OAI-DC -> Can save file DC-RDF (Recommendend) and all of the additional selections (rdfxml or rdfjson etc) -> Software error: Only alphanumerics are allowed in N-Triples bnode labels -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #12 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Marc Véron from comment #11)
Exporting to Dublin Core... Simple DC-RDF -> Can save file DC-XML -> Can save file OAI-DC -> Can save file
DC-RDF (Recommendend) and all of the additional selections (rdfxml or rdfjson etc) -> Software error: Only alphanumerics are allowed in N-Triples bnode labels
Hi, Marc, this error is because you need to up-to date RDF-Helper or RDF-Trine with CPAN modules. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #13 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Héctor Eduardo Castro Avalos from comment #12)
(In reply to Marc Véron from comment #11)
Exporting to Dublin Core... Simple DC-RDF -> Can save file DC-XML -> Can save file OAI-DC -> Can save file
DC-RDF (Recommendend) and all of the additional selections (rdfxml or rdfjson etc) -> Software error: Only alphanumerics are allowed in N-Triples bnode labels
Hi, Marc, this error is because you need to up-to date RDF-Helper or RDF-Trine with CPAN modules.
Sorry about my previous short message, Marc. Let me ask you a question. Did you install RDF::Helper and, RDF::Trine from a .deb package? Because the .deb packages are not up-to-date (librdf-helper-perl, librdf-trine-perl). I forgot to explain in the commit message that is necessary to upgrade these modules. I upgraded with App::cpanminus. Go to > More > About Koha > Perl modules to see if these modules need to be upgraded. Regards P.S. If another error found, please let me know -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #14 from Marc Véron <veron@veron.ch> --- Hi Héctor, Yes, I installed both from a .deb package I was then able to update RDF::Helper to the required version using cpan, but not RDF::Trine (got a lot of dependency errors and had no luck to track them down). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #15 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Marc Véron from comment #14)
Hi Héctor,
Yes, I installed both from a .deb package
I was then able to update RDF::Helper to the required version using cpan, but not RDF::Trine (got a lot of dependency errors and had no luck to track them down).
Try to install libmodule-install-rdf-perl and then upgrade RDF::Trine with cpanm. So the question is how to add this file into debian/control? Do you know something about it? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA CC| |katrin.fischer@bsz-bw.de --- Comment #16 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Héctor, I took a quick look at the list of files in your patch - there are a lot of permission changes on files in there, that I think were not intentional - could you check please? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |robin@catalyst.net.nz --- Comment #17 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Also adding Robin here, because of the new dependencies added by this patch. All dependencies needed for Koha should be available as packages later (comment#15). -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #18 from Robin Sheat <robin@catalyst.net.nz> --- (In reply to Katrin Fischer from comment #17)
Also adding Robin here, because of the new dependencies added by this patch. All dependencies needed for Koha should be available as packages later (comment#15).
Packages need to be created for: HTML::Entities XML::Entities Please verify that the versions specified for: RDF::Trine RDF::Helper are actually the real minimum required, as they are not in any released debian version as they are specified, and that makes life substantially harder. Hopefully the dependency issues noted by Marc aren't too serious, or it simply might not be possible to backport these modules to squeeze. It might be a while before I get to look into doing these (though they are added to my todo list) as I'm quite busy, if someone wants to help speed it along, try building the packages using dh-make-perl and testing them under squeeze (a pbuilder environment helps here), and noting anything special that has to be done. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #19 from Marc Véron <veron@veron.ch> --- During the weekend I finally was able to install the modules following comment #15. Feature seems to work OK, but I have the inpression that I messed up something in my VM during the installation of the modules. Have to go back to a previous copy of the VM. I have not to mutch time at the moment for further testing, sorry. Maybe somebody else can try to install the modules and test? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bgkriegel@gmail.com --- Comment #20 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi all I Apologize, first one, because I couldn't get access to internet till today, second because I'm very newbie on Koha, git, etc., and thanks to Bernardo because he has guided me through this patch. Katrin (comment 16). I changed the permission but was unintentionally because I couldn't install Koha and change all the permission on my kohaclone directory. Not sure if it necessary to redo the patch with the old permissions or if the RM or QA Manager could change the permission when apply the patch. Since long time that I'm working with the code, I forgot how to install RDF::Trine and the missed dependencies. I did a fresh installation for document all this dependencies. List::Util libscalar-list-utils-perl Scalar::Util Optional to List::Util libscalar-util-numeric-perl autobox::List::Util libautobox-list-util-perl TryCatch libtrycatch-perl B::Hooks::OP::Check libb-hooks-op-check-perl B::Hooks::OP::PPAddr libb-hooks-op-ppaddr-perl Scope::Upper libscope-upper-perl Clone libdata-clone-perl Devel::Declare libdevel-declare-perl Parse::Method::Signatures libparse-method-signatures-perl MooseX::Traits libmoosex-traits-perl PPI libppi-perl But there exist a problem with List::Util and RDF::Trine, these modules launch an error when you try to install them. List::Util can not be installed with any method: cpanm; perl -MCPAN -e 'shell' install; dh-make-perl fail too. So the only way to install this module is manually, i.e., download the tar.gz from search.cpan.org. perl Makefile.PL make make test make install Then you can install cpanm RDF::Trine and the module will upgrade. Regards PS. I'm working with debian stable (wheezy) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #21 from Robin Sheat <robin@catalyst.net.nz> --- (In reply to Héctor Eduardo Castro Avalos from comment #20)
Since long time that I'm working with the code, I forgot how to install RDF::Trine and the missed dependencies. I did a fresh installation for document all this dependencies.
That looks not too bad.
But there exist a problem with List::Util and RDF::Trine, these modules launch an error when you try to install them.
List::Util is included in core perl, you shouldn't be installing it manually.
So the only way to install this module is manually, i.e., download the tar.gz from search.cpan.org.
Why do you need to install it manually?
Then you can install cpanm RDF::Trine and the module will upgrade.
More importantly, I need to know if the versions specified in the dependencies are actually the minimum versions. If the code can handle lower versions of those modules, then things will be a lot easier. For example, there is already a librdf-trine-perl module. Why aren't you using that?
PS. I'm working with debian stable (wheezy)
We also need to support debian oldstable (squeeze) for the moment. We can't have people using cpanm, if this is to go in to Koha, we need the dependencies produced too. I can do that, but I need a more information, mostly about what _really_ the minimum version numbers that are allowable are. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #22 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Robin Sheat from comment #21)
(In reply to Héctor Eduardo Castro Avalos from comment #20)
Since long time that I'm working with the code, I forgot how to install RDF::Trine and the missed dependencies. I did a fresh installation for document all this dependencies.
That looks not too bad.
But there exist a problem with List::Util and RDF::Trine, these modules launch an error when you try to install them.
List::Util is included in core perl, you shouldn't be installing it manually.
So the only way to install this module is manually, i.e., download the tar.gz from search.cpan.org.
Why do you need to install it manually?
Then you can install cpanm RDF::Trine and the module will upgrade.
More importantly, I need to know if the versions specified in the dependencies are actually the minimum versions. If the code can handle lower versions of those modules, then things will be a lot easier. For example, there is already a librdf-trine-perl module. Why aren't you using that?
PS. I'm working with debian stable (wheezy)
We also need to support debian oldstable (squeeze) for the moment.
We can't have people using cpanm, if this is to go in to Koha, we need the dependencies produced too. I can do that, but I need a more information, mostly about what _really_ the minimum version numbers that are allowable are.
Hi, Robin. The problem is that RDF has been changing since was created. If you use librdf-trine-perl (1.0001) and librdf-helper-perl (2.01) launch an error (comment 11) when using bnode labels like 'ISO3166', the new modules from cpan didn't do it. So, for that reason I took the decision to upgrade the modules. It is not recommended to use XML modules for RDF (like XML::LibXML). Furthermore RDF modules give the opportunity to serialize metadata in other formats. I will follow up your advice about to change the code to accommodate with the modules provided by Debian. I'll get in touch with you as soon as possible. This is the list of packages on Debian: XML::Entities, package need to be created. HTML::Entities come in libhtml-parser-perl (3.66-1) squeeze and wheezy adhered to the debian/control RDF::Helper come in librdf-helper-perl (2.0-1) just for wheezy. RDF::Trine come in librdf-trine-perl (1.000-1) just for wheezy. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=13695 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #23 from Robin Sheat <robin@catalyst.net.nz> --- I wouldn't go changing the code to make it work with lower versions unless that's easy to do. However, it's only one or two minor releases off of what's in debian, so if it works with that, then that'd be easier (so often, people just specify the most recent version because that's all that they tested, when it's not necessary.) If it requires the versions you specified, that's fine too. I'll just make those packages (assuming it's possible - which it probably is.) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35663|0 |1 is obsolete| | --- Comment #24 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35957 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35957&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be. New feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Apply patch[es]. 2) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C and OAI-DC can be validated by other validator. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities not found in .deb package -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35957|0 |1 is obsolete| | --- Comment #25 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35981 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35981&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be. New feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Apply patch[es]. 2) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C and OAI-DC can be validated by other validator. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities not found in .deb package -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35981|0 |1 is obsolete| | --- Comment #26 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35982 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35982&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be. New feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document is not well formed 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C and OAI-DC can be validated by other validator. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities not found in .deb package New patch for work with librdf-helper-perl (2.0) and librdf-trine-perl (1.000). RDF::Trine and RDF::Helper not need to be upgraded. Tested in both (upgraded and not upgraded) Fix some utf8 encoding. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35982|0 |1 is obsolete| | --- Comment #27 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35983 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35983&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be. New feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document is not well formed 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C and OAI-DC can be validated by other validator. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities not found in .deb package New patch for work with librdf-helper-perl (2.0) and librdf-trine-perl (1.000). RDF::Trine and RDF::Helper not need to be upgraded. Tested in both (upgraded and not upgraded) Fix some utf8 encoding. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #28 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi all I attached new patch that will work with all version of RDF::Trine and RDF::Helper especially with the version that come with debian package, even if you upgrade from CPAN. Sorry for my lack of experience with git and git bz. Regards. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #29 from Marc Véron <veron@veron.ch> --- Sorry, I get: Applying: Bug 13642 [ENH] Adding new features for Dublin Core metadata fatal: sha1 information is lacking or useless (Koha/DublinCoreTransformer.pm). Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge. Patch failed at 0001 Bug 13642 [ENH] 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=13642 --- Comment #30 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi Marc. I do not know why the failure. I applied the patch and I get something different: Applying: Bug 13642 [ENH] Adding new features for Dublin Core metadata Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... No changes -- Patch already applied. This can happen for all the mistakes I made before. I will try to generate the patch with git format-patch origin and upload manually without using git-bz. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35983|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #31 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 35999 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35999&action=edit Bug-13642-ENH-Adding-new-features-for-Dublin-Core-me #1/2 The first or original patch. Apply this first. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #32 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 36000 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36000&action=edit 0001-Bug-13642-ENH-Adding-new-features-for-Dublin-Core-me #2/2 The second patch correct the last patch. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36000|0001-Bug-13642-ENH-Adding-n |Bug-13642-ENH-Adding-new-fe description|ew-features-for-Dublin-Core |atures-for-Dublin-Core-me |-me #2/2 |#2/2 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #33 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi Marc. If this doesn't work I'll give up. Manually test plan Test plan --------------- 1) Apply patch[es]. 2) Follow the last test plan. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <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=13642 --- Comment #34 from Marc Véron <veron@veron.ch> --- Hi Héctor, patches apply now. Great! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #35 from Marc Véron <veron@veron.ch> --- Created attachment 36005 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36005&action=edit [Signed-off] Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be. New feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document is not well formed 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C and OAI-DC can be validated by other validator. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities not found in .deb package New patch for work with librdf-helper-perl (2.0) and librdf-trine-perl (1.000). RDF::Trine and RDF::Helper not need to be upgraded. Tested in both (upgraded and not upgraded) Fix some utf8 encoding. Tested with both patches, followed test plan, works as expected Signed-off-by: Marc Véron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #35999|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36005|0 |1 is obsolete| | --- Comment #36 from Marc Véron <veron@veron.ch> --- Created attachment 36006 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36006&action=edit [Signed-off] Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be. New feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document is not well formed 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C and OAI-DC can be validated by other validator. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities not found in .deb package New patch for work with librdf-helper-perl (2.0) and librdf-trine-perl (1.000). RDF::Trine and RDF::Helper not need to be upgraded. Tested in both (upgraded and not upgraded) Fix some utf8 encoding. Tested with both patches, following test plan. Works as expected. Signed-off-by: Marc Véron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36000|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36005|1 |0 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36005|[Signed-off] Bug 13642 |[Signed-off] Bug 13642 description|[ENH] Adding new features |[ENH] 1/2 Adding new |for Dublin Core metadata |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=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36006|[Signed-off] Bug 13642 |[Signed-off] Bug 13642 description|[ENH] Adding new features |[ENH] 2/2 Adding new |for Dublin Core metadata |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=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Medium patch 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=13642 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA CC| |jonathan.druart@biblibre.co | |m --- Comment #37 from Jonathan Druart <jonathan.druart@biblibre.com> --- Hello Héctor, Please have a look at the patch, it adds a massive chmod on a big part (all) of the Koha code :) 2310 files changed, 1370 insertions(+), 611 deletions(-) and 1.56Mb -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|oleonard@myacpl.org |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=13642 --- Comment #38 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi Jonathan Yes, it's a big mistake. I will fix this and send the patch again. Regards. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36005|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36006|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #39 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 36147 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36147&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be. New feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document is not well formed 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C and OAI-DC can be validated by other validator. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities not found in .deb package New patch for work with librdf-helper-perl (2.0) and librdf-trine-perl (1.000). RDF::Trine and RDF::Helper not need to be upgraded. Tested in both (upgraded and not upgraded) Fix some utf8 encoding. Tested with chinese record. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #40 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi Marc and Jonathan Sorry about the inconvenience. After new Koha's cloning and installation, the patch is ready. I fix it up the code about the chmod changes. Please, test the patch again. Regards. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #41 from Marc Véron <veron@veron.ch> --- Created attachment 36154 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36154&action=edit [Signed-off]Bug 13642 - Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be. New feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document is not well formed 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C and OAI-DC can be validated by other validator. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities not found in .deb package New patch for work with librdf-helper-perl (2.0) and librdf-trine-perl (1.000). RDF::Trine and RDF::Helper not need to be upgraded. Tested in both (upgraded and not upgraded) Fix some utf8 encoding. Tested with chinese records. http://bugs.koha-community.org/show_bug.cgi?id=13642 Followed test plan. Works as expected. (Changed title of commit message.) Signed-off-by: Marc Véron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36147|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> 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=13642 --- Comment #42 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to Marc Véron from comment #41)
Created attachment 36154 [details] [review] [Signed-off]Bug 13642 - Adding new features for Dublin Core metadata
When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be.
How can I know if the xml is not well-formed? I tested on http://validator.w3.org/check and got: This document was successfully checked as well-formed XML! Result: Passed, 2 warning(s)
XML::Entities not found in .deb package
Maybe XML::LibXML can do the trick?
New patch for work with librdf-helper-perl (2.0) and librdf-trine-perl (1.000). RDF::Trine and RDF::Helper not need to be upgraded. Tested in both (upgraded and not upgraded)
I don't have librdf-helper-perl E: Unable to locate package librdf-helper-perl -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #43 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to Jonathan Druart from comment #42)
New patch for work with librdf-helper-perl (2.0) and librdf-trine-perl (1.000). RDF::Trine and RDF::Helper not need to be upgraded. Tested in both (upgraded and not upgraded)
I don't have librdf-helper-perl E: Unable to locate package librdf-helper-perl
Ha, it is in wheezy but not in jessie. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #44 from Robin Sheat <robin@catalyst.net.nz> --- (In reply to Jonathan Druart from comment #43)
I don't have librdf-helper-perl E: Unable to locate package librdf-helper-perl
Ha, it is in wheezy but not in jessie.
ruh roh batman, that's often a bad sign. Any idea why? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #45 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to Robin Sheat from comment #44)
(In reply to Jonathan Druart from comment #43)
I don't have librdf-helper-perl E: Unable to locate package librdf-helper-perl
Ha, it is in wheezy but not in jessie.
ruh roh batman, that's often a bad sign. Any idea why?
I would say: https://wiki.debian.org/Teams/DebianPerlGroup/OpenTasks => https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=710983 "librdf-helper-perl: FTBFS with perl 5.18: test failures" -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #46 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi Jonathan (In reply to Jonathan Druart from comment #42)
(In reply to Marc Véron from comment #41)
Created attachment 36154 [details] [review] [review] [Signed-off]Bug 13642 - Adding new features for Dublin Core metadata
When Koha export a bibliographic record to DC, makes it in XML format. This XML is not well-formed document and do not follows the DC-XML recommendations as should be.
How can I know if the xml is not well-formed? I tested on http://validator.w3.org/check and got: This document was successfully checked as well-formed XML! Result: Passed, 2 warning(s)
This is because you're not validating against the specified XSD schema. Use this one <http://www.freeformatter.com/xml-validator-xsd.html> The old Dublin Core (XML) file is in uppercase eg. dc:Date, dc:Creator, and if you compare with the recommendation <http://dublincore.org/documents/dc-xml-guidelines/> at section 4.2 cite "Recommendation 4. The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator. Also, this file use an improper xsi:schemaLocation: xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" This XML schema does not exist. And is explained in is Section "4.3 Example - a simple DC record". The file generated with this patch deal with both. The DC-XML file generate a not-valid file if you don't have a proper XSD schema. But if you donwload an OAI-DC this has one.
XML::Entities not found in .deb package
Maybe XML::LibXML can do the trick?
XML::LibXML uses the library libxml. This library only uses the five basic entities (<, >, ", &, and &apos), if you want more entities, you need to declare them in a DTD Doctype file. Record.pm in C4/ use sub _entity_encode with Unicode::Normalize (NFC function) in a foreache with a regexp for marcxml files, but got the problem of mix the five basics entities with hexadecimal entities. (eg. > &xFFFF) RDF::Helper use the same five basic entities. DublinCoreTransformer.pm in Koha/ is coded to use the entities or not. If you think that this is a problem I can change the code to eliminate XML::Entities and use the solution of C4::Record sub _entity_encode.
New patch for work with librdf-helper-perl (2.0) and librdf-trine-perl (1.000). RDF::Trine and RDF::Helper not need to be upgraded. Tested in both (upgraded and not upgraded)
I don't have librdf-helper-perl E: Unable to locate package librdf-helper-perl
I didn't know about isn't on Jessie Debian. I can try to fix this only using RDF::Trine this module still on Jessie <https://packages.debian.org/jessie/librdf-trine-perl> Please, let me know what you think about my comment, and I will start to doing the changes. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #47 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- This another module is a better option to use: HTML::Entities::Nubered at <https://metacpan.org/pod/HTML::Entities::Numbered> The debian package is libhtml-entities-numbered-perl and is listed in all debian version (oldstable, stable and testing) at <https://packages.debian.org/search?searchon=names&keywords=libhtml-entities-numbered-perl> So XML::Entities not necessary to use. And we eliminate the cause of this headache. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #48 from Robin Sheat <robin@catalyst.net.nz> --- (In reply to Jonathan Druart from comment #45)
I would say: https://wiki.debian.org/Teams/DebianPerlGroup/OpenTasks => https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=710983
"librdf-helper-perl: FTBFS with perl 5.18: test failures"
Yeah, that means a) it's probably not going to get back in any time soon, and b) I won't be able to make packages for it anyway as it's unbuildable. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #49 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 36631 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36631&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #2 When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities was eliminated from patch, use instead libhtml-entities-numbered-perl librdf-trine-perl (1.000) not in Debian oldstable. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Needs Signoff --- Comment #50 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi all This the new patch that fix the last one. Eliminate XML::Entities and RDF::Helper use instead HTML::Entities::Numbered and RDF::Trine. Please, test the patch again. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36154|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36631|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #51 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 36632 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36632&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #1 Signed-off attached by Marc not include changes on debian/control and C4/Installer/PerlDependencies.pm -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #52 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 36633 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36633&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata #2 This patch does the changes. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #53 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- I'm sorry, the applying fail. I'll try to reformat the patch as new again. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36632|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36633|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #54 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 36636 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36636&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities was eliminated from patch, use instead libhtml-entities-numbered-perl RDF::Helper has been eliminated too. librdf-trine-perl (1.000) not in Debian oldstable. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #55 from Marc Véron <veron@veron.ch> --- Created attachment 36714 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36714&action=edit [Signed-off] Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. Installed libhtml-entities-numbered-perl and followed test plan. Works as expected. Signed-off-by: Marc Véron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> 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=13642 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36636|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #56 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Bit confused about the dependencies here - can you give me some pointers? I got libhtml-entities-numbered-perl installed. But I am still missing RDF::Trine. Do I need to install from CPAN? Can it be packaged? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #57 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Katrin Fischer from comment #56)
Bit confused about the dependencies here - can you give me some pointers?
I got libhtml-entities-numbered-perl installed. But I am still missing RDF::Trine. Do I need to install from CPAN? Can it be packaged?
Hi Katrin The package is librdf-trine-perl but this package exists only in Debian, stable, testing and unstable <https://packages.debian.org/search?searchon=names&keywords=librdf-trine-perl> not in oldstable (squeeze). I don't know if this package can be made in oldstable, maybe Robin or some one else can help us. Another package that is needed is libhtml-parser-perl. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #58 from Robin Sheat <robin@catalyst.net.nz> --- Just running through the dependencies: * HTML::Entities provided by libhtml-parser-perl. 3.66 is in squeeze, the Koha dependencies file specifies 3.69. Does this patch require version 3.69, or will it work with 3.66? * HTML::Entities::Numbered is fine. * RDF::Trine is in as librdf-trine-perl from wheezy and up. In Ubuntu 12.04, only version 0.138 though, and we require 1.000+. I'll have to backport this anyway for squeeze... ...and this won't really work... Depends: libalgorithm-combinatorics-perl but it is not installable Depends: libmoosex-arrayref-perl but it is not installable Depends: libxml-commonns-perl but it is not installable Depends: libxml-namespace-perl but it is not installable Depends: libtrycatch-perl but it is not installable Depends: librdf-query-perl but it is not installable Depends: librdf-rdfa-parser-perl but it is not installable Depends: librdf-trine-node-literal-xml-perl but it is not installable I think there are too many dependencies not in squeeze to make it reasonable to dive down that rabbit hole. However, I really really want to retire support for squeeze (and Ubuntu 12.04) anyway, so I'm going to use this as a chance to start that discussion. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #59 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Ok, one step further: sudo apt-get install librdf-trine-perl :) As usual I will start with the automated tests. In my test run, I notice that 2 tests in t/db_dependent/Records.t failing: # Failed test 'testing marc2dcxml' # at t/db_dependent/Record.t line 59. # got: undef # expected: '<?xml version="1.0" encoding="UTF-8"?> # <metadata # xmlns="http://example.org/myapp/" # xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" # xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" # xmlns:dc="http://purl.org/dc/elements/1.1/" # xmlns:dcterms="http://purl.org/dc/terms/"> # </metadata>' # Failed test 'testing marcQualified' # at t/db_dependent/Record.t line 71. # got: undef # expected: '<?xml version="1.0" encoding="UTF-8"?> # <metadata # xmlns="http://example.org/myapp/" # xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" # xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" # xmlns:dc="http://purl.org/dc/elements/1.1/" # xmlns:dcterms="http://purl.org/dc/terms/"> # </metadata>' # Looks like you failed 2 tests of 11. Can you please check? The QA script points out various uses of given-when - can you please fix by rewriting those parts? FAIL C4/Record.pm OK critic OK forbidden patterns OK pod FAIL valid when is experimental given is experimental FAIL Koha/DublinCoreTransformer.pm OK critic OK forbidden patterns OK pod FAIL valid given is experimental when is experimental FAIL catalogue/export.pl OK critic OK forbidden patterns OK pod FAIL valid when is experimental given is experimental FAIL opac/opac-export.pl OK critic OK forbidden patterns OK pod FAIL valid given is experimental when is experimental -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #60 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Katrin Fischer from comment #59) Hi Katrin
Ok, one step further: sudo apt-get install librdf-trine-perl :)
As usual I will start with the automated tests. In my test run, I notice that 2 tests in t/db_dependent/Records.t failing:
I didn't know about this kind of unit test. But fails because Record.t is coded for the previous output which i've changed in this new patch. As shown below in the chunk of xml tags. Can I change this Unit Test in Record.t to fit with this patch? Give me some positive feedback.
# Failed test 'testing marc2dcxml' # at t/db_dependent/Record.t line 59. # got: undef # expected: '<?xml version="1.0" encoding="UTF-8"?> # <metadata # xmlns="http://example.org/myapp/" # xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" # xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" # xmlns:dc="http://purl.org/dc/elements/1.1/" # xmlns:dcterms="http://purl.org/dc/terms/"> # </metadata>'
# Failed test 'testing marcQualified' # at t/db_dependent/Record.t line 71. # got: undef # expected: '<?xml version="1.0" encoding="UTF-8"?> # <metadata # xmlns="http://example.org/myapp/" # xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" # xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" # xmlns:dc="http://purl.org/dc/elements/1.1/" # xmlns:dcterms="http://purl.org/dc/terms/"> # </metadata>' # Looks like you failed 2 tests of 11.
Can you please check?
The QA script points out various uses of given-when - can you please fix by rewriting those parts?
FAIL C4/Record.pm OK critic OK forbidden patterns OK pod FAIL valid when is experimental given is experimental
FAIL Koha/DublinCoreTransformer.pm OK critic OK forbidden patterns OK pod FAIL valid given is experimental when is experimental
FAIL catalogue/export.pl OK critic OK forbidden patterns OK pod FAIL valid when is experimental given is experimental
FAIL opac/opac-export.pl OK critic OK forbidden patterns OK pod FAIL valid given is experimental when is experimental
You're right that kind of code is experimental, I will change this. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #61 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Hector, yes, changing the unit tests should be ok if the new result is the desired one. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36714|0 |1 is obsolete| | --- Comment #62 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 38220 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38220&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. 9) Since unit test fail last time, test with prove t/db_dependent/Record.t and prove t/db_dependent/Record/Record.t Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities, HTML::Entities and, HTML::Entities::Numbered were eliminated from patch, use instead C4::Record::_entity_encode, RDF::Helper has been eliminated too. Given, when experimental structures were eliminated. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #63 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Greetings, Katrin and Marc Please review the patch again. Thank you -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38220|0 |1 is obsolete| | --- Comment #64 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 38819 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38819&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. 9) Since unit test fail last time, test with prove t/db_dependent/Record.t Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities, HTML::Entities and, HTML::Entities::Numbered were eliminated from patch, use instead C4::Record::_entity_encode, RDF::Helper has been eliminated too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #65 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- New patch sent since PerlDependencies.pm changed in master branch for 3.20 and merge conflict with it. I really hope this not continue changing. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #66 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Hector, can you confirm that this is the only new dependency needed here now? 'RDF::Trine' => { + 'usage' => 'Core', + 'required' => '1', + 'min_ver' => '1.000', + }, -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #67 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Katrin Fischer from comment #66)
Hi Hector,
can you confirm that this is the only new dependency needed here now?
'RDF::Trine' => { + 'usage' => 'Core', + 'required' => '1', + 'min_ver' => '1.000', + },
Hi Katrin, sorry about my lateness in get in touch with you. I had an accident in a motorcycle and my clavicle is cracked. The first several days was painful. :( Yes, is the only dependency since the problem of packaging in deb like happened in bug related to PDF::FromHTML. I have used instead C4::Record and the subroutine _entity_encode(). This eliminate HTML::Entities and, HTML::Entities::Numbered and fit very well with Koha without having a lot of problems. The last patch that I sent, fix the last change in PerlDependencies.pm due to new PDF::FromHTML was added. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #68 from Marc Véron <veron@veron.ch> --- Sorry, I got conflicts while applying: Falling back to patching base and 3-way merge... Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt Auto-merging debian/control CONFLICT (content): Merge conflict in debian/control Auto-merging C4/Installer/PerlDependencies.pm CONFLICT (content): Merge conflict in C4/Installer/PerlDependencies.pm Failed to merge in the changes. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #38819|0 |1 is obsolete| | --- Comment #69 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 39623 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39623&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. 9) Since unit test fail last time, test with prove t/db_dependent/Record.t Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities, HTML::Entities and, HTML::Entities::Numbered were eliminated from patch, use instead C4::Record::_entity_encode, RDF::Helper has been eliminated too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #70 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Marc Véron from comment #68)
Sorry, I got conflicts while applying:
Falling back to patching base and 3-way merge... Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt Auto-merging debian/control CONFLICT (content): Merge conflict in debian/control Auto-merging C4/Installer/PerlDependencies.pm CONFLICT (content): Merge conflict in C4/Installer/PerlDependencies.pm Failed to merge in the changes.
I fixed it up. Please Marc apply patch again. If does not work, I miss the point in debian/control about libdevel-cover-perl. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #71 from Marc Véron <veron@veron.ch> --- Created attachment 39654 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39654&action=edit [Signed-off] Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. 9) Since unit test fail last time, test with prove t/db_dependent/Record.t Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities, HTML::Entities and, HTML::Entities::Numbered were eliminated from patch, use instead C4::Record::_entity_encode, RDF::Helper has been eliminated too. Followed test plan, works as expected. QA tools passed OK. Signed-off-by: Marc Véron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39623|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> 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=13642 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #72 from Jonathan Druart <jonathan.druart@biblibre.com> --- It's much more better now! Still some minor issues: 1/ Could you try to add some style to the modal window? And create a label for the radio buttons. 2/ +use Modern::Perl; +use strict; +use warnings::register; => You don't need to use strict and warnings if you use Modern::Perl; 3/ Use POD to document your subroutines. 4/ Since the modal is only used from the detail page, why do you set the JS code in script.js and the modal code in masthead.inc? 5/ Choose a correct id for the modal div element (something better than myModal :)) -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #39654|0 |1 is obsolete| | --- Comment #73 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 40786 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40786&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. 9) Since unit test fail last time, test with prove t/db_dependent/Record.t Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities, HTML::Entities and, HTML::Entities::Numbered were eliminated from patch, use instead C4::Record::_entity_encode, RDF::Helper has been eliminated too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #40786|0 |1 is obsolete| | --- Comment #74 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 40787 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40787&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. 9) Since unit test fail last time, test with prove t/db_dependent/Record.t Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities, HTML::Entities and, HTML::Entities::Numbered were eliminated from patch, use instead C4::Record::_entity_encode, RDF::Helper has been eliminated too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #75 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Jonathan Druart from comment #72)
It's much more better now!
Still some minor issues: 1/ Could you try to add some style to the modal window? And create a label for the radio buttons. 2/ +use Modern::Perl; +use strict; +use warnings::register; => You don't need to use strict and warnings if you use Modern::Perl; 3/ Use POD to document your subroutines. 4/ Since the modal is only used from the detail page, why do you set the JS code in script.js and the modal code in masthead.inc? 5/ Choose a correct id for the modal div element (something better than myModal :))
Hi Jonathan All changes done according with your comment. Review the patch to see if it's Ok! Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #40787|0 |1 is obsolete| | --- Comment #76 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 42168 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=42168&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. 9) Since unit test fail last time, test with prove t/db_dependent/Record.t Sponsored-by: Universidad de El Salvador Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> XML::Entities, HTML::Entities and, HTML::Entities::Numbered were eliminated from patch, use instead C4::Record::_entity_encode, RDF::Helper has been eliminated too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #77 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Héctor Eduardo Castro Avalos from comment #76)
Created attachment 42168 [details] [review] Bug 13642 [ENH] Adding new features for Dublin Core metadata
New attach since CONFLICT MERGE -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #42168|0 |1 is obsolete| | --- Comment #78 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 43311 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43311&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. 9) Unit test, prove t/db_dependent/Record.t Sponsored-by: Universidad de El Salvador NOTE: XML::Entities, HTML::Entities and, HTML::Entities::Numbered were eliminated from patch, use instead C4::Record::_entity_encode, RDF::Helper has been eliminated too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #43311|0 |1 is obsolete| | --- Comment #79 from Marc Véron <veron@veron.ch> --- Created attachment 43313 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43313&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. 9) Unit test, prove t/db_dependent/Record.t Sponsored-by: Universidad de El Salvador NOTE: XML::Entities, HTML::Entities and, HTML::Entities::Numbered were eliminated from patch, use instead C4::Record::_entity_encode, RDF::Helper has been eliminated too. Signed-off-by: Marc Véron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Marc Véron <veron@veron.ch> 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=13642 --- Comment #80 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Could you please provide tests for the new package? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #81 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- No need to ask for a signoff for the tests. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #82 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 43545 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43545&action=edit Bug 13642 - Unit Test for Koha::DublinCore.pm To test -Apply patches -prove t/db_dependent/DublinCore.t -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #83 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Jonathan Druart from comment #81)
No need to ask for a signoff for the tests.
Hi Jonathan Unit test added for Koha::DublinCore Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tomascohen@gmail.com --- Comment #84 from Tomás Cohen Arazi <tomascohen@gmail.com> --- I liked the Koha::Crosswalk::DublinCore package name. Can we keep it? :-D -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #85 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Tomás Cohen Arazi from comment #84)
I liked the Koha::Crosswalk::DublinCore package name. Can we keep it? :-D
Yes, Mr. Tomás Tomorrow morning i'll make the changes. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #43545|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #43313|0 |1 is obsolete| | --- Comment #86 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 43548 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43548&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. The recommendation can be consulted at <http://dublincore.org/documents/dc-xml-guidelines/>. This new feature, adds an ability to export Dublin Core metadata to XML and RDF (including rdfxml, rdfjson, ntriples, turtle, etc.) Test plan --------------- 1) Download Dublin Core file. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patches. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record in the OPAC. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) RDF/XML can be validated per RDF Validator W3C. 7) DC-XML cannot valid if not exist a valid XSD schema. 8) OAI-DC can be validated using <http://www.freeformatter.com/xml-validator-xsd.html> and the proper schema <http://www.openarchives.org/OAI/2.0/oai_dc.xsd> typed in text field for URL. 9) Unit test, prove t/db_dependent/Record.t Sponsored-by: Universidad de El Salvador NOTE: XML::Entities, HTML::Entities and, HTML::Entities::Numbered were eliminated from patch, use instead C4::Record::_entity_encode, RDF::Helper has been eliminated too. DublinCore.pm Changed to Crosswalk/ according with comment 83 by RM Signed-off-by: Marc Véron <veron@veron.ch> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #87 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 43549 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43549&action=edit Bug 13642 - Unit Test for Koha::Crosswalk::DublinCore.pm To test -Apply patches -porve t/db_dependent/DublinCore.t Sponsored-by: Universidad de El Salvador -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #88 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi Tomás and Jonathan Changes Done! I don't know if I need another sign-off or I can keep the last one by Marc. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #89 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- koha-tmpl/opac-tmpl/bootstrap/css/opac.css has been updated but koha-tmpl/opac-tmpl/bootstrap/less/opac.less Please provide the related change to this file too. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #90 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Comment on attachment 43548 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43548 Bug 13642 [ENH] Adding new features for Dublin Core metadata Review of attachment 43548: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=13642&attachment=43548) ----------------------------------------------------------------- ::: debian/control @@ -86,4 @@
libopenoffice-oodoc-perl, libpdf-api2-perl, libpdf-api2-simple-perl, - libpdf-fromhtml-perl,
Why did you remove it? It is used by Koha::Borrower::Discharge @@ -99,4 @@
libtemplate-perl, libtemplate-plugin-htmltotext-perl, libtemplate-plugin-json-escape-perl, - libtemplate-plugin-stash-perl,
Same here. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #91 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Comment on attachment 43548 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43548 Bug 13642 [ENH] Adding new features for Dublin Core metadata Review of attachment 43548: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=13642&attachment=43548) ----------------------------------------------------------------- ::: koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ +1999,5 @@
+ }); + }); + + $(document).ready(function(){ + $("#input-oai").click(function(){
This @@ +2008,5 @@
+ }); + }); + + $(document).ready(function(){ + $("#input-srw").click(function(){
and this could be merged. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #92 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Comment on attachment 43548 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43548 Bug 13642 [ENH] Adding new features for Dublin Core metadata Review of attachment 43548: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=13642&attachment=43548) ----------------------------------------------------------------- ::: opac/opac-export.pl @@ +69,5 @@
$format = 'bibtex'; } elsif ($format =~ /dc/) { + SWITCH: + for ($recommendation) {
What are the possible values for this variable? /^simple-dc-rdf/ => why not /^simple-dc-rdf$/ ? I think this block could be better written with if-elsif blocks. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #93 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- In the generated file I get <dcterms:creator>158 Lasletté Stéphanie 070</dcterms:creator> I would be better to have the utf-8 characters. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #94 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- When you click save > dublin core, "DC-RDF (Recommended)" is checked but the "Output options for RDF" block is not expanded. I think it should. On a UNIMARC install, there is not "dcterms:title" entry, is it normal? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #95 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 43586 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43586&action=edit Bug 13642: (qa follow-up) spelling + pod Fixes the 2 following errors: - spelling neccesary ==> necessary - *** ERROR: Spurious =cut command in file Koha/Crosswalk/DublinCore.pm -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #96 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Jonathan Druart from comment #94)
When you click save > dublin core, "DC-RDF (Recommended)" is checked but the "Output options for RDF" block is not expanded. I think it should.
On a UNIMARC install, there is not "dcterms:title" entry, is it normal?
I Jonathan The problem is that MARC::Crosswalk::DublinCore map only MARC21 fields. This is because the autor of package follows the crosswalk from LC at <http://www.loc.gov/marc/marc2dc.html>, i.e., title statement is saved in different fields (MARC 21 in 245 and UNIMARC in 200). Let me do a crosswalk for UNIMARC in another bug. This new bug must consider the MARC flauvor. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #97 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 43612 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=43612&action=edit Bug 13642: (following qa) Fixing according with QA comments Fixes the following: -Add css to less.css -Add missing libraries in debian/control (libpdf-fromhtml-perl, libtemplate-plugin-stash-perl) -Merge ids in JQuery -Delete switch statements and correcting regex -Change to utf-8 characteres without entities -Expand RDF block to "DC-RDF (Recommended)" -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #98 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi Jonathan I think the UNIMARC can be corrected of various forms. For example with XSLT Transformation, C4/Breeding.pm use something like that (C4::Breeding->_do_xslt_proc) and the xslt to transform UNIMARC2MARC21 is here <https://github.com/edsd/biblio-metadata/blob/master/UNIMARC2MARC21.xsl> Although exist this module <https://metacpan.org/pod/MARC::Moose::Formater::UnimarcToMarc21>. C4::Record->marc2marc deal with marc flavour, but it seems to be that it does not work or is not fully developed. So my question is: Can I fix it in another bug or I need to fix it in this one? Thanks Jonathan Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #99 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- This currently doesn't apply cleanly due to conflicts in the css files - please fix! -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic@tamil.fr --- Comment #100 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- - You should extract the less/css changes from the mainpage. - There is still something wrong with the radio buttons on the modal window (staff). - export oai-dc: in opac/oai.pl we use HTTP::OAI::Metadata::OAI_DC, so now we will have 2 differents module to do the same job? I am not familiar enough with Dublin core to know what to do with the UNIMARC export and validate it works well for other flavors. Frédéric (cced), Is there any chance to get your opinion on this enhancement? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |In Discussion --- Comment #101 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Katrin Fischer from comment #99)
This currently doesn't apply cleanly due to conflicts in the css files - please fix!
Okidoki. I will fix this as soon as possible. Also I'm going to change here the status to In Discussion Thanks Katrin -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #102 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Jonathan Druart from comment #100) Hi Jonathan
- You should extract the less/css changes from the mainpage. - There is still something wrong with the radio buttons on the modal window (staff).
I'll fix this as soon as possible.
- export oai-dc: in opac/oai.pl we use HTTP::OAI::Metadata::OAI_DC, so now we will have 2 differents module to do the same job?
Yep, you're right. But at least with this one I can reproduce another kind of metadata (DC-XML standard, SRW-DC, RDF serialization) starting from a marc record. Besides, this enhancement let us to work with more than simple dc (namespace for elements 1.1) otherwise works with complete dcterms namespace. With HTTP::OAI::Metadata::OAI_DC -I think- you need to create a record from scratch.
I am not familiar enough with Dublin core to know what to do with the UNIMARC export and validate it works well for other flavors.
I think that this can be corrected if we do the conversion between unimarc and marc 21 flavor as i explained in comment 98. NORMARC works like marc21, so i don't need to fix somethin here.
Frédéric (cced), Is there any chance to get your opinion on this enhancement?
I will work with the corrections and make something to convert unimarc to marc21. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #103 from Frédéric Demians <frederic@tamil.fr> --- Here's what I can think of this. There is already in Koha an inconsistency in the way DC is generated. (1) When exporting, C4::Record::marc2dcxml() is used. (2) In OAI server, an XSLT transformation is done using XSL file found in koha-tmpl/intranet- tmpl/prog/en/xslt. The OAI approach seems more sensible since it allows to have a transformation logic per MARC flavor, and even in OAI extended mode, a transformation specific to a Koha installation. Currently, C4::Record::marc2dcxml() delegates the semantic transformation from MARC21 to XML DC to this module: MARC::Crosswalk::DublinCore. I don't think this is a great idea. This is an old-unmaintained module (10 years old). And it doesn't work for Unimarc. I haven't paid attention to that, but I can't see how DC export could work with an Unimarc catalog. Your module Koha::Crosswalk::DublinCore still wraps a call MARC::Crosswalk::DublinCore. The MARC21 to Unimarc transformation on the fly isn't a good idea at all. This would add complexity for an unreliable result. Why not just fixing XSL files transforming MARCXML biblios into DC and use them in marc2dcxml()? Side note about dependencies -- RDF::Trine have Moose as dependency. Aren't we supposed to avoid that? -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #104 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Frederick, thx for your comment! I like the idea of reusing the XSLT. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #105 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Frédéric Demians from comment #103)
Here's what I can think of this.
There is already in Koha an inconsistency in the way DC is generated. (1) When exporting, C4::Record::marc2dcxml() is used. (2) In OAI server, an XSLT transformation is done using XSL file found in koha-tmpl/intranet- tmpl/prog/en/xslt. The OAI approach seems more sensible since it allows to have a transformation logic per MARC flavor, and even in OAI extended mode, a transformation specific to a Koha installation.
Currently, C4::Record::marc2dcxml() delegates the semantic transformation from MARC21 to XML DC to this module: MARC::Crosswalk::DublinCore. I don't think this is a great idea. This is an old-unmaintained module (10 years old). And it doesn't work for Unimarc. I haven't paid attention to that, but I can't see how DC export could work with an Unimarc catalog. Your module Koha::Crosswalk::DublinCore still wraps a call MARC::Crosswalk::DublinCore.
The MARC21 to Unimarc transformation on the fly isn't a good idea at all. This would add complexity for an unreliable result.
Why not just fixing XSL files transforming MARCXML biblios into DC and use them in marc2dcxml()?
Side note about dependencies -- RDF::Trine have Moose as dependency. Aren't we supposed to avoid that?
Where I can find information about avoiding Moose in Koha? Another question is: How to deal with RDF and SPARQL in Koha if we can't use Moose? All linked data in Semantic Web point to use RDF as basis. For example, the new recommendation for DC is RDF <http://dublincore.org/documents/dc-rdf/>. BIBCO works with RDF. RDA Resgistry <http://www.rdaregistry.info/> works with RDF. RIMMF works with RDF. With xslt transformation we can only transform to simple DC RDF (BTW, out-of-date, superseded standard <http://dublincore.org/documents/dcmes-xml/>), and what about the potential to use the complete dcterm namespace? Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #106 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Katrin Fischer from comment #104)
Hi Frederick, thx for your comment! I like the idea of reusing the XSLT.
Let me propose a patch in this way... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #107 from Frédéric Demians <frederic@tamil.fr> ---
With xslt transformation we can only transform to simple DC RDF (BTW, out- of-date, superseded standard <http://dublincore.org/documents/dcmes-xml/>), and what about the potential to use the complete dcterm namespace?
Can you elaborate? I don't understand. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #108 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Frédéric Demians from comment #107)
Can you elaborate? I don't understand.
Have you tested the patch? With this module (Koha::Crosswalk::DublinCore) I can support more metada than the simple 15 DC elements (Element Set Version 1.1). This Simple DC is used for OAI and SRW in xml format. But also i can reproduce this other guidelines/recommendations: * <http://dublincore.org/documents/dc-xml-guidelines/> and example of this in <http://www.dublincoregenerator.com/generator.html> * <http://dublincore.org/documents/dcmes-xml/> * <http://dublincore.org/documents/dc-rdf/> And RDF::Trine can serialize multiple rdf formats (rdf-json, rdf-xml, nquads, nquads-canonical, turtle) also give us the opportunity of storing the triples in databases; with RDF::Query we can perform queries with SPARQL -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #109 from Frédéric Demians <frederic@tamil.fr> ---
Have you tested the patch?
Yes. My questions are not related to your patch WUI and result, but to your implementation, your goals. Somehwhere in the process, I take a look at the code, spend time on it, trying to figure out how it works, how it has been done. Testing and QAing is all about that. I have mixed feeling, when I find duplicated code (for example). In opac/opac- export.pl and catalog/export.pl: SWITCH: for ($recommendation) { if (/^simple-dc-rdf/) { ($error,$marc) = marc2dcxml($marc, $recommendation, 0, 1, undef, undef, $resource_url , $formats); $format = "dublin-core." . $formats; last SWITCH; } if (/^dc-rdf/) { ($error,$marc) = marc2dcxml($marc, $recommendation, 1, 1, undef, undef, $resource_url, $formats); $format = "dublin-core." . $formats; last SWITCH; } if (/^dc-xml/) { ($error,$marc) = marc2dcxml($marc, $recommendation, $qualifier, 1, $root_element, $xsischemalocation, undef, undef); $format = "dublin-core.xml"; last SWITCH; } if (/^oai-dc/) { ($error,$marc) = marc2dcxml($marc, $recommendation); $format = "dublin-core.xml"; last SWITCH; } if (/^srw_dc/) { ($error,$marc) = marc2dcxml($marc, $recommendation); $format = "dublin-core.xml"; last SWITCH; } } Or in Koha::Crosswalk::DublinCore.pm, line 242, you get: if ( exists $self->{xsi_schemaLocation} ) { $dataxml{'xsi_schemaLocation'} = $self->{xsi_schemaLocation}; } if ( exists $self->{xsi_schemaLocation} ) { $dataxml{'opt_namespace'} = $self->{opt_namespace}; } if ( exists $self->{xsi_schemaLocation} ) { $dataxml{'opt_namespace_url'} = $self->{opt_namespace_url}; } Is it valid?
With this module (Koha::Crosswalk::DublinCore) I can support more metada than the simple 15 DC elements (Element Set Version 1.1). This Simple DC is used for OAI and SRW in xml format. But also i can reproduce this other guidelines/recommendations:
How will you extend the semantic of the produced metadata with MARC::Crosswalk::Dublincore? If you want more than the 15 DC elements, doesn't it mean that you need a mean to improve, granularize the way Koha MARC record is transformed. The current DC exported from Koha is not that good because (1) it doesn't work for Unimarc, (2) it doesn't allow each library to tweak the transformation from MARC to DC (the way it's done by OAI server).
And RDF::Trine can serialize multiple rdf formats (rdf-json, rdf-xml, nquads, nquads-canonical, turtle) also give us the opportunity of storing the triples in databases; with RDF::Query we can perform queries with SPARQL
It's far beyond the scope of this patch. Open a new bug if you want, and name it Semantic-Koha, or Sekoa. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #110 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Frédéric Demians from comment #109)
Somehwhere in the process, I take a look at the code, spend time on it, trying to figure out how it works, how it has been done. Testing and QAing is all about that.
I have mixed feeling, when I find duplicated code (for example). In opac/opac- export.pl and catalog/export.pl:
Or in Koha::Crosswalk::DublinCore.pm, line 242, you get: Is it valid?
How will you extend the semantic of the produced metadata with MARC::Crosswalk::Dublincore? If you want more than the 15 DC elements, doesn't it mean that you need a mean to improve, granularize the way Koha MARC record is transformed. The current DC exported from Koha is not that good because (1) it doesn't work for Unimarc, (2) it doesn't allow each library to tweak the transformation from MARC to DC (the way it's done by OAI server).
It's far beyond the scope of this patch. Open a new bug if you want, and name it Semantic-Koha, or Sekoa.
Yes, you're right Frédéric. I'm just a librarian trying to improve. Let me propose another patch with your suggestion, using the xslts for transforming the marc flavors. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Jenny Dallas <limbozel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |limbozel@gmail.com --- Comment #111 from Jenny Dallas <limbozel@gmail.com> --- Thought-provoking comments , Just to add my thoughts , if someone have been needing to merge PDF or PNG files , my business partner saw a service here http://www.altomerge.com and also here http://pdf.ac/5NrqIN -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #112 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Jenny Dallas from comment #111)
Thought-provoking comments , Just to add my thoughts , if someone have been needing to merge PDF or PNG files , my business partner saw a service here http://www.altomerge.com and also here http://pdf.ac/5NrqIN
Hi Jenny Thank you for your comment. I don't know whether I'm wrong or I misunderstand you, but the intention of this bug is about RDF <https://es.wikipedia.org/wiki/Resource_Description_Framework> to serialize Dublin Core Metadata <http://dublincore.org/documents/dc-rdf/> Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #113 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Hector and others, I have marked the last 2 comments 'private' as I think the links in them are spam. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #114 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Katrin Fischer from comment #113)
I have marked the last 2 comments 'private' as I think the links in them are spam.
Thanks Katrin, I did not realize it was spam -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #43548|0 |1 is obsolete| | Attachment #43549|0 |1 is obsolete| | Attachment #43586|0 |1 is obsolete| | Attachment #43612|0 |1 is obsolete| | --- Comment #115 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44627 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44627&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. NOTE: This new feature implement the XSLT transformation for OAI-DC, SRW-DC and RDF-DC Test plan --------------- 1) Download Dublin Core file from record detail page. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. Sponsored-by: Universidad de El Salvador -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |ASSIGNED --- Comment #116 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi Frédéric and all devs This is the new patch using XSLTs for OAIDC, SRWDC, and RDFDC. The bug is not complete yet! Needs Unit test, changes to opac.cs (I need to install LESS) and maybe add 264 field to XSLTs. Frédéric, please test it and QAing and tell me how looks this wheter i'm wrong or I go in the right way. Thanks Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #117 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- I forgot it, test with MARC21, UNIMARC and NORMARC, this patch takes in consideration syspref marcflavour -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #118 from Frédéric Demians <frederic@tamil.fr> ---
Frédéric, please test it and QAing and tell me how looks this wheter i'm wrong or I go in the right way.
Seems good to me. I've tested: it works in intra interface, but it doesn't at OPAC (I will attach a screen capture) ; the dialog box seems mixed. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #119 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 44629 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44629&action=edit OPAC dialog box -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #120 from Frédéric Demians <frederic@tamil.fr> --- Reading the code, I'd also suggest to simplify the way you construct the XSL filename in marc2dcxml: my $xsl = C4::Context->config('intrahtdocs') . '/prog/en/xslt/slim2' . uc $format . '.xsl'; -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44627|0 |1 is obsolete| | --- Comment #121 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44658 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44658&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. NOTE: This new feature implement the XSLT transformation for OAI-DC, SRW-DC and RDF-DC Test plan --------------- 1) Download Dublin Core file from record detail page. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) Test with all marc flavours. Sponsored-by: Universidad de El Salvador -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44658|0 |1 is obsolete| | --- Comment #122 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44659 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44659&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. NOTE: This new feature implement the XSLT transformation for OAI-DC, SRW-DC and RDF-DC Test plan --------------- 1) Download Dublin Core file from record detail page. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) Test with all marc flavours. Sponsored-by: Universidad de El Salvador -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #123 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44660 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44660&action=edit Bug 13642 - Changes LESS opac.less > to opac.css Changes LESS opac.less > to opac.css -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #124 from Frédéric Demians <frederic@tamil.fr> --- Comment on attachment 44659 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44659 Bug 13642 [ENH] Adding new features for Dublin Core metadata Review of attachment 44659: --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=13642&attachment=44659) ----------------------------------------------------------------- Otherwise it works for me both pro/opac interface, with a MARC21. I will test later with an UNIMARC catalog. ::: C4/Record.pm @@ +293,5 @@
+ carp "\t". $warn; + }; + } elsif ( $record =~ /^MARC::Record/ ) { # if OK makes xslt transformation + my $xslt_engine = Koha::XSLT_Handler->new; + if ( $format eq 'oaidc' || 'srwdc' || 'rdfdc' ) {
This test will always be true. I don't think it's what you want. You may want: if ( $format =~ /oaidc|srwdc|rdfdc/ ) { -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #125 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44661 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44661&action=edit Bug 13642 - Add 264 field to MARC21*DC.xsl Modify MARC21*DC.xsl to add RDA 264 field To test: -Copy from LOC z39.50 the Maxwell's handbook for RDA (ISBN 9780838911723) -Look the field 264 -In datail for the record, export or save to Dublin Core (the three options) -Open the xml generated, notice that <dc:publisher> and <dc:date> are not present -Apply this patch -Reload and export again -Open the xml, you will see the tags publisher and date taken from 264 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #126 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44662 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44662&action=edit Bug 13642 (follow-up) Adding new features for Dublin Core metadata Correct if clasue according with comment 124 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- 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=13642 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44629|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #127 from Frédéric Demians <frederic@tamil.fr> --- It works in intra/opac. But in intra, it only works on 'Normal' detail page, it doesn't in ISBD/MARC/Item tab. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #128 from Frédéric Demians <frederic@tamil.fr> --- For Unimarc, it will only work for OAI-DC format. XSL for RDF-DC and SRW-DC format are missing. See bug 15162. In my opinion, it shouldn't prevent accepting this enhancement. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=15162 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44662|0 |1 is obsolete| | --- Comment #129 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44669 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44669&action=edit Bug 13642 (follow-up) Adding new features for Dublin Core metadata This patch fix the following: -Correct if clasue according with comment 124 (C4::Record::marc2dcxml) -Move modal from detail.tt to cat-toolbar.inc to work with Normal|MARC|ISBD|Items view tabs. -Add css style to delelete border (in modal) in h3 for "exportLabelexportModal_" id in moredetail.tt this because local style for h3 tag. To test: -Apply patch 15162 on top -Apply patches -Follow the test plan of previous commits -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |15162 --- Comment #130 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Frédéric Demians from comment #128)
For Unimarc, it will only work for OAI-DC format. XSL for RDF-DC and SRW-DC format are missing. See bug 15162. In my opinion, it shouldn't prevent accepting this enhancement.
Hi Frédéric I will try to attach a patch for bug 15162 as soon as posible to apply on top of this one. Regards Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 [Bug 15162] Add for Unimarc transformation to new metadata formats -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #131 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44672 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44672&action=edit Bug 13642 - Add Unit test for C4::Record::marc2dcxml Add Unit test for C4::Record::marc2dcxml To test: Prove t/db_dependent/Record.t -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #132 from David Cook <dcook@prosentient.com.au> --- Not sure about the state of this patch, but I just wanted to say that I agree with Frédéric: "It's far beyond the scope of this patch. Open a new bug if you want, and name it Semantic-Koha, or Sekoa." I think it would be interesting to be able to publish any record using RDF, and maybe even set up a SPARQL endpoint. I noticed that in DSpace 5.0 or 6.0 they've added support for publishing their records using RDF. However, I think that's outside the scope of this bug. It would make sense as its own bug. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #133 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44677 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44677&action=edit Bug 13642 - Add NORMARCslim2RDFDC.xsl and NORMARCslim2SRWDC.xsl Add missing xsls for NORMARC flavour -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #134 from Frédéric Demians <frederic@tamil.fr> --- (In reply to David Cook from comment #132)
I think it would be interesting to be able to publish any record using RDF, and maybe even set up a SPARQL endpoint. I noticed that in DSpace 5.0 or 6.0 they've added support for publishing their records using RDF.
This is a huge subject. A very interesting and promising one. I'd be pleased to be included in a discussion on this matter, whatever the form it takes: bug umbrella, task force... -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #135 from Frédéric Demians <frederic@tamil.fr> --- Héctor, would you allow me to simplify this bug? I propose to just keep 3 patches attached to this one (and sign them): the enhancement, the UT & the less to css conversion. And I would open two new patches: (1) 264 field, (2) NORMARC new XSL. It won't touch the patches themselves nor your credit. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #136 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Frédéric Demians from comment #135)
Héctor, would you allow me to simplify this bug? I propose to just keep 3 patches attached to this one (and sign them): the enhancement, the UT & the less to css conversion. And I would open two new patches: (1) 264 field, (2) NORMARC new XSL. It won't touch the patches themselves nor your credit.
Sorry for my late reply Okidoki Frédéric, do the necessary and the more adequate with this bug. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #137 from David Cook <dcook@prosentient.com.au> --- (In reply to Frédéric Demians from comment #134)
This is a huge subject. A very interesting and promising one. I'd be pleased to be included in a discussion on this matter, whatever the form it takes: bug umbrella, task force...
Yeah, I'd like to be involved as well. I think Magnus Enger has already started doing prototype work on this with SemantiKoha, so it'll be interesting. Certainly something to discuss with the whole group, I think. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #138 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to David Cook from comment #137)
Yeah, I'd like to be involved as well. I think Magnus Enger has already started doing prototype work on this with SemantiKoha, so it'll be interesting.
Certainly something to discuss with the whole group, I think.
Hi David Where is placed Magnus' works? I'm really interested in this kind of subjects too. Another think is -as explain me Bernardo- the plack environment needs to be complete to use modules with Moose support, this is because some packages like RDF::Trine and RDF::Query need it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=15170 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.koha-community. | |org/bugzilla3/show_bug.cgi? | |id=15169 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Frédéric Demians <frederic@tamil.fr> 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=13642 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44659|0 |1 is obsolete| | Attachment #44661|0 |1 is obsolete| | Attachment #44669|0 |1 is obsolete| | Attachment #44677|0 |1 is obsolete| | --- Comment #139 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 44727 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44727&action=edit Bug 13642 [ENH] Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. NOTE: This new feature implement the XSLT transformation for OAI-DC, SRW-DC and RDF-DC Test plan --------------- 1) Download Dublin Core file from record detail page. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) Test with all marc flavours. Sponsored-by: Universidad de El Salvador Signed-off-by: Frederic Demians <f.demians@tamil.fr> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44660|0 |1 is obsolete| | --- Comment #140 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 44728 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44728&action=edit Bug 13642 - Changes LESS opac.less > to opac.css Changes LESS opac.less > to opac.css Signed-off-by: Frédéric Demians <f.demians@tamil.fr> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44672|0 |1 is obsolete| | --- Comment #141 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 44729 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44729&action=edit Bug 13642 - Add Unit test for C4::Record::marc2dcxml Add Unit test for C4::Record::marc2dcxml To test: Prove t/db_dependent/Record.t Signed-off-by: Frederic Demians <f.demians@tamil.fr> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|15162 |15169 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 [Bug 15162] Add for Unimarc transformation to new metadata formats http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15169 [Bug 15169] Add for NORMARC transformation to new metadata formats -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |15162, 15170 Referenced Bugs: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15162 [Bug 15162] Add for Unimarc transformation to new metadata formats 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=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44729|0 |1 is obsolete| | --- Comment #142 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44815 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44815&action=edit Bug 13642 - Add Unit test for C4::Record::marc2dcxml Add Unit test for C4::Record::marc2dcxml To test: prove t/db_dependent/Record.t prove t/db_dependent/Record/Record.t Signed-off-by: Frederic Demians <f.demians@tamil.fr> -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #143 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 44816 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44816&action=edit Bug 13642 - Remove MARC::Crosswalk::DublinCore from Koha To test: 1) git grep "MARC::Crosswalk::DublinCore" C4/Installer/PerlDependencies.pm: 'MARC::Crosswalk::DublinCore' => { INSTALL.fedora7:MARC::Crosswalk::DublinCore 2) git grep "libmarc-crosswalk-dublincore-perl" debian/control: libmarc-crosswalk-dublincore-perl, debian/control: libmarc-crosswalk-dublincore-perl, install_misc/debian.packages:libmarc-crosswalk-dublincore-perl install install_misc/ubuntu.10.04.packages:libmarc-crosswalk-dublincore-perl install install_misc/ubuntu.12.04.packages:libmarc-crosswalk-dublincore-perl install install_misc/ubuntu.packages:libmarc-crosswalk-dublincore-perl install 3) Repeat step 1 and 2 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #144 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Hi Frédéric Please sign-off the last two patches, I found another Unit Test (t/db_dependent/Record/Record.t) that affect the marc2dxml method; and finally remove the MARC::Crosswalk::DublinCore module (libmarc-crosswalk-dublincore-perl) Thanks in advance -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> 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=13642 Frédéric Demians <frederic@tamil.fr> 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=13642 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44816|0 |1 is obsolete| | --- Comment #145 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 44819 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=44819&action=edit Bug 13642 - Remove MARC::Crosswalk::DublinCore from Koha To test: 1) git grep "MARC::Crosswalk::DublinCore" C4/Installer/PerlDependencies.pm: 'MARC::Crosswalk::DublinCore' => { INSTALL.fedora7:MARC::Crosswalk::DublinCore 2) git grep "libmarc-crosswalk-dublincore-perl" debian/control: libmarc-crosswalk-dublincore-perl, debian/control: libmarc-crosswalk-dublincore-perl, install_misc/debian.packages:libmarc-crosswalk-dublincore-perl install install_misc/ubuntu.10.04.packages:libmarc-crosswalk-dublincore-perl install install_misc/ubuntu.12.04.packages:libmarc-crosswalk-dublincore-perl install install_misc/ubuntu.packages:libmarc-crosswalk-dublincore-perl install 3) Repeat step 1 and 2 Signed-off-by: Frederic Demians <f.demians@tamil.fr> Ripping out any mention to MARC::Crosswalk::DublinCore can't hurt. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #146 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Frédéric Demians from comment #145)
Signed-off-by: Frederic Demians <f.demians@tamil.fr> Ripping out any mention to MARC::Crosswalk::DublinCore can't hurt.
Getting rid really can't hurt, IMHO git grep "marc2dcxml" C4/Record.pm: &marc2dcxml C4/Record.pm:=head2 marc2dcxml - Convert from ISO-2709 to Dublin Core C4/Record.pm: my dcxml = marc2dcxml ($marc, $xml, $biblionumber, $format); C4/Record.pm: my dcxml = marc2dcxml (undef, undef, 1, "oaidc"); C4/Record.pm:sub marc2dcxml { catalogue/export.pl: $marc = marc2dcxml(undef, undef, $biblionum opac/opac-export.pl: $marc = marc2dcxml(undef, undef, $biblionumber, $format t/db_dependent/Record.t:my $marcsrwdc=marc2dcxml( $marc, undef, undef, "srwdc" t/db_dependent/Record.t:my $marcoaidc=marc2dcxml( $marc, undef, undef, "oaidc" t/db_dependent/Record.t:my $marcrdfdc=marc2dcxml( $marc, undef, undef, "rdfdc" t/db_dependent/Record/Record.t:ok (eval{marc2dcxml($marc21_utf8, undef, undef, All files affected has been changed to the new marc2dcxml method. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #147 from David Cook <dcook@prosentient.com.au> --- (In reply to Héctor Eduardo Castro Avalos from comment #138)
(In reply to David Cook from comment #137)
Yeah, I'd like to be involved as well. I think Magnus Enger has already started doing prototype work on this with SemantiKoha, so it'll be interesting.
Certainly something to discuss with the whole group, I think.
Hi David
Where is placed Magnus' works? I'm really interested in this kind of subjects too. Another think is -as explain me Bernardo- the plack environment needs to be complete to use modules with Moose support, this is because some packages like RDF::Trine and RDF::Query need it.
Hi Héctor, The blog post about it is here http://libriotech.no/blogs/semantikoha and it includes links to the source code. It's been a few years since Magnus has worked on it, I think, but I think he might be interested in reviving it. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #148 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Still applies -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #149 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Héctor, I have just found a minor issue: At the OPAC, there is no radio buttons selected by default, so if you click on export, you get a iso2709. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #150 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 45970 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45970&action=edit Bug 13642: (followup) OAI-DC checked by default in OPAC modal Fixing default option checked for OAI-DC in OPAC modal This follow-up fix the QA comment in comment 149 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #151 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- (In reply to Jonathan Druart from comment #149)
Héctor, I have just found a minor issue: At the OPAC, there is no radio buttons selected by default, so if you click on export, you get a iso2709.
I found two issues more in OPAC, the modal doesn't display in MARC view and ISBD view. I will fix this in the last follow-up. Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #45970|0 |1 is obsolete| | --- Comment #152 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- Created attachment 45971 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=45971&action=edit Bug 13642: (followup) OAI-DC checked by default in OPAC modal -Fixing default option checked for OAI-DC in OPAC modal -Move OPAC modal to opac-detail-sidebar.inc to display in MARC view and ISBD view This follow-up fix the QA comment in comment 149 -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #153 from Héctor Eduardo Castro Avalos <hector.hecaxmmx@gmail.com> --- I wish all of you a Merry Christmas and a Happy New Year Regards -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 Frédéric Demians <frederic@tamil.fr> 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=13642 Frédéric Demians <frederic@tamil.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #45971|0 |1 is obsolete| | --- Comment #154 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 46514 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46514&action=edit Bug 13642: (followup) OAI-DC checked by default in OPAC modal -Fixing default option checked for OAI-DC in OPAC modal -Move OPAC modal to opac-detail-sidebar.inc to display in MARC view and ISBD view This follow-up fix the QA comment in comment 149 Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Above issue fixed & usable also in MARC/ISBD view -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 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=13642 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44727|0 |1 is obsolete| | Attachment #44728|0 |1 is obsolete| | Attachment #44815|0 |1 is obsolete| | Attachment #44819|0 |1 is obsolete| | Attachment #46514|0 |1 is obsolete| | --- Comment #155 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 46584 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46584&action=edit Bug 13642 - Adding new features for Dublin Core metadata When Koha export a bibliographic record to DC, makes it in XML format. This XML not follows the DC-XML recommendations as should be: elements in uppercase eg. dc:Date, dc:Creator, section 4.2, recommendation 4 explain that "The property names for the 15 DC elements should be all lower-case." eg. dc:date, dc:creator" and section "4.3 Example - a simple DC record", xsi:schemaLocation="http://example.org/myapp/ http://example.org/myapp/schema.xsd" schema does not exist. NOTE: This new feature implement the XSLT transformation for OAI-DC, SRW-DC and RDF-DC Test plan --------------- 1) Download Dublin Core file from record detail page. Open up the file, and make sure that the document not follows the DC-XML recommendations as should be. 2) Apply patch. 3) Go to whichever bib record in OPAC or staff and click on Save > Dublin Core. A modal will display, prove all options. 4) Change the system preference 'Opac ExportOptions' by enabling and disabling Dublin Core and try to download a record. 5) Try several bibliographic records in any format (book, magazine, DVD, etc.) to confirm that properly exported. 6) Test with all marc flavours. Sponsored-by: Universidad de El Salvador Signed-off-by: Frederic Demians <f.demians@tamil.fr> 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=13642 --- Comment #156 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 46585 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46585&action=edit Bug 13642 - Changes LESS opac.less > to opac.css Changes LESS opac.less > to opac.css Signed-off-by: Frédéric Demians <f.demians@tamil.fr> 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=13642 --- Comment #157 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 46586 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46586&action=edit Bug 13642 - Add Unit test for C4::Record::marc2dcxml Add Unit test for C4::Record::marc2dcxml To test: prove t/db_dependent/Record.t prove t/db_dependent/Record/Record.t Signed-off-by: Frederic Demians <f.demians@tamil.fr> 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=13642 --- Comment #158 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 46587 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46587&action=edit Bug 13642 - Remove MARC::Crosswalk::DublinCore from Koha To test: 1) git grep "MARC::Crosswalk::DublinCore" C4/Installer/PerlDependencies.pm: 'MARC::Crosswalk::DublinCore' => { INSTALL.fedora7:MARC::Crosswalk::DublinCore 2) git grep "libmarc-crosswalk-dublincore-perl" debian/control: libmarc-crosswalk-dublincore-perl, debian/control: libmarc-crosswalk-dublincore-perl, install_misc/debian.packages:libmarc-crosswalk-dublincore-perl install install_misc/ubuntu.10.04.packages:libmarc-crosswalk-dublincore-perl install install_misc/ubuntu.12.04.packages:libmarc-crosswalk-dublincore-perl install install_misc/ubuntu.packages:libmarc-crosswalk-dublincore-perl install 3) Repeat step 1 and 2 Signed-off-by: Frederic Demians <f.demians@tamil.fr> Ripping out any mention to MARC::Crosswalk::DublinCore can't hurt. 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=13642 --- Comment #159 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 46588 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46588&action=edit Bug 13642: (followup) OAI-DC checked by default in OPAC modal -Fixing default option checked for OAI-DC in OPAC modal -Move OPAC modal to opac-detail-sidebar.inc to display in MARC view and ISBD view This follow-up fix the QA comment in comment 149 Signed-off-by: Frédéric Demians <f.demians@tamil.fr> Above issue fixed & usable also in MARC/ISBD view 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=13642 --- Comment #160 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- This patch set is blocked by bug 15169 which is waiting for a signoff. -- You are receiving this mail because: You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13642 --- Comment #161 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Great work Héctor and Frédéric! -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org