Lines 635-641
if ($op eq "additem") {
Link Here
|
635 |
# check that there is no issue on this item before deletion. |
635 |
# check that there is no issue on this item before deletion. |
636 |
$error = &DelItemCheck( $biblionumber,$itemnumber); |
636 |
$error = &DelItemCheck( $biblionumber,$itemnumber); |
637 |
if($error == 1){ |
637 |
if($error == 1){ |
638 |
print $input->redirect("additem.pl?biblionumber=$biblionumber&frameworkcode=$frameworkcode&searchid=$searchid"); |
638 |
print $input->redirect("additem.pl?biblionumber=$biblionumber&frameworkcode=$frameworkcode&searchid=$searchid&last_action=delitem"); |
639 |
}else{ |
639 |
}else{ |
640 |
push @errors,$error; |
640 |
push @errors,$error; |
641 |
$nextop="additem"; |
641 |
$nextop="additem"; |
Lines 926-931
$template->param(
Link Here
|
926 |
barcode => GetBarcodeFromItemnumber($itemnumber), |
926 |
barcode => GetBarcodeFromItemnumber($itemnumber), |
927 |
itemtagfield => $itemtagfield, |
927 |
itemtagfield => $itemtagfield, |
928 |
itemtagsubfield => $itemtagsubfield, |
928 |
itemtagsubfield => $itemtagsubfield, |
|
|
929 |
# last_action determines focus on form |
930 |
last_action => $op // $input->param('last_action') // '', |
929 |
op => $nextop, |
931 |
op => $nextop, |
930 |
opisadd => ($nextop eq "saveitem") ? 0 : 1, |
932 |
opisadd => ($nextop eq "saveitem") ? 0 : 1, |
931 |
popup => scalar $input->param('popup') ? 1: 0, |
933 |
popup => scalar $input->param('popup') ? 1: 0, |