[koha-commits] main Koha release repository branch new/bug_9415 created. v3.12.00-alpha-31-g24eac82
Git repo owner
gitmaster at git.koha-community.org
Wed Mar 20 03:03:11 CET 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, new/bug_9415 has been created
at 24eac8245663b498b4eabf6c2a531f88d27b3864 (commit)
- Log -----------------------------------------------------------------
commit 24eac8245663b498b4eabf6c2a531f88d27b3864
Author: Fridolyn SOMERS <fridolyn.somers at biblibre.com>
Date: Thu Jan 17 11:42:53 2013 +0100
Bug 9415: XML catalog export is missing root node
When exporting some biblio or authorities records with tools/export.pl (via web client or command-line) :
If choosing XML format, you get a concatenation of full XML records.
This patch uses MARC::File::XML to create a well formated file.
See http://search.cpan.org/~gmcharlt/MARC-XML-0.93/lib/MARC/File/XML.pm#close%28%29
Test plan:
- Go to Tools/Export data
- Enter numbers in from and to biblio number
(make sure that at least two records will
be exported).
- Select xml in file format
- Click "Export bibliographic records"
- Save file somewhere
- Look at downloaded file
=> File should look like :
<?xml version="1.0" encoding="UTF-8"?>
<collection
...
<record>
...
</record>
<record>
...
</record>
</collection>
=> "collection" is the root node and XML declaration exists only once
- Do the same for authorities export and command-line use of tools/export.pl
Second test plan:
- From the command line, run tools/export.pl, e.g.,
tools/export.pl --format=xml --filename=bibs.xml
- Verify that the output is valid XML, e.g.,
xmllint --noout bibs.xml # if the file is valid, no error messages will be displayed
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
Signed-off-by: Paul Poulain <paul.poulain at biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>
commit a22d8546bbbadcd72f5d6f632fe101a01ef7a4a8
Merge: 133a974 642ff32
Author: Jared Camins-Esakov <jcamins at cpbibliography.com>
Date: Tue Mar 19 21:51:43 2013 -0400
Merge branch 'bug_9731' into 3.12-master
-----------------------------------------------------------------------
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list