$itemhash{$item}->{'subfields'},
$itemhash{$item}->{'field_values'},
$itemhash{$item}->{'ind_tag'},
- $itemhash{$item}->{'indicator'});
+ $itemhash{$item}->{'indicator'},'ITEM');
my $record=MARC::Record::new_from_xml($xml, 'UTF-8');
my ($biblionumber,$bibitemnum,$itemnumber) = AddItemFromMarc($record,$biblionumber);
}
if ( $count == 1 ) {
if (C4::Context->preference('AcqCreateItem') eq 'receiving') {
# prepare empty item form
- my $cell = PrepareItemrecordDisplay();
+ my $cell = PrepareItemrecordDisplay('','','','ACQ');
+ unless ($cell) {
+ $cell = PrepareItemrecordDisplay('','','','');
+ $template->param('NoACQframework' => 1);
+ }
my @itemloop;
push @itemloop,$cell;
<!-- TMPL_IF name="items" -->
<fieldset class="rows">
<legend>Item</legend>
+ <!-- TMPL_IF name="NoACQframework" -->
+ <p class="required">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</p>
+ <!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="items" -->
<div id="outeritemblock">