From cc3698f41530483d5a3c4414e92d8d4fe66dde7f Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 17 Feb 2009 16:23:28 +0100 Subject: [PATCH] (bug #2904) this patch is a fix from previous in the previous patch the field used for link "name" was 856$z, but the unimarc doesn't specify this, it say to use the 856$2 field. This patch make koha to use the 856$2. Signed-off-by: Henri-Damien LAURENT --- C4/Biblio.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index cee44d5ea6..9fe8872644 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1273,11 +1273,11 @@ sub GetMarcUrls { $marcurl = { MARCURL => $url, notes => \@notes, }; - $marcurl->{'linktext'} = $link || $s3 || C4::Context->preference('URLLinkText') || $url ;; + $marcurl->{'linktext'} = $link || $s3 || C4::Context->preference('URLLinkText') || $url ; $marcurl->{'part'} = $s3 if($link); $marcurl->{'toc'} = 1 if($s3 =~ /^[Tt]able/) ; } else { - $marcurl->{'linktext'} = $field->subfield('z') || C4::Context->preference('URLLinkText') || $url; + $marcurl->{'linktext'} = $field->subfield('2') || C4::Context->preference('URLLinkText') || $url; $marcurl->{'MARCURL'} = $url ; } push @marcurls, $marcurl; -- 2.39.5