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

(-)a/C4/UsageStats.pm (-1 lines)
Lines 243-249 sub BuildReport { Link Here
243
        OpacMaintenance
243
        OpacMaintenance
244
        OpacPublic
244
        OpacPublic
245
        OpacSeparateHoldings
245
        OpacSeparateHoldings
246
        OPACShowBarcode
247
        OPACShowCheckoutName
246
        OPACShowCheckoutName
248
        OpacShowFiltersPulldownMobile
247
        OpacShowFiltersPulldownMobile
249
        OPACShowHoldQueueDetails
248
        OPACShowHoldQueueDetails
(-)a/installer/data/mysql/atomicupdate/bug_19038_remove_opacshowbarcode_syspref.perl (+21 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    my $hide_barcode = C4::Context->preference('OPACShowBarcode') ? 0 : 1;
4
5
    $dbh->do(q{
6
        DELETE FROM systempreferences
7
        WHERE
8
            variable='OPACShowBarcode'
9
    });
10
11
    # Configure column visibility if it isn't
12
    $dbh->do(q{
13
        INSERT IGNORE INTO columns_settings
14
            (module,page,tablename,columnname,cannot_be_toggled,is_hidden)
15
        VALUES
16
            ('opac','biblio-detail','holdingst','item_barcode',0,?)
17
    }, undef, $hide_barcode);
18
19
    SetVersion( $DBversion );
20
    print "Upgrade to $DBversion done (Bug 19038: Remove OPACShowBarcode syspref)\n";
21
}
(-)a/installer/data/mysql/sysprefs.sql (-1 lines)
Lines 374-380 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
374
('opacSerialDefaultTab','subscriptions','holdings|serialcollection|subscriptions','Define the default tab for serials in OPAC.','Choice'),
374
('opacSerialDefaultTab','subscriptions','holdings|serialcollection|subscriptions','Define the default tab for serials in OPAC.','Choice'),
375
('OPACSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the OPAC','Integer'),
375
('OPACSerialIssueDisplayCount','3','','Number of serial issues to display per subscription in the OPAC','Integer'),
376
('OPACShelfBrowser','1','','Enable/disable Shelf Browser on item details page. WARNING: this feature is very resource consuming on collections with large numbers of items.','YesNo'),
376
('OPACShelfBrowser','1','','Enable/disable Shelf Browser on item details page. WARNING: this feature is very resource consuming on collections with large numbers of items.','YesNo'),
377
('OPACShowBarcode','0','','Show items barcode in holding tab','YesNo'),
378
('OPACShowCheckoutName','0','','Displays in the OPAC the name of patron who has checked out the material. WARNING: Most sites should leave this off. It is intended for corporate or special sites which need to track who has the item.','YesNo'),
377
('OPACShowCheckoutName','0','','Displays in the OPAC the name of patron who has checked out the material. WARNING: Most sites should leave this off. It is intended for corporate or special sites which need to track who has the item.','YesNo'),
379
('OPACShowHoldQueueDetails','none','none|priority|holds|holds_priority','Show holds details in OPAC','Choice'),
378
('OPACShowHoldQueueDetails','none','none|priority|holds|holds_priority','Show holds details in OPAC','Choice'),
380
('OpacShowRecentComments','0',NULL,'If ON a link to recent comments will appear in the OPAC masthead','YesNo'),
379
('OpacShowRecentComments','0',NULL,'If ON a link to recent comments will appear in the OPAC masthead','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-7 lines)
Lines 166-178 OPAC: Link Here
166
                  no: "Don't show"
166
                  no: "Don't show"
167
            - a link to recent comments in the OPAC masthead.
167
            - a link to recent comments in the OPAC masthead.
168
        -
168
        -
169
            - pref: OPACShowBarcode
170
              default: 0
171
              choices:
172
                  yes: Show
173
                  no: "Don't show"
174
            - the item's barcode on the holdings tab.
175
        -
176
            - pref: GoogleIndicTransliteration
169
            - pref: GoogleIndicTransliteration
177
              default: 0
170
              default: 0
178
              choices:
171
              choices:
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-3 / +2 lines)
Lines 1203-1210 Link Here
1203
        [% IF ( itemdata_itemnotes ) %]
1203
        [% IF ( itemdata_itemnotes ) %]
1204
                <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %]
1204
                <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %]
1205
                <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1205
                <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1206
        [% IF ( OPACShowBarcode ) %]
1206
                <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1207
                <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>[% END %]
1208
        [% IF holds_count.defined %]
1207
        [% IF holds_count.defined %]
1209
                <th id="item_holds" data-colname="item_holds">Item holds</th>
1208
                <th id="item_holds" data-colname="item_holds">Item holds</th>
1210
        [% ELSIF show_priority %]
1209
        [% ELSIF show_priority %]
Lines 1338-1344 Link Here
1338
                    <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1337
                    <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1339
                    [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1338
                    [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1340
                    <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1339
                    <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1341
                    [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1340
                        <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>
1342
                    [% IF holds_count.defined || show_priority %]
1341
                    [% IF holds_count.defined || show_priority %]
1343
                        <td class="holds_count">
1342
                        <td class="holds_count">
1344
                            [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1343
                            [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
(-)a/opac/opac-detail.pl (-1 lines)
Lines 461-467 if ($session->param('busc')) { Link Here
461
461
462
$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) );
462
$template->param( 'ItemsIssued' => CountItemsIssued( $biblionumber ) );
463
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") );
463
$template->param('OPACShowCheckoutName' => C4::Context->preference("OPACShowCheckoutName") );
464
$template->param('OPACShowBarcode' => C4::Context->preference("OPACShowBarcode") );
465
464
466
# adding items linked via host biblios
465
# adding items linked via host biblios
467
466
(-)a/t/db_dependent/UsageStats.t (-2 lines)
Lines 496-502 sub mocking_systempreferences_to_a_set_value { Link Here
496
        OpacMaintenance
496
        OpacMaintenance
497
        OpacPublic
497
        OpacPublic
498
        OpacSeparateHoldings
498
        OpacSeparateHoldings
499
        OPACShowBarcode
500
        OPACShowCheckoutName
499
        OPACShowCheckoutName
501
        OpacShowFiltersPulldownMobile
500
        OpacShowFiltersPulldownMobile
502
        OPACShowHoldQueueDetails
501
        OPACShowHoldQueueDetails
503
- 

Return to bug 19038