From 8c482560f456b606929f54a56d5a1cad00a48400 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 5 Nov 2007 12:17:02 -0600 Subject: [PATCH] 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 Signed-off-by: Joshua Ferraro --- opac/opac-ISBDdetail.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl index c052d5a942..2646009c1e 100755 --- a/opac/opac-ISBDdetail.pl +++ b/opac/opac-ISBDdetail.pl @@ -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 -- 2.39.5