|
Lines 142-154
my $item_group = $input->param('item_group');
Link Here
|
| 142 |
my $item_group_description = $input->param('item_group_description'); |
142 |
my $item_group_description = $input->param('item_group_description'); |
| 143 |
my $display_order = $input->param('item_group_display_order'); |
143 |
my $display_order = $input->param('item_group_display_order'); |
| 144 |
|
144 |
|
| 145 |
our $frameworkcode = &GetFrameworkCode($biblionumber); |
145 |
our $frameworkcode = $biblio->frameworkcode; |
| 146 |
|
146 |
|
| 147 |
# Defining which userflag is needing according to the framework currently used |
147 |
# Defining which userflag is needing according to the framework currently used |
| 148 |
my $fast_cataloging_mode = |
148 |
my $fast_cataloging_mode = |
| 149 |
defined $input->param('frameworkcode') |
149 |
$frameworkcode eq '' |
| 150 |
? $input->param('frameworkcode') eq 'FA' |
150 |
? 0 |
| 151 |
: $frameworkcode eq 'FA'; |
151 |
: Koha::BiblioFrameworks->find($frameworkcode)->is_fast_add; |
| 152 |
|
152 |
|
| 153 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
153 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
| 154 |
{ |
154 |
{ |
|
Lines 186-192
$restrictededition = 0 if ( $restrictededition != 0 && C4::Context->IsSuperLibra
Link Here
|
| 186 |
# In case user has fast cataloging permission (and we're in fast cataloging), editing is not restricted |
186 |
# In case user has fast cataloging permission (and we're in fast cataloging), editing is not restricted |
| 187 |
$restrictededition = 0 |
187 |
$restrictededition = 0 |
| 188 |
if ( $restrictededition != 0 |
188 |
if ( $restrictededition != 0 |
| 189 |
&& $frameworkcode eq 'FA' |
189 |
&& $fast_cataloging_mode |
| 190 |
&& haspermission( $uid, { 'editcatalogue' => 'fast_cataloging' } ) ); |
190 |
&& haspermission( $uid, { 'editcatalogue' => 'fast_cataloging' } ) ); |
| 191 |
|
191 |
|
| 192 |
our $tagslib = &GetMarcStructure( 1, $frameworkcode ); |
192 |
our $tagslib = &GetMarcStructure( 1, $frameworkcode ); |
|
Lines 486-492
if ( $op eq "cud-additem" ) {
Link Here
|
| 486 |
undef($current_item); |
486 |
undef($current_item); |
| 487 |
} |
487 |
} |
| 488 |
} |
488 |
} |
| 489 |
if ( $frameworkcode eq 'FA' && $fa_circborrowernumber ) { |
489 |
if ( $fast_cataloging_mode && $fa_circborrowernumber ) { |
| 490 |
print $input->redirect( '/cgi-bin/koha/circ/circulation.pl?' |
490 |
print $input->redirect( '/cgi-bin/koha/circ/circulation.pl?' |
| 491 |
. 'borrowernumber=' |
491 |
. 'borrowernumber=' |
| 492 |
. $fa_circborrowernumber |
492 |
. $fa_circborrowernumber |
|
Lines 796-802
my $subfields =
Link Here
|
| 796 |
} |
796 |
} |
| 797 |
); |
797 |
); |
| 798 |
|
798 |
|
| 799 |
if ( $frameworkcode eq 'FA' ) { |
799 |
if ($fast_cataloging_mode) { |
| 800 |
my ($barcode_field) = grep { $_->{kohafield} eq 'items.barcode' } @$subfields; |
800 |
my ($barcode_field) = grep { $_->{kohafield} eq 'items.barcode' } @$subfields; |
| 801 |
$barcode_field->{marc_value}->{value} ||= $input->param('barcode'); |
801 |
$barcode_field->{marc_value}->{value} ||= $input->param('barcode'); |
| 802 |
} |
802 |
} |
|
Lines 826-832
$template->param(
Link Here
|
| 826 |
); |
826 |
); |
| 827 |
$template->{'VARS'}->{'searchid'} = $searchid; |
827 |
$template->{'VARS'}->{'searchid'} = $searchid; |
| 828 |
|
828 |
|
| 829 |
if ( $frameworkcode eq 'FA' ) { |
829 |
if ($fast_cataloging_mode) { |
| 830 |
|
830 |
|
| 831 |
# fast cataloguing datas |
831 |
# fast cataloguing datas |
| 832 |
$template->param( |
832 |
$template->param( |