Koha/koha-tmpl/intranet-tmpl/prog/en/xslt
Tomas Cohen Arazi 0be1dce1f7 Bug 6681: introduce XSLT scripts to remove items and links
This patch adds the following sample files:

- Del952.xsl
- Del995.xsl
- Del9LinksExcept952.xsl
- Del9LinksExcept995.xsl

Thay can be used on the new SRU/Z39.50 XSLT processing feature. At the same
time they can be used to solve this bug.

To test:
- Have an SRU/Z39.50 target configured
- Have a search that returns at least a record with the following
  properties:
  * It contains $9 links
  * It contains items (952 or 995 fields in MARC21/NORMARC and UNIMARC respectively).

MARC21/NORMARC test:
- Do a Z39.50/SRU cataloguing search that retrieves the desired record
- Verify it includes $9 and 952 field(s) by clicking on the MARC link
- Edit your Z39.50 target and add Del952.xsl to the "XSLT File(s) for transforming results:" field
- Re-run the search
=> SUCCESS: the MARC view of the imported record doesn't contain the 952 field
- Edit your Z39.50 target and add Del9LinksExcept952.xsl to the "XSLT File(s) for transforming results:" field
- Re-run the search
=> SUCCESS: the MARC view contains the 952 field (including the $9 subfield), and
            all other $9 subfields have been removed
- Edit your Z39.50 target and add
  Del952.xsl, Del9LinksExcept952.xsl
  to the "XSLT File(s) for transforming results:" field (both, comma separated)
- Re-run the search
=> SUCCESS: the MARC view doesn't contain $9 subfields nor items.

- Repeat for UNIMARC, replacing 952 for 995.
- Sign off :-D

Regards
Tomas

Sponsored-by: Universidad Nacional de Cordoba

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested under MARC21. Works fine. (Additionally verified 995 with xsltproc.)
As noted on Bugzilla, we could still improve documentation but imo no need
to block these example transformations.

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
I can't resist to put my own signature on this patch, confirming it works as
described with z39.50 Unimarc targets.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-11-14 09:31:36 -03:00
..
compact.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
Del9LinksExcept952.xsl Bug 6681: introduce XSLT scripts to remove items and links 2014-11-14 09:31:36 -03:00
Del9LinksExcept995.xsl Bug 6681: introduce XSLT scripts to remove items and links 2014-11-14 09:31:36 -03:00
Del952.xsl Bug 6681: introduce XSLT scripts to remove items and links 2014-11-14 09:31:36 -03:00
Del995.xsl Bug 6681: introduce XSLT scripts to remove items and links 2014-11-14 09:31:36 -03:00
identity.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2ATOM.xsl Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
MARC21slim2DC.xsl Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
MARC21slim2intranetDetail.xsl Bug 12829: properly skip invalid ISBN when rendering for normal record display 2014-11-07 11:27:52 -03:00
MARC21slim2intranetResults.xsl Bug 12334: Make it easy to hide parts of material type and format information in results 2014-11-07 15:21:26 -03:00
MARC21slim2MADS.xsl Bug 8203 follow-up: QA fixes 2012-07-12 16:02:09 +02:00
MARC21slim2MODS.xsl Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
MARC21slim2MODS3-1.xsl Bug 6803: Replacing remote XSL include 2011-12-13 15:56:09 +01:00
MARC21slim2MODS3.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2MODS32.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim2OAIDC.xsl Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
MARC21slim2RDFDC.xsl Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
MARC21slim2RDFDC.xsl.1 Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
MARC21slim2RSS2.xsl Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
MARC21slim2SRWDC.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
MARC21slim9522852.xsl Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
MARC21slimUtils-MODS31.xsl Bug 6803: Replacing remote XSL include 2011-12-13 15:56:09 +01:00
MARC21slimUtils.xsl Bug 12900: (consistency followup) add buildBiblioDefaultViewURL to MARC21 XSLT 2014-10-27 10:52:48 -03:00
MARC21slimUtils2.xsl Fix a problem when translations contain &nbsp; various XSL files 2011-12-06 12:16:04 +01:00
NORMARCslim2intranetDetail.xsl Bug 12829: properly skip invalid ISBN when rendering for normal record display 2014-11-07 11:27:52 -03:00
NORMARCslim2intranetResults.xsl Bug 12900: IntranetBiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT 2014-10-27 10:52:37 -03:00
NORMARCslim2OAIDC.xsl Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
NORMARCslimUtils.xsl Bug 12900: IntranetBiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT 2014-10-27 10:52:37 -03:00
oilsMARC21slim2HTML.xsl Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
UNIMARC_compact.xsl Bug 13225: Z39.50 result Card View doesn't work for UNIMARC 2014-11-10 11:59:48 -03:00
UNIMARCslim2intranetDetail.xsl Bug 12829: Follow-up - fix small display issue in UNIMARC 2014-11-07 11:28:01 -03:00
UNIMARCslim2intranetResults.xsl Bug 12900: IntranetBiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT 2014-10-27 10:52:37 -03:00
UNIMARCslim2OAIDC.xsl Bug 8872: Add UTF-8 encoding to intranet xslt files 2012-11-06 07:27:39 -05:00
UNIMARCslimUtils.xsl Bug 12900: IntranetBiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT 2014-10-27 10:52:37 -03:00