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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 317-319 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( Link Here
317
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');
317
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 ('MARCAuthorityControlField008', '|| aca||aabn           | a|a     d', NULL, NULL, 'Textarea');
318
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('OpenLibraryCovers',0,'If ON Openlibrary book covers will be show',NULL,'YesNo');
319
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('OPACShowBarcode','0','Show items barcode in holiding tab','','YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +6 lines)
Lines 4439-4445 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
4439
    SetVersion($DBversion);
4439
    SetVersion($DBversion);
4440
}
4440
}
4441
4441
4442
4442
$DBversion = "3.05.00.XXX";
4443
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
4444
    $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACShowBarcode','0','Show items barcode in holiding tab','','YesNo')");
4445
    print "Upgrade to $DBversion done (Add syspref OPACShowBarcode)\n";
4446
    SetVersion ($DBversion);
4447
}
4443
=head1 FUNCTIONS
4448
=head1 FUNCTIONS
4444
4449
4445
=head2 DropAllForeignKeys($table)
4450
=head2 DropAllForeignKeys($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+7 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
        -
89
            - pref: OpacHighlightedWords
96
            - pref: OpacHighlightedWords
90
              choices:
97
              choices:
91
                  yes: Highlight
98
                  yes: Highlight
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (+2 lines)
Lines 408-413 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
408
		<th>Status</th>
408
		<th>Status</th>
409
		[% IF ( itemdata_itemnotes ) %]<th>Notes</th>[% END %]
409
		[% IF ( itemdata_itemnotes ) %]<th>Notes</th>[% END %]
410
		<th>Date Due</th>
410
		<th>Date Due</th>
411
		[% IF ( OPACShowBarcode ) %]<th>Barcode</th>[% END %]
411
	    </tr></thead>
412
	    </tr></thead>
412
	    <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
413
	    <tbody>[% FOREACH ITEM_RESULT IN ITEM_RESULTS %]
413
	    <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 %]
414
	    <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 420-425 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
420
		<td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
421
		<td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
421
		[% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
422
		[% IF ( itemdata_itemnotes ) %]<td>[% ITEM_RESULT.itemnotes %]</td>[% END %]
422
		<td>[% ITEM_RESULT.datedue %]</td>
423
		<td>[% ITEM_RESULT.datedue %]</td>
424
		  [% IF ( OPACShowBarcode ) %]<td>[% ITEM_RESULT.barcode %]</td>[% END %]
423
	    </tr>
425
	    </tr>
424
	    [% END %]</tbody>
426
	    [% END %]</tbody>
425
	</table>
427
	</table>
(-)a/opac/opac-detail.pl (-1 / +1 lines)
Lines 84-89 if (C4::Context->preference("OPACXSLTDetailsDisplay") ) { Link Here
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