Lines 105-110
if ( $op eq 'add_form' ) {
Link Here
|
105 |
my $checkinmsgtype = $input->param('checkinmsgtype'); |
105 |
my $checkinmsgtype = $input->param('checkinmsgtype'); |
106 |
my $hideinopac = $input->param('hideinopac') // 0; |
106 |
my $hideinopac = $input->param('hideinopac') // 0; |
107 |
my $searchcategory = $input->param('searchcategory'); |
107 |
my $searchcategory = $input->param('searchcategory'); |
|
|
108 |
my $can_suspend_hold = $input->param('can_suspend_hold'); |
109 |
my $can_cancel_hold = $input->param('can_cancel_hold'); |
108 |
|
110 |
|
109 |
if ( $itemtype and $is_a_modif ) { # it's a modification |
111 |
if ( $itemtype and $is_a_modif ) { # it's a modification |
110 |
$itemtype->description($description); |
112 |
$itemtype->description($description); |
Lines 121-126
if ( $op eq 'add_form' ) {
Link Here
|
121 |
$itemtype->sip_media_type($sip_media_type); |
123 |
$itemtype->sip_media_type($sip_media_type); |
122 |
$itemtype->hideinopac($hideinopac); |
124 |
$itemtype->hideinopac($hideinopac); |
123 |
$itemtype->searchcategory($searchcategory); |
125 |
$itemtype->searchcategory($searchcategory); |
|
|
126 |
$itemtype->can_suspend_hold($can_suspend_hold); |
127 |
$itemtype->can_cancel_hold($can_cancel_hold); |
124 |
|
128 |
|
125 |
eval { |
129 |
eval { |
126 |
$itemtype->store; |
130 |
$itemtype->store; |
Lines 150-155
if ( $op eq 'add_form' ) {
Link Here
|
150 |
sip_media_type => $sip_media_type, |
154 |
sip_media_type => $sip_media_type, |
151 |
hideinopac => $hideinopac, |
155 |
hideinopac => $hideinopac, |
152 |
searchcategory => $searchcategory, |
156 |
searchcategory => $searchcategory, |
|
|
157 |
can_suspend_hold => $can_suspend_hold, |
158 |
can_cancel_hold => $can_cancel_hold, |
153 |
} |
159 |
} |
154 |
); |
160 |
); |
155 |
eval { |
161 |
eval { |