[koha-commits] main Koha release repository branch master updated. v16.11.00-130-g1b49293

Git repo owner gitmaster at git.koha-community.org
Wed Dec 28 14:40:25 CET 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  1b492938e4eee4d1babe26417cfbf69cede2b844 (commit)
      from  2c67648093b9e7479b1dd1135c80ada2d46aee7c (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 1b492938e4eee4d1babe26417cfbf69cede2b844
Author: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Date:   Tue Dec 20 16:11:36 2016 +0100

    Bug 17785: Fix OAI-PMH's XSLT-generated URLs under Plack
    
    Look at e.g. the URL for Show More at the end of the output of Records or
    Identifiers. If you use Plack, you will see that it refers to
    yourserver:/opac/oai.pl, which is not correct.
    
    This is caused by using CGI's self_url in combination with script alias,
    mounting point, etc. Note that we cannot solve this problem in the code of
    Koha only. Since HTTP::OAI modules also call self_url, we still end up
    with some wrong url's.
    
    Instead of a larger architectural operation on Apache and Plack config files,
    this patch adjusts the final xslt transformation on the OAI response.
    It hardcodes the correct path only once, in a xslt variable. And replaces
    all oai:OAI-PMH/oai:request/text() calls, containing wrong URLs, by this
    variable.
    
    Test plan:
    Run oai.pl. Try the various verbs.
    Verify that the URLs point to /cgi-bin/koha/oai.pl.
    
    Edit: changed commit subject
    
    Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
    Works as expected. Good workaround until a definitive solution is implemented.
    
    Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

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

Summary of changes:
 koha-tmpl/opac-tmpl/xslt/OAI.xslt |   28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list