[koha-commits] main Koha release repository branch master updated. v16.11.00-990-g5ef1b67

Git repo owner gitmaster at git.koha-community.org
Mon May 8 15:22:52 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, master has been updated
       via  5ef1b6710e7520b844e145e248da0deeee707fde (commit)
      from  d16bcb70e7066b6e4c908f560affb281018e788e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5ef1b6710e7520b844e145e248da0deeee707fde
Author: Tomas Cohen Arazi <tomascohen at theke.io>
Date:   Fri Mar 3 18:32:06 2017 -0300

    Bug 18098: Add an index with the count of not onloan items
    
    This patch adds a numeric index 'not-onloan-count' containing the value
    of 999$x. This subfield is filled by 'rebuild_zebra.pl' by making use of
    (bug's 18208) 'EmbedItemsAvailability' filter.
    
    bib1.att and indexes definitions are updated accordingly.
    
    To test:
    - Apply the patch
    - Pick the right biblio-zebra-indexdefs.xsl file for your setup and
      replace the one your Zebra uses [1]
    - Replace your bib1.att
    - Replace your ccl.properties
    - Have at least one record with more than one item, checkout some
      item(s) from that record(s).
    - Rebuild zebra's indexes:
      $ sudo koha-shell kohadev
     k$ cd kohaclone
     k$ misc/migration_tools/rebuild_zebra.pl -r -b -v -k
     (notice the dump directory is kept, you can try the XSLT yourself
      running:
        $ xsltproc \
           etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl \
           /tmp/the_dump_dir/biblios/exported_records | less
    => SUCCESS: There are records with the not-onloan-count index, and the
                value is correct!
    - Check Zebra yourself:
      $ yaz-client unix:/var/run/koha/kohadev/bibliosocket
     Z> base biblios
     Z> find @attr 1=9013 @attr 2=5 @attr 4=109 0
    => SUCCESS: The search matches the amount of records with not-onloan
                items.
     Z> s 1+1
    => SUCCESS: Records with 999$x having a value higher than 0 are rendered
    - Sign off :-D
    
    Note: While this work is complete on its purpose, it is part of an
    attempt to create a better way of filtering by availability.
    
    Sponsored-by: ByWater Solutions
    
     [1] In kohadevbox this would be
    /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
    
    Edit: Added the missing XSLT changes for UNIMARC and NORMARC
    
    Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-----------------------------------------------------------------------

Summary of changes:
 etc/zebradb/biblios/etc/bib1.att                   |    1 +
 etc/zebradb/ccl.properties                         |    1 +
 .../marc21/biblios/biblio-koha-indexdefs.xml       |    4 ++++
 .../marc21/biblios/biblio-zebra-indexdefs.xsl      |    7 ++++++
 .../normarc/biblios/biblio-koha-indexdefs.xml      |    4 ++++
 .../normarc/biblios/biblio-zebra-indexdefs.xsl     |    7 ++++++
 .../unimarc/biblios/biblio-koha-indexdefs.xml      |    4 ++++
 .../unimarc/biblios/biblio-zebra-indexdefs.xsl     |    9 ++++++++
 misc/migration_tools/rebuild_zebra.pl              |   23 +++++++++++++-------
 9 files changed, 52 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list