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

(-)a/installer/data/mysql/atomicupdate/wr325354-add-HideReserveExpiration-syspref.perl (+7 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ( "HideReserveExpiration", 0, NULL, "Hide expiration date in reserves module.", "YesNo" ) });
4
5
    SetVersion( $DBversion );
6
    print "Upgrade to $DBversion done (WR325354 - HideReserveExpiration system preference)\n";
7
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 209-214 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
209
('GoogleOpenIDConnectDomain', '', NULL, 'Restrict Google OpenID Connect to this domain (or subdomains of this domain). Leave blank for all Google domains', 'Free'),
209
('GoogleOpenIDConnectDomain', '', NULL, 'Restrict Google OpenID Connect to this domain (or subdomains of this domain). Leave blank for all Google domains', 'Free'),
210
('hidelostitems','0','','If ON, disables display of\"lost\" items in OPAC.','YesNo'),
210
('hidelostitems','0','','If ON, disables display of\"lost\" items in OPAC.','YesNo'),
211
('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
211
('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
212
('HideReserveExpiration', 0, NULL, 'Hide expiration date in reserves module.', 'YesNo'),
212
('hide_marc','0',NULL,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)','YesNo'),
213
('hide_marc','0',NULL,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)','YesNo'),
213
('HighlightOwnItemsOnOPAC','0','','If on, and a patron is logged into the OPAC, items from his or her home library will be emphasized and shown first in search results and item details.','YesNo'),
214
('HighlightOwnItemsOnOPAC','0','','If on, and a patron is logged into the OPAC, items from his or her home library will be emphasized and shown first in search results and item details.','YesNo'),
214
('HighlightOwnItemsOnOPACWhich','PatronBranch','PatronBranch|OpacURLBranch','Decides which branch\'s items to emphasize. If PatronBranch, emphasize the logged in user\'s library\'s items. If OpacURLBranch, highlight the items of the Apache var BRANCHCODE defined in Koha\'s Apache configuration file.','Choice'),
215
('HighlightOwnItemsOnOPACWhich','PatronBranch','PatronBranch|OpacURLBranch','Decides which branch\'s items to emphasize. If PatronBranch, emphasize the logged in user\'s library\'s items. If OpacURLBranch, highlight the items of the Apache var BRANCHCODE defined in Koha\'s Apache configuration file.','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+6 lines)
Lines 157-162 Circulation: Link Here
157
                  yes: Allow
157
                  yes: Allow
158
                  no: "Don't allow"
158
                  no: "Don't allow"
159
            - patrons to submit notes about checked out items.
159
            - patrons to submit notes about checked out items.
160
        -
161
            - pref: HideReserveExpiration
162
              choices:
163
                  yes: Hide
164
                  no: "Don't hide"
165
            - expiration date options for reserves.
160
166
161
    Checkout Policy:
167
    Checkout Policy:
162
        -
168
        -
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-6 / +8 lines)
Lines 451-462 Link Here
451
                                </li>
451
                                </li>
452
                            [% END %]
452
                            [% END %]
453
453
454
                            <li>
454
                            [% IF !Koha.Preference('HideReserveExpiration') %]
455
                                <label for="to">Hold expires on date:</label>
455
                                <li>
456
                                <input name="expiration_date" id="to" size="10" class="datepickerto" type="text" />
456
                                    <label for="to">Hold expires on date:</label>
457
                                <input type="hidden" class="datepickerto_hidden" />
457
                                    <input name="expiration_date" id="to" size="10" class="datepickerto" type="text" />
458
                                <a href="#" id="clear-date-to" class="clear-date">Clear date</a>
458
                                    <input type="hidden" class="datepickerto_hidden" />
459
                            </li>
459
                                    <a href="#" id="clear-date-to" class="clear-date">Clear date</a>
460
                                </li>
461
                            [% END %]
460
462
461
                            [% UNLESS ( multi_hold ) %]
463
                            [% UNLESS ( multi_hold ) %]
462
                                <li>
464
                                <li>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-6 / +7 lines)
Lines 267-277 Link Here
267
                                                    </li>
267
                                                    </li>
268
                                                [% END %]
268
                                                [% END %]
269
269
270
                                                <li>
270
                                                [% IF !Koha.Preference('HideReserveExpiration') %]
271
                                                    <label for="to[% bibitemloo.biblionumber | html %]">Hold not needed after:</label>
271
                                                    <li>
272
                                                    <input type="text" name="expiration_date_[% bibitemloo.biblionumber | html %]" id="to[% bibitemloo.biblionumber | html %]" size="10" class="holddateto" />
272
                                                        <label for="to[% bibitemloo.biblionumber | html %]">Hold not needed after:</label>
273
                                                    <span class="date-format to" data-biblionumber="[% bibitemloo.biblionumber | html %]">[% INCLUDE 'date-format.inc' %]</span>
273
                                                        <input type="text" name="expiration_date_[% bibitemloo.biblionumber | html %]" id="to[% bibitemloo.biblionumber | html %]" size="10" class="holddateto" />
274
                                                </li>
274
                                                        <span class="date-format to" data-biblionumber="[% bibitemloo.biblionumber | html %]">[% INCLUDE 'date-format.inc' %]</span>
275
                                                    </li>
276
                                                [% END %]
275
277
276
                                                [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
278
                                                [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
277
                                                    [% itemtypes = [] %]
279
                                                    [% itemtypes = [] %]
278
- 

Return to bug 24194