When trying to export using MODS you will get this error: Software error: Can't locate object method "code" via package "Could not create file parser context for file "/usr/share/koha/intranet/cgi-bin/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl": No such file or directory at /usr/share/koha/opac/cgi-bin/opac/unapi line 207. " (perhaps you forgot to load "Could not create file parser context for file "/usr/share/koha/intranet/cgi-bin/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl": No such file or directory at /usr/share/koha/opac/cgi-bin/opac/unapi line 207. "?) at /usr/share/koha/opac/cgi-bin/opac/unapi line 150. It looks like a path issue. It is looking for: /usr/share/koha/intranet/cgi-bin/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl But the correct path appears to be: /usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/xslt/MARC21slim2MODS.xsl The incorrect path does appear to be a mix of package and git paths.
Okay, I did a little more checking. The bug appears to be in /usr/share/koha/opac/cgi-bin/opac/unapi, line 201. It's concatenating the value of 'intranetdir' with "/koha-tmpl/intranet-tmpl/prog/en/xslt/", which is what is leading to the incorrect path.
(In reply to Nicole C. Engard from comment #1) > Okay, I did a little more checking. The bug appears to be in > /usr/share/koha/opac/cgi-bin/opac/unapi, line 201. It's concatenating the > value of 'intranetdir' with "/koha-tmpl/intranet-tmpl/prog/en/xslt/", which > is what is leading to the incorrect path. There's a function that specifically chooses the correct path. It should use it.
The intranetdir seems to have been removed by 13469 (but pushed before you have reported this bug report). Could you confirm it's still valid?
I just tested MODS (XML) export from the detail page and it works fine.