View | Details | Raw Unified | Return to bug 6774
Collapse All | Expand All

(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 369-371 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' Link Here
369
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsIntranet', '1', NULL , 'Allow holds to be suspended from the intranet.', 'YesNo');
369
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsIntranet', '1', NULL , 'Allow holds to be suspended from the intranet.', 'YesNo');
370
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsOpac', '1', NULL , 'Allow holds to be suspended from the OPAC.', 'YesNo');
370
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('SuspendHoldsOpac', '1', NULL , 'Allow holds to be suspended from the OPAC.', 'YesNo');
371
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('DefaultLanguageField008','','Fill in the default language for field 008 Range 35-37 (e.g. eng, nor, ger, see <a href="http://www.loc.gov/marc/languages/language_code.html">MARC Code List for Languages</a>)','','Free');
371
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('DefaultLanguageField008','','Fill in the default language for field 008 Range 35-37 (e.g. eng, nor, ger, see <a href="http://www.loc.gov/marc/languages/language_code.html">MARC Code List for Languages</a>)','','Free');
372
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OPACShowBarcode','0','Show items barcode in holding tab','','YesNo');
373
(-)a/installer/data/mysql/updatedatabase.pl (+6 lines)
Lines 5369-5374 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5369
    SetVersion($DBversion);
5369
    SetVersion($DBversion);
5370
}
5370
}
5371
5371
5372
$DBversion = "3.09.00.XXX";
5373
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5374
    $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACShowBarcode','0','Show items barcode in holding tab','','YesNo')");
5375
    print "Upgrade to $DBversion done (Add syspref OPACShowBarcode)\n";
5376
    SetVersion ($DBversion);
5377
}
5372
5378
5373
=head1 FUNCTIONS
5379
=head1 FUNCTIONS
5374
5380
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+7 lines)
Lines 108-113 OPAC: Link Here
108
                  no: "Don't show"
108
                  no: "Don't show"
109
            - a link to recent comments in the OPAC masthead.
109
            - a link to recent comments in the OPAC masthead.
110
        -
110
        -
111
            - pref: OPACShowBarcode
112
              default: 0
113
              choices:
114
                  yes: Show
115
                  no: "Don't show"
116
            - Show items barcode in holding tab.
117
        -
111
            - pref: OpacHighlightedWords
118
            - pref: OpacHighlightedWords
112
              choices:
119
              choices:
113
                  yes: Highlight
120
                  yes: Highlight
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (-1 / +3 lines)
Lines 718-723 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
718
            <th id="item_status">Status</th>
718
            <th id="item_status">Status</th>
719
            [% IF ( itemdata_itemnotes ) %]<th id="item_notes">Notes</th>[% END %]
719
            [% IF ( itemdata_itemnotes ) %]<th id="item_notes">Notes</th>[% END %]
720
            <th id="item_datedue">Date due</th>
720
            <th id="item_datedue">Date due</th>
721
            [% IF ( OPACShowBarcode ) %]<th>Barcode</th>[% END %]
721
        [% IF holds_count.defined %]
722
        [% IF holds_count.defined %]
722
            <th>Item holds</th>
723
            <th>Item holds</th>
723
        [% ELSIF show_priority %]
724
        [% ELSIF show_priority %]
Lines 746-752 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
746
		[% IF ( itemdata_copynumber ) %]<td>[% ITEM_RESULT.copynumber %]</td>[% END %]
747
		[% IF ( itemdata_copynumber ) %]<td>[% ITEM_RESULT.copynumber %]</td>[% END %]
747
		<td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
748
		<td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
748
		[% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
749
		[% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
749
		<td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
750
        <td>[% ITEM_RESULT.datedue | $KohaDates %]</td>
751
        [% IF ( OPACShowBarcode ) %]<td>[% ITEM_RESULT.barcode %]</td>[% END %]
750
        [% IF holds_count.defined || show_priority %]
752
        [% IF holds_count.defined || show_priority %]
751
        <td>
753
        <td>
752
            [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
754
            [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
(-)a/opac/opac-detail.pl (-2 / +2 lines)
Lines 393-399 $template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) ); Link Here
393
393
394
394
395
395
396
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") ); 
396
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") );
397
$template->param('OPACShowBarcode' => C4::Context->preference("OPACShowBarcode") );
397
# change back when ive fixed request.pl
398
# change back when ive fixed request.pl
398
my @all_items = GetItemsInfo( $biblionumber );
399
my @all_items = GetItemsInfo( $biblionumber );
399
400
400
- 

Return to bug 6774