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

(-)a/installer/data/mysql/atomicupdate/hold_itype.sql (+3 lines)
Lines 5-7 ALTER TABLE reserves ADD CONSTRAINT `reserves_ibfk_5` FOREIGN KEY (`itemtype`) R Link Here
5
ALTER TABLE old_reserves ADD COLUMN itemtype VARCHAR(10) NULL DEFAULT NULL AFTER suspend_until;
5
ALTER TABLE old_reserves ADD COLUMN itemtype VARCHAR(10) NULL DEFAULT NULL AFTER suspend_until;
6
ALTER TABLE old_reserves ADD KEY `itemtype` (`itemtype`);
6
ALTER TABLE old_reserves ADD KEY `itemtype` (`itemtype`);
7
ALTER TABLE old_reserves ADD CONSTRAINT `old_reserves_ibfk_4` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE;
7
ALTER TABLE old_reserves ADD CONSTRAINT `old_reserves_ibfk_4` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE;
8
9
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
10
('AllowHoldItemTypeSelection','0','','If enabled, patrons and staff will be able to select the itemtype when placing a hold','YesNo');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 17-22 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
17
('AllowAllMessageDeletion','0','','Allow any Library to delete any message','YesNo'),
17
('AllowAllMessageDeletion','0','','Allow any Library to delete any message','YesNo'),
18
('AllowFineOverride','0','0','If on, staff will be able to issue books to patrons with fines greater than noissuescharge.','YesNo'),
18
('AllowFineOverride','0','0','If on, staff will be able to issue books to patrons with fines greater than noissuescharge.','YesNo'),
19
('AllowHoldDateInFuture','0','','If set a date field is displayed on the Hold screen of the Staff Interface, allowing the hold date to be set in the future.','YesNo'),
19
('AllowHoldDateInFuture','0','','If set a date field is displayed on the Hold screen of the Staff Interface, allowing the hold date to be set in the future.','YesNo'),
20
('AllowHoldItemTypeSelection','0','','If enabled, patrons and staff will be able to select the itemtype when placing a hold','YesNo'),
20
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
21
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
21
('AllowHoldsOnDamagedItems','1','','Allow hold requests to be placed on damaged items','YesNo'),
22
('AllowHoldsOnDamagedItems','1','','Allow hold requests to be placed on damaged items','YesNo'),
22
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
23
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+6 lines)
Lines 444-449 Circulation: Link Here
444
            - Each pair of values should be on a separate line.
444
            - Each pair of values should be on a separate line.
445
    Holds Policy:
445
    Holds Policy:
446
        -
446
        -
447
            - pref: AllowHoldItemTypeSelection
448
              choices:
449
                  yes: Allow
450
                  no: "Don't allow"
451
            - hold fulfillment to be limited by itemtype.
452
        -
447
            - pref: AllowRenewalIfOtherItemsAvailable
453
            - pref: AllowRenewalIfOtherItemsAvailable
448
              choices:
454
              choices:
449
                  yes: Allow
455
                  yes: Allow
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-9 / +11 lines)
Lines 412-426 function checkMultiHold() { Link Here
412
        </li>
412
        </li>
413
413
414
        [% UNLESS ( multi_hold ) %]
414
        [% UNLESS ( multi_hold ) %]
415
            <li>
415
            [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
416
                <label for="itemtype">Request specific item type:</label>
416
                <li>
417
                <select name="itemtype" size="1" id="itemtype">
417
                    <label for="itemtype">Request specific item type:</label>
418
                    <option value="">Any item type</option>
418
                    <select name="itemtype" size="1" id="itemtype">
419
                    [%- FOREACH itemtype IN available_itemtypes %]
419
                        <option value="">Any item type</option>
420
                        <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
420
                        [%- FOREACH itemtype IN available_itemtypes %]
421
                    [%- END %]
421
                            <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
422
                </select>
422
                        [%- END %]
423
            </li>
423
                    </select>
424
                </li>
425
            [% END %]
424
        [% END %]
426
        [% END %]
425
427
426
	[% IF ( reserve_in_future ) %]
428
	[% IF ( reserve_in_future ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-10 / +11 lines)
Lines 250-264 Link Here
250
                                                        </li>
250
                                                        </li>
251
251
252
                                                        [% UNLESS ( multi_hold ) %]
252
                                                        [% UNLESS ( multi_hold ) %]
253
                                                            <li>
253
                                                            [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
254
                                                                <label for="itemtype">Request specific item type:</label>
254
                                                                <li>
255
                                                                <select name="itemtype" size="1" id="itemtype">
255
                                                                    <label for="itemtype">Request specific item type:</label>
256
                                                                    <option value="">Any item type</option>
256
                                                                    <select name="itemtype" size="1" id="itemtype">
257
                                                                    [%- FOREACH itemtype IN available_itemtypes %]
257
                                                                        <option value="">Any item type</option>
258
                                                                        <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
258
                                                                        [%- FOREACH itemtype IN available_itemtypes %]
259
                                                                    [%- END %]
259
                                                                            <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
260
                                                                </select>
260
                                                                        [%- END %]
261
                                                            </li>
261
                                                                    </select>
262
                                                                </li>
263
                                                            [% END %]
262
                                                        [% END %]
264
                                                        [% END %]
263
265
264
                                                        [% IF ( OpacHoldNotes ) %]
266
                                                        [% IF ( OpacHoldNotes ) %]
265
- 

Return to bug 15533