[Koha-bugs] [Bug 6146] In Auth.pm the var OPACBaseURL ignores the syspref OPACBaseURL

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 7 16:11:25 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6146

Owen Leonard <oleonard at myacpl.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
       Patch Status|Needs Signoff               |Failed QA

--- Comment #4 from Owen Leonard <oleonard at myacpl.org> 2011-10-07 14:11:25 UTC ---
OPACBaseURL is used in several places now, including the link to the OPAC from
the detail page. It is used in the patch pending for Bug 6957. However, the way
I've seen it used is to call the preference directly. In detail.pl:

# Get OPAC URL
if (C4::Context->preference('OPACBaseURL')){
     $template->param( OpacUrl => C4::Context->preference('OPACBaseURL') );
}

And build the link assuming that OPACBaseURL contains just the domain. In
detail.tt:

<a href="http://[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[%
biblionumber %]" target="_blank">Open in new window</a>

Before or after this patch, if I leave the OPACBaseURL system preference empty,
the output of the OPACBaseURL variable generated by Auth.pm is empty as well. I
suspect something is wrong in the way the code builds the URL with or without
this patch.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list