From 355f2814453bd60fea61103b2effe8cabe0e6c80 Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Thu, 20 Oct 2016 11:47:27 +0200 Subject: [PATCH] Bug 15503 [Followup] - Add replacementprice and itemcallnumber --- acqui/addorderiso2709.pl | 10 +++++++++- .../intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt | 2 ++ .../prog/en/modules/admin/preferences/acquisitions.pref | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl index d645d4f..dcc89ef 100755 --- a/acqui/addorderiso2709.pl +++ b/acqui/addorderiso2709.pl @@ -200,6 +200,8 @@ if ($op eq ""){ my @copynos = $input->multi_param('copyno_' . $biblio_count); my @budget_codes = $input->multi_param('budget_code_' . $biblio_count); my @itemprices = $input->multi_param('itemprice_' . $biblio_count); + my @replacementprices = $input->multi_param('replacementprice_' . $biblio_count); + my @itemcallnumbers = $input->multi_param('itemcallnumber_' . $biblio_count); my $itemcreation = 0; for (my $i = 0; $i < $count; $i++) { $itemcreation = 1; @@ -214,6 +216,8 @@ if ($op eq ""){ uri => $uris[$i], copynumber => $copynos[$i], price => $itemprices[$i], + replacementprice => $replacementprices[$i], + itemcallnumber => $itemcallnumbers[$i], }, $biblionumber); } if ($itemcreation == 1) { @@ -495,7 +499,7 @@ sub import_biblios_list { # Items my @itemlist = (); my $all_items_quantity = 0; - my $alliteminfos = get_infos_syspref_on_item('MarcItemFieldsToOrder', $marcrecord, ['homebranch', 'holdingbranch', 'itype', 'nonpublic_note', 'public_note', 'loc', 'ccode', 'notforloan', 'uri', 'copyno', 'price', 'quantity', 'budget_code']); + my $alliteminfos = get_infos_syspref_on_item('MarcItemFieldsToOrder', $marcrecord, ['homebranch', 'holdingbranch', 'itype', 'nonpublic_note', 'public_note', 'loc', 'ccode', 'notforloan', 'uri', 'copyno', 'price', 'replacementprice', 'itemcallnumber', 'quantity', 'budget_code']); if ($alliteminfos != -1) { foreach my $iteminfos (@$alliteminfos) { my $item_homebranch = $iteminfos->{homebranch}; @@ -511,6 +515,8 @@ sub import_biblios_list { my $item_quantity = $iteminfos->{quantity} || 1; my $item_budget_code = $iteminfos->{budget_code}; my $item_price = $iteminfos->{price}; + my $item_replacement_price = $iteminfos->{replacementprice}; + my $item_callnumber = $iteminfos->{itemcallnumber}; for (my $i = 0; $i < $item_quantity; $i++) { @@ -530,6 +536,8 @@ sub import_biblios_list { 'quantity' => $item_quantity, 'budget_code' => $item_budget_code || $budget_code, 'itemprice' => $item_price || $price, + 'replacementprice' => $item_replacement_price, + 'itemcallnumber' => $item_callnumber, ); $all_items_quantity++; push @itemlist, \%itemrecord; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 20565c2..39e54e6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -355,6 +355,8 @@
  • +
  • +
  • [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref index 8cb0373..4c32b9e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref @@ -65,7 +65,7 @@ Acquisitions: - Set the mapping values for new item records created from a MARC record in a staged file. - pref: MarcItemFieldsToOrder type: textarea - - "You can use the following fields: homebranch, holdingbranch, itype, nonpublic_note, public_note, loc, ccode, notforloan, uri, copyno and price. Special fields: quantity and budget_code" + - "You can use the following fields: homebranch, holdingbranch, itype, nonpublic_note, public_note, loc, ccode, notforloan, uri, copyno, price, replacementprice and itemcallnumber. Special fields: quantity and budget_code" - "
    For example:
    holdingbranch: 975$b
    itype: 975$9|975$z" - - pref: ClaimsBccCopy -- 1.7.10.4