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

(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 318-320 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( Link Here
318
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('BasketConfirmations', '1', 'When closing or reopening a basket,', 'always ask for confirmation.|do not ask for confirmation.', 'Choice');
318
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('BasketConfirmations', '1', 'When closing or reopening a basket,', 'always ask for confirmation.|do not ask for confirmation.', 'Choice');
319
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn           | a|a     d', NULL, NULL, 'Textarea');
319
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn           | a|a     d', NULL, NULL, 'Textarea');
320
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpenLibraryCovers',0,'If ON Openlibrary book covers will be show',NULL,'YesNo');
320
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpenLibraryCovers',0,'If ON Openlibrary book covers will be show',NULL,'YesNo');
321
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OPACShowBarcode','0','Show items barcode in holding tab','','YesNo');
322
(-)a/installer/data/mysql/updatedatabase.pl (+6 lines)
Lines 4446-4451 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
4446
    SetVersion($DBversion);
4446
    SetVersion($DBversion);
4447
}
4447
}
4448
4448
4449
$DBversion = "3.05.00.XXX";
4450
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4451
    $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACShowBarcode','0','Show items barcode in holding tab','','YesNo')");
4452
    print "Upgrade to $DBversion done (Add syspref OPACShowBarcode)\n";
4453
    SetVersion ($DBversion);
4454
}
4449
4455
4450
=head1 FUNCTIONS
4456
=head1 FUNCTIONS
4451
4457
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+8 lines)
Lines 86-91 OPAC: Link Here
86
                  no: "Don't show"
86
                  no: "Don't show"
87
            - the name of the patron that has an item checked out on item detail pages on the OPAC.
87
            - the name of the patron that has an item checked out on item detail pages on the OPAC.
88
        -
88
        -
89
            - pref: OPACShowBarcode
90
              default: 0
91
              choices:
92
                  yes: Show
93
                  no: "Don't show"
94
            - Show items barcode in holding tab.
95
        -
96
89
            - pref: OpacHighlightedWords
97
            - pref: OpacHighlightedWords
90
              choices:
98
              choices:
91
                  yes: Highlight
99
                  yes: Highlight
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (+2 lines)
Lines 412-417 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
412
		<th>Status</th>
412
		<th>Status</th>
413
		[% IF ( itemdata_itemnotes ) %]<th>Notes</th>[% END %]
413
		[% IF ( itemdata_itemnotes ) %]<th>Notes</th>[% END %]
414
		<th>Date Due</th>
414
		<th>Date Due</th>
415
		[% IF ( OPACShowBarcode ) %]<th>Barcode</th>[% END %]
415
	    </tr></thead>
416
	    </tr></thead>
416
	    <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
417
	    <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
417
	    <tr>[% IF ( item_level_itypes ) %]<td>[% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %]<img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />[% END %][% END %] [% ITEM_RESULT.description %]</td>[% END %]
418
	    <tr>[% IF ( item_level_itypes ) %]<td>[% UNLESS ( noItemTypeImages ) %][% IF ( ITEM_RESULT.imageurl ) %]<img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />[% END %][% END %] [% ITEM_RESULT.description %]</td>[% END %]
Lines 424-429 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
424
		<td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
425
		<td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
425
		[% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
426
		[% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
426
		<td>[% ITEM_RESULT.datedue %]</td>
427
		<td>[% ITEM_RESULT.datedue %]</td>
428
		[% IF ( OPACShowBarcode ) %]<td>[% ITEM_RESULT.barcode %]</td>[% END %]
427
	    </tr>
429
	    </tr>
428
	    [% END %]</tbody>
430
	    [% END %]</tbody>
429
	</table>
431
	</table>
(-)a/opac/opac-detail.pl (-2 / +2 lines)
Lines 83-89 if (C4::Context->preference("OPACXSLTDetailsDisplay") ) { Link Here
83
    $template->param( 'XSLTBloc' => XSLTParse4Display($biblionumber, $record, 'Detail', 'opac') );
83
    $template->param( 'XSLTBloc' => XSLTParse4Display($biblionumber, $record, 'Detail', 'opac') );
84
}
84
}
85
85
86
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") ); 
86
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") );
87
$template->param('OPACShowBarcode' => C4::Context->preference("OPACShowBarcode") );
87
# change back when ive fixed request.pl
88
# change back when ive fixed request.pl
88
my @all_items = GetItemsInfo( $biblionumber );
89
my @all_items = GetItemsInfo( $biblionumber );
89
my @items;
90
my @items;
90
- 

Return to bug 6774