Bug FIX : ISBD links to pages should be changed in order to work both at OPAC and intranet.

Proposing a quick fix for that.
parsing links to change calls from /cgi-bin/koha/***/function.pl?myvars
to opar-function.pl?myvars

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Henri-Damien LAURENT 2007-11-05 12:17:02 -06:00 committed by Joshua Ferraro
parent 58d3b163d0
commit 8c482560f4

View file

@ -142,6 +142,7 @@ foreach my $isbdfield ( split /#/, $bloc ) {
my $tagsubf = $tag . $subfieldcode;
$calculated =~
s/\{(.?.?.?.?)$tagsubf(.*?)\}/$1$subfieldvalue$2\{$1$tagsubf$2\}/g;
$calculated =~s#/cgi-bin/koha/[^/]+/([^.]*.pl\?.*)$#opac-$1#g;
}
# field builded, store the result