https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19220
David Nind <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #180232|0 |1 is obsolete| | --- Comment #36 from David Nind <[email protected]> --- Created attachment 183270 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=183270&action=edit Bug 19220: Allow XSLT processing for Z39.50 authority targets Test plan: 1) Apply the patch 2) Edit an authority Z3950/SRU source in Home > Administration > Z39.50/SRU servers 3) Add the path to an XSLT file in the "XSLT File(s) for transforming results" input, and save For instance: <path_to_src>/koha-tmpl/intranet-tmpl/prog/en/xslt/Bug19220.xsl 4) Search for an authority with the "New from Z39.50/SRU" button in authorities home 5) Check that the XSLT transformation has been applied, both in results list and in the import window 6) Edit the Z3950/SRU source to remove the path to the XSLT file 7) Search again for the same authority, and check that no transformation has been applied 8) prove t/db_dependent/Breeding_Auth.t Here is an example XSLT which adds a 035$a field: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:marc="http://www.loc.gov/MARC21/slim" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="record|marc:record"> <record> <xsl:apply-templates/> <datafield tag="035" ind1='' ind2=''> <subfield code="a"> <xsl:text>XSLT added field</xsl:text> </subfield> </datafield> </record> </xsl:template> <xsl:template match="node()"> <xsl:copy select="."> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> </xsl:stylesheet> Signed-off-by: Martin Renvoize <[email protected]> Signed-off-by: Nick Clemens <[email protected]> Signed-off-by: David Nind <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ 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/
