ALTER TABLE old_reserves ADD COLUMN itemtype VARCHAR(10) NULL DEFAULT NULL AFTER suspend_until;
ALTER TABLE old_reserves ADD KEY `itemtype` (`itemtype`);
ALTER TABLE old_reserves ADD CONSTRAINT `old_reserves_ibfk_4` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
+('AllowHoldItemTypeSelection','0','','If enabled, patrons and staff will be able to select the itemtype when placing a hold','YesNo');
('AllowAllMessageDeletion','0','','Allow any Library to delete any message','YesNo'),
('AllowFineOverride','0','0','If on, staff will be able to issue books to patrons with fines greater than noissuescharge.','YesNo'),
('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'),
+('AllowHoldItemTypeSelection','0','','If enabled, patrons and staff will be able to select the itemtype when placing a hold','YesNo'),
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
('AllowHoldsOnDamagedItems','1','','Allow hold requests to be placed on damaged items','YesNo'),
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
- Each pair of values should be on a separate line.
Holds Policy:
-
+ - pref: AllowHoldItemTypeSelection
+ choices:
+ yes: Allow
+ no: "Don't allow"
+ - hold fulfillment to be limited by itemtype.
+ -
- pref: AllowRenewalIfOtherItemsAvailable
choices:
yes: Allow
</li>
[% UNLESS ( multi_hold ) %]
- <li>
- <label for="itemtype">Request specific item type:</label>
- <select name="itemtype" size="1" id="itemtype">
- <option value="">Any item type</option>
- [%- FOREACH itemtype IN available_itemtypes %]
- <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
- [%- END %]
- </select>
- </li>
+ [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
+ <li>
+ <label for="itemtype">Request specific item type:</label>
+ <select name="itemtype" size="1" id="itemtype">
+ <option value="">Any item type</option>
+ [%- FOREACH itemtype IN available_itemtypes %]
+ <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
+ [%- END %]
+ </select>
+ </li>
+ [% END %]
[% END %]
[% IF ( reserve_in_future ) %]
</li>
[% UNLESS ( multi_hold ) %]
- <li>
- <label for="itemtype">Request specific item type:</label>
- <select name="itemtype" size="1" id="itemtype">
- <option value="">Any item type</option>
- [%- FOREACH itemtype IN available_itemtypes %]
- <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
- [%- END %]
- </select>
- </li>
+ [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
+ <li>
+ <label for="itemtype">Request specific item type:</label>
+ <select name="itemtype" size="1" id="itemtype">
+ <option value="">Any item type</option>
+ [%- FOREACH itemtype IN available_itemtypes %]
+ <option value="[% itemtype %]">[% ItemTypes.GetDescription( itemtype ) %]</option>
+ [%- END %]
+ </select>
+ </li>
+ [% END %]
[% END %]
[% IF ( OpacHoldNotes ) %]