[koha-commits] main Koha release repository branch master updated. v3.22.00-1413-gff65237

Git repo owner gitmaster at git.koha-community.org
Fri Apr 29 15:15:51 CEST 2016


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  ff6523765ddb76f388a38c1a0fd3a39b5ffe69b6 (commit)
      from  3615c7b34bc77f04e1421cab8dca8e094e10f0ed (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 ff6523765ddb76f388a38c1a0fd3a39b5ffe69b6
Author: David Cook <dcook at prosentient.com.au>
Date:   Tue Jan 12 15:17:35 2016 +1100

    Bug 15555: Index 024$a into Identifier-other:u url register when source $2 is uri
    
    This patch indexes 024$a into the "phrase" index type, and the "url" index type,
    if the 024$2 equals "uri".
    
    TEST PLAN
    
    1) Apply the patch.
    1b) If you're using a gitified Koha or a git install,
    you'll need to upgrade your instance or copy your zebradb files
    over to /etc/koha/zebradb or your "kohadev" directory.
    2) Add a 024$a with a URL like http://libris.kb.se/resource/bib/219553
     to a bibliographic record
    3) Re-index Zebra
    4) Type "id-other,st-urx,fuzzy=http://libris.kb.se/resource/bib/219553"
     into the "Search the catalog" box in the Staff Client and search
    5) Note that you retrieve your record
    
    NOTE: The fuzzy is required because Koha's query "parsing" functions change
    http:// to http=// which won't correctly match the value in the "Identifier-other:u" index.
    NOTE: Alternatively, you could do the following search instead:
    "id-other,phr=http libris kb se resource bib 219553".
     It would work as well by using the "Identifier-other:p" index.
    
    Advanced tester version:
    4) In a terminal window, find the "koha-conf.xml" file in your "etc" directory.
    5) Open "koha-conf.xml" and find <listen id="biblioserver">.
    Copy the URI you find there. (e.g. unix:/home/dcook/koha-dev/var/run/zebradb/bibliosocket).
    6) Type "yaz-client unix:/home/dcook/koha-dev/var/run/zebradb/bibliosocket"
    7) After it connects, type "base biblios" and press enter
    8) Type "format xml" and press enter
    9) Type "elements zebra::index" and press enter
    10) Type "f id-other,st-urx=http://libris.kb.se/resource/bib/219553" and press enter
    11) Note that you should have at least one result
    12) Type "show 1"
    13) If you scroll through the results, you should find something like the following:
    
    <index name="Identifier-other" type="w" seq="28">@^</index>
    <index name="Identifier-other" type="w" seq="1"></index>
    <index name="Identifier-other" type="w" seq="29">http</index>
    <index name="Identifier-other" type="w" seq="30">libris</index>
    <index name="Identifier-other" type="w" seq="31">kb</index>
    <index name="Identifier-other" type="w" seq="32">se</index>
    <index name="Identifier-other" type="w" seq="33">resource</index>
    <index name="Identifier-other" type="w" seq="34">bib</index>
    <index name="Identifier-other" type="w" seq="35">219553</index>
    <index name="Identifier-other" type="p" seq="28">http libris kb se resource bib 219553</index>
    <index name="Identifier-other" type="u" seq="36">http://libris.kb.se/resource/bib/219553</index>
    
    Signed-off-by: Hector Castro <hector.hecaxmmx at gmail.com>
    Works as advertised the record is retrieved
    
    Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
    Some of the statements in the commit message do not work for me.
    A search like "id-other,phr=http libris kb se resource bib 219553" does not
    have results. Searching for "id-other,phr=libris.kb.se resource" does.
    The steps in the advanced tester version do not work for me too.
    I verified the following in yaz-client:
    [1] Z> f @attr 1=9012 @attr 4=104 http://libris.kb.se/resource/bib/219553
    Sent searchRequest.
    Received SearchResponse.
    Search was a success.
    Number of hits: 1, setno 16
    [2] First removed $2 and reindexed. Then searched again:
    Z> f @attr 1=9012 @attr 4=104 http://libris.kb.se/resource/bib/219553
    Sent searchRequest.
    Received SearchResponse.
    Search was a success.
    Number of hits: 0, setno 1
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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

Summary of changes:
 .../marc_defs/marc21/biblios/biblio-koha-indexdefs.xml      |    5 ++++-
 .../marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl     |   11 ++++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list