projects
/
koha_gimpoz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 8255: allow local cover images to be cached
[koha_gimpoz]
/
acqui
/
orderreceive.pl
diff --git
a/acqui/orderreceive.pl
b/acqui/orderreceive.pl
index
659c103
..
2b59698
100755
(executable)
--- a/
acqui/orderreceive.pl
+++ b/
acqui/orderreceive.pl
@@
-117,16
+117,15
@@
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
# prepare the form for receiving
if ( $count == 1 ) {
if (C4::Context->preference('AcqCreateItem') eq 'receiving') {
# prepare the form for receiving
if ( $count == 1 ) {
if (C4::Context->preference('AcqCreateItem') eq 'receiving') {
- # prepare empty item form
- my $cell = PrepareItemrecordDisplay('','','','ACQ');
- unless ($cell) {
- $cell = PrepareItemrecordDisplay('','','','');
+ # Check if ACQ framework exists
+ my $marc = GetMarcStructure(1, 'ACQ');
+ unless($marc) {
$template->param('NoACQframework' => 1);
}
$template->param('NoACQframework' => 1);
}
- my @itemloop;
- push @itemloop,$cell;
-
-
$template->param(items => \@itemloop
);
+ $template->param(
+ AcqCreateItemReceiving => 1,
+ UniqueItemFields => C4::Context->preference('UniqueItemFields'),
+ );
}
if ( @$results[0]->{'quantityreceived'} == 0 ) {
}
if ( @$results[0]->{'quantityreceived'} == 0 ) {