|
Lines 144-156
my $display_order = $input->param('item_group_display_order');
Link Here
|
| 144 |
our $frameworkcode = &GetFrameworkCode($biblionumber); |
144 |
our $frameworkcode = &GetFrameworkCode($biblionumber); |
| 145 |
|
145 |
|
| 146 |
# Defining which userflag is needing according to the framework currently used |
146 |
# Defining which userflag is needing according to the framework currently used |
| 147 |
my $userflags; |
147 |
my $fast_cataloging_mode; |
| 148 |
if ( defined $input->param('frameworkcode') ) { |
148 |
if ( defined $input->param('frameworkcode') ) { |
| 149 |
$userflags = ( $input->param('frameworkcode') eq 'FA' ) ? "fast_cataloging" : "edit_items"; |
149 |
$fast_cataloging_mode = ( $input->param('frameworkcode') eq 'FA' ) ? 1 : 0; |
| 150 |
} |
150 |
} |
| 151 |
|
151 |
|
| 152 |
if ( not defined $userflags ) { |
152 |
if ( not defined $fast_cataloging_mode ) { |
| 153 |
$userflags = ( $frameworkcode eq 'FA' ) ? "fast_cataloging" : "edit_items"; |
153 |
$fast_cataloging_mode = ( $frameworkcode eq 'FA' ) ? 1 : 0; |
| 154 |
} |
154 |
} |
| 155 |
|
155 |
|
| 156 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
156 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
|
Lines 158-164
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Link Here
|
| 158 |
template_name => "cataloguing/additem.tt", |
158 |
template_name => "cataloguing/additem.tt", |
| 159 |
query => $input, |
159 |
query => $input, |
| 160 |
type => "intranet", |
160 |
type => "intranet", |
| 161 |
flagsrequired => { editcatalogue => $userflags }, |
161 |
flagsrequired => |
|
|
162 |
{ editcatalogue => $fast_cataloging_mode ? [ 'fast_cataloging', 'edit_items' ] : 'edit_items' }, |
| 162 |
} |
163 |
} |
| 163 |
); |
164 |
); |
| 164 |
|
165 |
|
| 165 |
- |
|
|