[Koha-cvs] koha/authorities authorities.pl [rel_3_0]

Henri-Damien LAURENT laurenthdl at alinto.com
Thu Mar 8 16:16:22 CET 2007


CVSROOT:	/cvsroot/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	Henri-Damien LAURENT <hdl>	07/03/08 15:16:22

Modified files:
	authorities    : authorities.pl 

Log message:
	BUG Fixing : links with other thesaurus Was mistaken  between frameworkcode and authtypecode (A CopyPaste problem.)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/authorities/authorities.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.15.2.9&r2=1.15.2.10

Patches:
Index: authorities.pl
===================================================================
RCS file: /cvsroot/koha/koha/authorities/authorities.pl,v
retrieving revision 1.15.2.9
retrieving revision 1.15.2.10
diff -u -b -r1.15.2.9 -r1.15.2.10
--- authorities.pl	2 Feb 2007 18:07:42 -0000	1.15.2.9
+++ authorities.pl	8 Mar 2007 15:16:22 -0000	1.15.2.10
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-# $Id: authorities.pl,v 1.15.2.9 2007/02/02 18:07:42 hdl Exp $
+# $Id: authorities.pl,v 1.15.2.10 2007/03/08 15:16:22 hdl Exp $
 
 # Copyright 2000-2002 Katipo Communications
 #
@@ -154,8 +154,8 @@
 	if ($tagslib->{$tag}->{$subfield}->{authorised_value}) {
 		$subfield_data{marc_value}= build_authorized_values_list($tag, $subfield, $value, $dbh,$authorised_values_sth);
 	# it's a thesaurus / authority field
-	} elsif ($tagslib->{$tag}->{$subfield}->{authtypecode}) {
-		$subfield_data{marc_value}="<input type=\"text\" name=\"field_value\" value=\"$value\" size=\"67\" maxlength=\"255\" DISABLE READONLY> <a href=\"javascript:Dopop('../authorities/auth_finder.pl?authtypecode=".$tagslib->{$tag}->{$subfield}->{authtypecode}."&index=$i',$i)\">...</a>";
+	} elsif ($tagslib->{$tag}->{$subfield}->{frameworkcode}) {
+		$subfield_data{marc_value}="<input type=\"text\" name=\"field_value\" value=\"$value\" size=\"67\" maxlength=\"255\" DISABLE READONLY> <a href=\"javascript:Dopop('../authorities/auth_finder.pl?authtypecode=".$tagslib->{$tag}->{$subfield}->{frameworkcode}."&index=$i',$i)\">...</a>";
 	} elsif ($tagslib->{$tag}->{$subfield}->{link}) {
 		$subfield_data{marc_value}="<input onblur=\"this.style.backgroundColor='#ffffff';\" onfocus=\"this.style.backgroundColor='#ffffff;'\" tabindex=\"1\" type=\"text\" name=\"field_value\" value=\"$value\" size=\"40\" maxlength=\"255\" DISABLE READONLY> <a  style=\"cursor: help;\" href=\"javascript:Dopop('../authorities/auth_linker.pl?index=$i',$i)\">...</a>";
 	





More information about the Koha-cvs mailing list