|
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 $rentalcharge_daily_calendar = $input->param('rentalcharge_daily_calendar') // 0; |
| 109 |
my $rentalcharge_hourly_calendar = $input->param('rentalcharge_hourly_calendar') // 0; |
| 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->rentalcharge_daily_calendar($rentalcharge_daily_calendar); |
| 127 |
$itemtype->rentalcharge_hourly_calendar($rentalcharge_hourly_calendar); |
| 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 |
rentalcharge_daily_calendar => $rentalcharge_daily_calendar, |
| 158 |
rentalcharge_hourly_calendar => $rentalcharge_hourly_calendar, |
| 153 |
} |
159 |
} |
| 154 |
); |
160 |
); |
| 155 |
eval { |
161 |
eval { |