[Koha-bugs] [Bug 35026] Refactor addorderiso2709.pl to use object methods

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 18 15:39:24 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35026

Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #157057|0                           |1
        is obsolete|                            |

--- Comment #11 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 159970
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159970&action=edit
Bug 35026: Refactor addorderiso2709.pl to use the MarcOrder class

This script uses the newly created MarcOrder class to refactor the script into
a cleaner controller function. This MarcOrder class will also be used in bug
34355 to automate the creation of order lines from marc records.

Test plan:
1) In system preferences, click Search and then select the Acquisitions option
from the left hand menu
2) Paste the following into MarcFieldsToOrder
price: 975$p
quantity: 975$q
budget_code: 975$h
3) Paste the following into MarcItemFieldsToOrder
homebranch: 975$a
holdingbranch: 975$b
itype: 975$y
nonpublic_note: 975$x
public_note: 975$z
loc: 975$c
ccode: 975$8
notforloan: 975$7
uri: 975$u
copyno: 975$n
quantity: 975$q
budget_code: 975$h
price: 975$p
replacementprice: 975$v
Now save the sysprefs
4) Navigate to acquisitions and go into a basket
5) Click Add to basket and select “From a new file”
6) Ensure that you have a marc file that contains mappings matching some of the
fields that you entered into the two sysprefs and select this file to upload
7) Import the file and when the job is complete click “Add staged files to
basket”
8) Click the checkbox next to an item and confirm that the data matches the
mappings from the file that you imported
9) Fill in the required fields and click “Save”
10) That basket should be correctly populated with an order matching the file
that you imported

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list