Lines 133-138
elsif ($op eq 'delete-branch-cat') {
Link Here
|
133 |
max_holds => undef, |
133 |
max_holds => undef, |
134 |
patron_maxissueqty => undef, |
134 |
patron_maxissueqty => undef, |
135 |
patron_maxonsiteissueqty => undef, |
135 |
patron_maxonsiteissueqty => undef, |
|
|
136 |
renew_lost_allowed => undef, |
137 |
renew_lost_found => undef, |
136 |
} |
138 |
} |
137 |
} |
139 |
} |
138 |
); |
140 |
); |
Lines 156-161
elsif ($op eq 'delete-branch-cat') {
Link Here
|
156 |
max_holds => undef, |
158 |
max_holds => undef, |
157 |
patron_maxissueqty => undef, |
159 |
patron_maxissueqty => undef, |
158 |
patron_maxonsiteissueqty => undef, |
160 |
patron_maxonsiteissueqty => undef, |
|
|
161 |
renew_lost_allowed => undef, |
162 |
renew_lost_found => undef, |
159 |
} |
163 |
} |
160 |
} |
164 |
} |
161 |
); |
165 |
); |
Lines 169-174
elsif ($op eq 'delete-branch-cat') {
Link Here
|
169 |
max_holds => undef, |
173 |
max_holds => undef, |
170 |
patron_maxissueqty => undef, |
174 |
patron_maxissueqty => undef, |
171 |
patron_maxonsiteissueqty => undef, |
175 |
patron_maxonsiteissueqty => undef, |
|
|
176 |
renew_lost_allowed => undef, |
177 |
renew_lost_found => undef, |
172 |
} |
178 |
} |
173 |
} |
179 |
} |
174 |
); |
180 |
); |
Lines 192-197
elsif ($op eq 'delete-branch-cat') {
Link Here
|
192 |
max_holds => undef, |
198 |
max_holds => undef, |
193 |
patron_maxissueqty => undef, |
199 |
patron_maxissueqty => undef, |
194 |
patron_maxonsiteissueqty => undef, |
200 |
patron_maxonsiteissueqty => undef, |
|
|
201 |
renew_lost_allowed => undef, |
202 |
renew_lost_found => undef, |
195 |
} |
203 |
} |
196 |
} |
204 |
} |
197 |
); |
205 |
); |
Lines 365-370
elsif ($op eq "set-branch-defaults") {
Link Here
|
365 |
my $hold_fulfillment_policy = $input->param('hold_fulfillment_policy'); |
373 |
my $hold_fulfillment_policy = $input->param('hold_fulfillment_policy'); |
366 |
my $returnbranch = $input->param('returnbranch'); |
374 |
my $returnbranch = $input->param('returnbranch'); |
367 |
my $max_holds = strip_non_numeric( scalar $input->param('max_holds') ); |
375 |
my $max_holds = strip_non_numeric( scalar $input->param('max_holds') ); |
|
|
376 |
my $renew_lost_allowed = $input->param('renew_lost_allowed'); |
377 |
my $renew_lost_found = $input->param('renew_lost_found'); |
368 |
|
378 |
|
369 |
if ($branch eq "*") { |
379 |
if ($branch eq "*") { |
370 |
Koha::CirculationRules->set_rules( |
380 |
Koha::CirculationRules->set_rules( |
Lines 411-422
elsif ($op eq "set-branch-defaults") {
Link Here
|
411 |
} |
421 |
} |
412 |
); |
422 |
); |
413 |
} |
423 |
} |
414 |
Koha::CirculationRules->set_rule( |
424 |
Koha::CirculationRules->set_rules( |
415 |
{ |
425 |
{ |
416 |
branchcode => $branch, |
426 |
branchcode => $branch, |
417 |
categorycode => undef, |
427 |
categorycode => undef, |
418 |
rule_name => 'max_holds', |
428 |
rules => { |
419 |
rule_value => $max_holds, |
429 |
max_holds => $max_holds, |
|
|
430 |
renew_lost_allowed => $renew_lost_allowed, |
431 |
renew_lost_found => $renew_lost_found, |
432 |
}, |
420 |
} |
433 |
} |
421 |
); |
434 |
); |
422 |
} |
435 |
} |
Lines 427-432
elsif ($op eq "add-branch-cat") {
Link Here
|
427 |
$patron_maxonsiteissueqty = strip_non_numeric($patron_maxonsiteissueqty); |
440 |
$patron_maxonsiteissueqty = strip_non_numeric($patron_maxonsiteissueqty); |
428 |
my $max_holds = $input->param('max_holds'); |
441 |
my $max_holds = $input->param('max_holds'); |
429 |
$max_holds = strip_non_numeric($max_holds); |
442 |
$max_holds = strip_non_numeric($max_holds); |
|
|
443 |
my $renew_lost_allowed = $input->param('renew_lost_allowed'); |
444 |
my $renew_lost_found = $input->param('renew_lost_found'); |
430 |
|
445 |
|
431 |
if ($branch eq "*") { |
446 |
if ($branch eq "*") { |
432 |
if ($categorycode eq "*") { |
447 |
if ($categorycode eq "*") { |
Lines 438-443
elsif ($op eq "add-branch-cat") {
Link Here
|
438 |
max_holds => $max_holds, |
453 |
max_holds => $max_holds, |
439 |
patron_maxissueqty => $patron_maxissueqty, |
454 |
patron_maxissueqty => $patron_maxissueqty, |
440 |
patron_maxonsiteissueqty => $patron_maxonsiteissueqty, |
455 |
patron_maxonsiteissueqty => $patron_maxonsiteissueqty, |
|
|
456 |
renew_lost_allowed => $renew_lost_allowed, |
457 |
renew_lost_found => $renew_lost_found, |
441 |
} |
458 |
} |
442 |
} |
459 |
} |
443 |
); |
460 |
); |
Lines 450-455
elsif ($op eq "add-branch-cat") {
Link Here
|
450 |
max_holds => $max_holds, |
467 |
max_holds => $max_holds, |
451 |
patron_maxissueqty => $patron_maxissueqty, |
468 |
patron_maxissueqty => $patron_maxissueqty, |
452 |
patron_maxonsiteissueqty => $patron_maxonsiteissueqty, |
469 |
patron_maxonsiteissueqty => $patron_maxonsiteissueqty, |
|
|
470 |
renew_lost_allowed => $renew_lost_allowed, |
471 |
renew_lost_found => $renew_lost_found, |
453 |
} |
472 |
} |
454 |
} |
473 |
} |
455 |
); |
474 |
); |
Lines 463-468
elsif ($op eq "add-branch-cat") {
Link Here
|
463 |
max_holds => $max_holds, |
482 |
max_holds => $max_holds, |
464 |
patron_maxissueqty => $patron_maxissueqty, |
483 |
patron_maxissueqty => $patron_maxissueqty, |
465 |
patron_maxonsiteissueqty => $patron_maxonsiteissueqty, |
484 |
patron_maxonsiteissueqty => $patron_maxonsiteissueqty, |
|
|
485 |
renew_lost_allowed => $renew_lost_allowed, |
486 |
renew_lost_found => $renew_lost_found, |
466 |
} |
487 |
} |
467 |
} |
488 |
} |
468 |
); |
489 |
); |
Lines 475-480
elsif ($op eq "add-branch-cat") {
Link Here
|
475 |
max_holds => $max_holds, |
496 |
max_holds => $max_holds, |
476 |
patron_maxissueqty => $patron_maxissueqty, |
497 |
patron_maxissueqty => $patron_maxissueqty, |
477 |
patron_maxonsiteissueqty => $patron_maxonsiteissueqty, |
498 |
patron_maxonsiteissueqty => $patron_maxonsiteissueqty, |
|
|
499 |
renew_lost_allowed => $renew_lost_allowed, |
500 |
renew_lost_found => $renew_lost_found, |
478 |
} |
501 |
} |
479 |
} |
502 |
} |
480 |
); |
503 |
); |