From e41bb4dd6421d91b9a67d14d2181c5b8dc242db3 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 6 Mar 2009 12:17:39 -0600 Subject: [PATCH] bug 2904: fix display of URLs in UNIMARC This based on a patch by Nahuel ANGELINETTI; done to merge changes with Mason's patch for 2951. The original patch description is: 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 fi This patch make koha to use the 856$2." Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- C4/Biblio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 0c3f985282..c987dfaea2 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1276,7 +1276,7 @@ sub GetMarcUrls { $marcurl->{'part'} = $s3 if ($link); $marcurl->{'toc'} = 1 if ( $s3 =~ /^table/i ); } 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