[Koha-cvs] koha/opac opac-MARCdetail.pl ISBDdetail.pl MARC... [rel_2_2]

paul poulain paul at koha-fr.org
Wed Jun 14 17:37:19 CEST 2006


CVSROOT:	/cvsroot/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	paul poulain <tipaul>	06/06/14 15:37:19

Modified files:
	opac           : opac-MARCdetail.pl 
	.              : ISBDdetail.pl MARCdetail.pl 

Log message:
	building authorised values to show the values, not the code, in items as well as in biblios

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-MARCdetail.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.4.2.14&r2=1.4.2.15
http://cvs.savannah.gnu.org/viewcvs/koha/ISBDdetail.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.4.2.5&r2=1.4.2.6
http://cvs.savannah.gnu.org/viewcvs/koha/MARCdetail.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.25.2.22&r2=1.25.2.23

Patches:

Index: ISBDdetail.pl
===================================================================
RCS file: /cvsroot/koha/koha/Attic/ISBDdetail.pl,v
retrieving revision 1.4.2.5
retrieving revision 1.4.2.6
diff -u -b -r1.4.2.5 -r1.4.2.6
--- ISBDdetail.pl	5 Feb 2006 21:59:20 -0000	1.4.2.5
+++ ISBDdetail.pl	14 Jun 2006 15:37:19 -0000	1.4.2.6
@@ -127,6 +127,7 @@
 $res =~ s/\(\)//g;
 $template->param(ISBD => $res,
 		biblionumber => $biblionumber,
+		bibid => $bibid,
 		intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
 		intranetstylesheet => C4::Context->preference("intranetstylesheet"),
 		IntranetNav => C4::Context->preference("IntranetNav"),

Index: MARCdetail.pl
===================================================================
RCS file: /cvsroot/koha/koha/Attic/MARCdetail.pl,v
retrieving revision 1.25.2.22
retrieving revision 1.25.2.23
diff -u -b -r1.25.2.22 -r1.25.2.23
--- MARCdetail.pl	15 Mar 2006 06:17:08 -0000	1.25.2.22
+++ MARCdetail.pl	14 Jun 2006 15:37:19 -0000	1.25.2.23
@@ -219,7 +219,13 @@
 		next if ($tagslib->{$field->tag()}->{$subf[$i][0]}->{tab}  ne 10);
 		next if ($tagslib->{$field->tag()}->{$subf[$i][0]}->{hidden}==(-7|-4|-3|-2|2|3|5|8));
 		$witness{$subf[$i][0]} = $tagslib->{$field->tag()}->{$subf[$i][0]}->{lib};
-		$this_row{$subf[$i][0]} =$subf[$i][1];
+        if ($tagslib->{$field->tag()}->{$subf[$i][0]}->{isurl}) {
+            $this_row{$subf[$i][0]}="<a href=\"$subf[$i][1]\">$subf[$i][1]</a>";
+        } elsif ($tagslib->{$field->tag()}->{$subf[$i][0]}->{kohafield} eq "biblioitems.isbn") {
+            $this_row{$subf[$i][0]}=DisplayISBN($subf[$i][1]);
+        } else {
+            $this_row{$subf[$i][0]}=get_authorised_value_desc($field->tag(), $subf[$i][0], $subf[$i][1], '', $dbh);
+        }
 	}
 	if (%this_row) {
 		push(@big_array, \%this_row);
@@ -257,7 +263,6 @@
 						item_header_loop => \@header_value_loop,
 						biblionumber => $biblionumber,
 						bibid => $bibid,
-						biblionumber => $biblionumber,
 						subscriptionsnumber => $subscriptionsnumber,
 						popup => $popup,
 						hide_marc => C4::Context->preference('hide_marc'),





More information about the Koha-cvs mailing list