From ae4e7e2800fc2f708fc541d07f9978c72ecc7854 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 10 Nov 2014 10:56:12 -0300 Subject: [PATCH] Bug 6681: (qa followup) document the existence of the sample files As requestedby people testing the patch, I add references to the new xslt files on the Z39.50/SRU servers help. Example usages are also provided. Test: - Apply the patch - Go to the help page on the 'Z39.50/SRU Servers' page => SUCCESS: Notice there's a section documenting XSLT file(s) usage and provides some examples that cover the introduced files. - Sign off Thanks Tomas Sponsored-by: Universidad Nacional de Cordoba Signed-off-by: Frederic Demians Help page does shed some light to the XSLT usage. Enough to my taste. Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/admin/z3950servers.tt | 2 +- .../en/modules/help/admin/z3950servers.tt | 26 ++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt index fd272341e9..7464b8be26 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt @@ -190,7 +190,7 @@
  • - ( Separate files by commas.) + (comma-separated filenames)
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/z3950servers.tt index 43ffe27690..f84abeceed 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/z3950servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/admin/z3950servers.tt @@ -25,9 +25,33 @@
  • 'Record type' lets you define if this is a bibliographic or an authority target.
  • 'Additional SRU options': You can enter additional options of the external server here, like sru_version=1.1 or schema=marc21, etc. Note that these options are server dependent.
  • 'SRU Search field mapping': Click on Modify to add or update the mapping from the available fields on the Koha search form to the specific server dependent index names. For instance, a SRU server could use 'cql.anywhere' for the Any field on the Koha form. If you do not enter an index name for a specific search field, the whole record will be searched.
  • -
  • 'XSLT file(s)': You can enter here one or more XSLT file names that you want to apply on the search results.
  • +
  • 'XSLT file(s)': You can enter here one or more (comma-separated) XSLT file names that you want to apply on the search results.
  • +

    Using XSLT file(s) to transform the imported records

    +

    When retrieving records from external targets you may wish to automate some + changes to those records. XSLT's allow you to do this. Koha ships with some + sample XSLT files ready for use.

    +
      +
    • Del952.xsl: Remove items (MARC21/NORMARC)
    • +
    • Del995.xsl: Remove items (UNIMARC)
    • +
    • Del9LinksExcept952.xsl: Remove $9 links. Skip item fields (MARC21/NORMARC).
    • +
    • Del9LinksExcept995.xsl: Remove $9 links. Skip item fields (UNIMARC).
    • +
    + +

    Example

    +

    If you want to remove both holdings data and $9 links when importing, you can use:

    + + + + + + + + + +
    SyntaxXSLT configuration
    MARC21/NORMARCDel9LinksExcept952.xsl, Del952.xsl
    UNIMARCDel9LinksExcept995.xsl, Del995.xsl
    +

    SRU example

    If you want to enter the Library of Congress SRU server, you should at least use the following information. The full URL http://lx2.loc.gov:210/LCDB must be entered as follows:

    -- 2.39.5