Bug 14695 - Add new circulation rule

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jason M. Burds <JBurds@dubuque.lib.ia.us>
Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
This commit is contained in:
Kyle Hall 2015-12-29 19:13:51 +00:00
parent e53cf96542
commit 24740fb2fa
2 changed files with 6 additions and 0 deletions

View file

@ -137,6 +137,7 @@ elsif ($op eq 'add') {
$norenewalbefore = undef if $norenewalbefore =~ /^\s*$/;
my $auto_renew = $input->param('auto_renew') eq 'yes' ? 1 : 0;
my $reservesallowed = $input->param('reservesallowed');
my $holds_per_record = $input->param('holds_per_record');
my $onshelfholds = $input->param('onshelfholds') || 0;
$maxissueqty =~ s/\s//g;
$maxissueqty = undef if $maxissueqty !~ /^\d+/;
@ -172,6 +173,7 @@ elsif ($op eq 'add') {
norenewalbefore => $norenewalbefore,
auto_renew => $auto_renew,
reservesallowed => $reservesallowed,
holds_per_record => $holds_per_record,
issuelength => $issuelength,
lengthunit => $lengthunit,
hardduedate => $hardduedate,

View file

@ -177,6 +177,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
<th>No renewal before</th>
<th>Automatic renewal</th>
<th>Holds allowed (count)</th>
<th>Holds per record (count)</th>
<th>On shelf holds allowed</th>
<th>Item level holds</th>
<th>Rental discount (%)</th>
@ -255,6 +256,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
[% END %]
</td>
<td>[% rule.reservesallowed %]</td>
<td>[% rule.holds_per_record %]</td>
<td>
[% IF rule.onshelfholds == 1 %]
Yes
@ -329,6 +331,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
</select>
</td>
<td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
<td><input type="text" name="holds_per_record" id="holds_per_record" size="2" /></td>
<td>
<select name="onshelfholds" id="onshelfholds">
<option value="1">Yes</option>
@ -372,6 +375,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
<th>No renewal before</th>
<th>Automatic renewal</th>
<th>Holds allowed (count)</th>
<th>Holds per record (count)</th>
<th>On shelf holds allowed</th>
<th>Item level holds</th>
<th>Rental discount (%)</th>