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

paul poulain paul at koha-fr.org
Mon Jan 9 11:34:29 CET 2006


CVSROOT:	/cvsroot/koha
Module name:	koha
Branch: 	rel_2_2
Changes by:	paul poulain <tipaul at savannah.gnu.org>	06/01/09 10:34:29

Modified files:
	opac           : opac-MARCdetail.pl 

Log message:
	removing codes if hide_marc=ON

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/opac/opac-MARCdetail.pl.diff?only_with_tag=rel_2_2&tr1=1.4.2.6&tr2=1.4.2.7&r1=text&r2=text

Patches:
Index: koha/opac/opac-MARCdetail.pl
diff -u koha/opac/opac-MARCdetail.pl:1.4.2.6 koha/opac/opac-MARCdetail.pl:1.4.2.7
--- koha/opac/opac-MARCdetail.pl:1.4.2.6	Tue Dec 13 17:34:21 2005
+++ koha/opac/opac-MARCdetail.pl	Mon Jan  9 10:34:29 2006
@@ -150,7 +150,11 @@
 			if ($fields[$x_i]->tag() eq $fields[$x_i-1]->tag()) {
 				$tag_data{tag}="";
 			} else {
-				$tag_data{tag}=$fields[$x_i]->tag().' -'. $tagslib->{$fields[$x_i]->tag()}->{lib};
+				if (C4::Context->preference('hide_marc')) {
+					$tag_data{tag}=$tagslib->{$fields[$x_i]->tag()}->{lib};
+				} else {
+					$tag_data{tag}=$fields[$x_i]->tag().' -'. $tagslib->{$fields[$x_i]->tag()}->{lib};
+				}
 			}
 			my @tmp = @subfields_data;
 			$tag_data{subfield} = \@tmp;
@@ -212,6 +216,7 @@
 						item_header_loop => \@header_value_loop,
 						biblionumber => $biblionumber,
 						bibid => $bibid,
+						hide_marc => C4::Context->preference('hide_marc'),
 						biblionumber => $biblionumber);
 output_html_with_http_headers $query, $cookie, $template->output;
 





More information about the Koha-cvs mailing list