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*$/; $norenewalbefore = undef if $norenewalbefore =~ /^\s*$/;
my $auto_renew = $input->param('auto_renew') eq 'yes' ? 1 : 0; my $auto_renew = $input->param('auto_renew') eq 'yes' ? 1 : 0;
my $reservesallowed = $input->param('reservesallowed'); my $reservesallowed = $input->param('reservesallowed');
my $holds_per_record = $input->param('holds_per_record');
my $onshelfholds = $input->param('onshelfholds') || 0; my $onshelfholds = $input->param('onshelfholds') || 0;
$maxissueqty =~ s/\s//g; $maxissueqty =~ s/\s//g;
$maxissueqty = undef if $maxissueqty !~ /^\d+/; $maxissueqty = undef if $maxissueqty !~ /^\d+/;
@ -172,6 +173,7 @@ elsif ($op eq 'add') {
norenewalbefore => $norenewalbefore, norenewalbefore => $norenewalbefore,
auto_renew => $auto_renew, auto_renew => $auto_renew,
reservesallowed => $reservesallowed, reservesallowed => $reservesallowed,
holds_per_record => $holds_per_record,
issuelength => $issuelength, issuelength => $issuelength,
lengthunit => $lengthunit, lengthunit => $lengthunit,
hardduedate => $hardduedate, 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>No renewal before</th>
<th>Automatic renewal</th> <th>Automatic renewal</th>
<th>Holds allowed (count)</th> <th>Holds allowed (count)</th>
<th>Holds per record (count)</th>
<th>On shelf holds allowed</th> <th>On shelf holds allowed</th>
<th>Item level holds</th> <th>Item level holds</th>
<th>Rental discount (%)</th> <th>Rental discount (%)</th>
@ -255,6 +256,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
[% END %] [% END %]
</td> </td>
<td>[% rule.reservesallowed %]</td> <td>[% rule.reservesallowed %]</td>
<td>[% rule.holds_per_record %]</td>
<td> <td>
[% IF rule.onshelfholds == 1 %] [% IF rule.onshelfholds == 1 %]
Yes Yes
@ -329,6 +331,7 @@ for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
</select> </select>
</td> </td>
<td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></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> <td>
<select name="onshelfholds" id="onshelfholds"> <select name="onshelfholds" id="onshelfholds">
<option value="1">Yes</option> <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>No renewal before</th>
<th>Automatic renewal</th> <th>Automatic renewal</th>
<th>Holds allowed (count)</th> <th>Holds allowed (count)</th>
<th>Holds per record (count)</th>
<th>On shelf holds allowed</th> <th>On shelf holds allowed</th>
<th>Item level holds</th> <th>Item level holds</th>
<th>Rental discount (%)</th> <th>Rental discount (%)</th>