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

(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 328-333 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( Link Here
328
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');
328
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');
329
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn           | a|a     d', NULL, NULL, 'Textarea');
329
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('MARCAuthorityControlField008', '|| aca||aabn           | a|a     d', NULL, NULL, 'Textarea');
330
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpenLibraryCovers',0,'If ON Openlibrary book covers will be show',NULL,'YesNo');
330
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpenLibraryCovers',0,'If ON Openlibrary book covers will be show',NULL,'YesNo');
331
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OPACShowBarcodeCatalogDetail','0','items barcode in catalog detail page ','','YesNo');
331
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free');
332
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowerUnwantedField','','Name the fields you don\'t need to store for a patron\'s account',NULL,'free');
332
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OpacKohaUrl','1',"Show 'Powered by Koha' text on OPAC footer.",NULL,NULL);
333
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OpacKohaUrl','1',"Show 'Powered by Koha' text on OPAC footer.",NULL,NULL);
333
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('EasyAnalyticalRecords','0','If on, display in the catalogue screens tools to easily setup analytical record relationships','','YesNo');
334
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('EasyAnalyticalRecords','0','If on, display in the catalogue screens tools to easily setup analytical record relationships','','YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 5308-5313 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
5308
    SetVersion ($DBversion);
5308
    SetVersion ($DBversion);
5309
}
5309
}
5310
5310
5311
$DBversion = "3.09.00.XXX";
5312
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5313
    $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACShowBarcodeCatalogDetail','0','items barcode in catalog detail page ','','YesNo')");
5314
    print "Upgrade to $DBversion done (Add syspref OPACShowBarcodeCatalogDetail)\n";
5315
    SetVersion ($DBversion);
5316
}
5317
5311
=head1 FUNCTIONS
5318
=head1 FUNCTIONS
5312
5319
5313
=head2 TableExists($table)
5320
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+7 lines)
Lines 50-55 OPAC: Link Here
50
                  no: "don't"
50
                  no: "don't"
51
            - open the website in a new window.
51
            - open the website in a new window.
52
        -
52
        -
53
            - pref: OPACShowBarcodeCatalogDetail
54
              default: 0
55
              choices:
56
                  yes: Show
57
                  no: "Don't show"
58
            - items barcode in catalog detail page
59
        -
53
            - pref: hidelostitems
60
            - pref: hidelostitems
54
              choices:
61
              choices:
55
                  yes: "Don't show"
62
                  yes: "Don't show"
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt (+2 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 ( OPACShowBarcodeCatalogDetail ) %]<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 747-752 YAHOO.util.Event.onContentReady("furtherm", function () { Link Here
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 ( OPACShowBarcodeCatalogDetail ) %]<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 (-1 / +1 lines)
Lines 390-395 $template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) ); Link Here
390
390
391
391
392
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") ); 
392
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") ); 
393
$template->param('OPACShowBarcodeCatalogDetail' => C4::Context->preference("OPACShowBarcodeCatalogDetail") );
393
# change back when ive fixed request.pl
394
# change back when ive fixed request.pl
394
my @all_items = GetItemsInfo( $biblionumber );
395
my @all_items = GetItemsInfo( $biblionumber );
395
396
396
- 

Return to bug 6774