@@ -, +, @@ --- acqui/addorder.pl | 1 + acqui/neworderempty.pl | 4 ++++ .../prog/en/modules/acqui/neworderempty.tmpl | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+), 0 deletions(-) --- a/acqui/addorder.pl +++ a/acqui/addorder.pl @@ -204,6 +204,7 @@ if ( $orderinfo->{quantity} ne '0' ) { "biblioitems.publishercode" => $$orderinfo{publishercode} ? $$orderinfo{publishercode} : "", "biblioitems.publicationyear" => $$orderinfo{publicationyear} ? $$orderinfo{publicationyear}: "", "biblio.copyrightdate" => $$orderinfo{publicationyear} ? $$orderinfo{publicationyear}: "", + "biblioitems.itemtype" => $$orderinfo{itemtype} ? $$orderinfo{itemtype} : "", }); # create the record in catalogue, with framework '' --- a/acqui/neworderempty.pl +++ a/acqui/neworderempty.pl @@ -324,6 +324,9 @@ if (C4::Context->preference('AcqCreateItem') eq 'ordering' && !$ordernumber) { $template->param(items => \@itemloop); } +# Get the item types list, but only if item_level_itype is YES. Otherwise, it will be in the item, no need to display it in the biblio +my @itemtypes = C4::ItemType->all unless C4::Context->preference('item-level_itypes'); + # fill template $template->param( @@ -368,6 +371,7 @@ $template->param( budget_loop => $budget_loop, isbn => $data->{'isbn'}, seriestitle => $data->{'seriestitle'}, + itemtypeloop => \@itemtypes, quantity => $data->{'quantity'}, quantityrec => $data->{'quantity'}, rrp => $data->{'rrp'}, --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl @@ -247,6 +247,24 @@ $(document).ready(function() " /> + + + +
  • + Item type: + +
  • + + + + --