koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: paul poulain
Subject: [Koha-cvs] koha/opac opac-MARCdetail.pl [rel_2_2]
Date: Mon, 09 Jan 2006 10:34:29 +0000

CVSROOT:        /cvsroot/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     paul poulain <address@hidden>   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} = address@hidden;
@@ -212,6 +216,7 @@
                                                item_header_loop => 
address@hidden,
                                                biblionumber => $biblionumber,
                                                bibid => $bibid,
+                                               hide_marc => 
C4::Context->preference('hide_marc'),
                                                biblionumber => $biblionumber);
 output_html_with_http_headers $query, $cookie, $template->output;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]