https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37252

            Bug ID: 37252
           Summary: Saving an authority record as MADS (XML) fails
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: MARC Authority data support
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
        Depends on: 37235

Until it has been pushed, you need the patch for bug 37235 to see this, since
otherwise you're stopped by a CSRF-related error first.

Steps to reproduce:
1. View details for an authority record, e.g.
/cgi-bin/koha/authorities/detail.pl?authid=620
2. tail -f /var/log/koha/kohadev/plack-intranet-error.log
3. In the authority details page, Save - MADS (XML)

Expected result is a downloaded file of more than zero bytes, Actual result is
a zero byte file and the following logged errors:

[WARN] XSLT::Base: Unknown IO errorI/O warning : failed to load external entity
"http://www.loc.gov/marcxml/xslt/MARC21slimUtils.xsl";
compilation error: file
/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2MADS.xsl
element include
xsl:include : unable to load
http://www.loc.gov/marcxml/xslt/MARC21slimUtils.xsl
 at /kohadevbox/koha/Koha/XSLT/Base.pm line 346.
[WARN] Use of uninitialized value $marc in print at
/kohadevbox/koha/authorities/export.pl line 47.

If you eventually notice that the URL, which seems to work fine in a browser,
is actually sending a 301 to
http://www.loc.gov/standards/marcxml/xslt/MARC21slimUtils.xsl and you update
the include to that, it still fails.

As bug 29556 pointed out, the MADS XSLT is alone in including
MARC21slimUtils.xsl from LoC, all our others include our local copy. If we want
to have a canary in the coal mine that tells us when that fails, we should make
it something which will actually produce a visible failure, not this
spectacularly obscure authority format download.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37235
[Bug 37235] Download single authority results in 500 error
-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to