Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Nick Clemens 7d31f77ae6
Bug 32166: Use import record id for retrieving correct inputs
When importing from a staged file we retrieve the records form the DB, skip any that are not selected,
and process the rest.

When we skip some, we still raise our record count, and use this to retrieve the inputs.

When building the page, we don't increment for skipped reocrds, so there can be a mismatch, i.e.
Record #1 on the page to add records may be the 3rd record in the import file

Rather than using a counting system, let us use the import record id directly

To test:
 0 - Set system preferences:

MarcFieldsToOrder:
price: 949$g
quantity: 949$k
budget_code: 949$l
discount: 949$m
sort1: 949$n
sort2: 949$q

MarcItemFieldsToOrder:
homebranch: 949$a
holdingbranch: 949$b
itype: 949$y
nonpublic_note: 949$x
public_note: 949$z
loc: 949$c
ccode: 949$8
notforloan: 949$7
uri: 949$u
copyno: 949$t
price: 949$g
replacementprice: 949$v
itemcallnumber: 949$o
quantity: 949$k
budget_code: 949$l

 1 - Stage attached sample file, Format:MARCXML, Record matching:Koha biblio 999$c
 2 - Add to a basket from the staged file
 3 - Select 1st record to basket and save
 4 - Record is added with the fields above as expected
 5 - Add to basket again, select 2nd record
 6 - Record is added with price from 020a, ignoring incoming fields
 7 - Repeat with 3rd, same problem
 8 - Apply patch
 9 - Stage file and repeat step 3
10 - Confirm added with correct values
11 - Add 2nd record and save, values correct
12 - Add 3rd record, values correct

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-11-16 14:29:01 -03:00
..
acqui Bug 32166: Use import record id for retrieving correct inputs 2022-11-16 14:29:01 -03:00
admin Bug 32147: Capitalization: E-Resource management 2022-11-16 08:46:20 -03:00
authorities Bug 32099: Consistent classes for primary buttons: Assorted templates 2022-11-14 09:36:18 -03:00
basket Bug 32071: Consistent classes for primary buttons: Catalog 2022-11-10 09:32:38 -03:00
batch
catalogue Bug 32197: Add page-section to catalog's stock rotation page 2022-11-16 09:27:08 -03:00
cataloguing Bug 32188: Only show template controls above item form if templates have been defined 2022-11-14 15:07:05 -03:00
circ Bug 32207: Add page-section to some circulation pages 2022-11-16 09:31:58 -03:00
clubs Bug 32098: Consistent classes for primary buttons: Clubs and rotating collections 2022-11-14 09:34:39 -03:00
course_reserves Bug 32155: Fix alignment of course details page 2022-11-16 09:34:29 -03:00
erm Bug 32147: Capitalization: E-Resource management 2022-11-16 08:46:20 -03:00
errors Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
ill Bug 32099: Consistent classes for primary buttons: Assorted templates 2022-11-14 09:36:18 -03:00
installer
labels Bug 32085: Consistent classes for primary buttons: Labels 2022-11-04 19:16:18 -03:00
mana
members Bug 32182: Replace static tabs markup with Bootstrap 2022-11-16 09:35:14 -03:00
offline_circ Bug 32073: Consistent classes for primary buttons: Circulation 2022-11-10 14:47:02 -03:00
onboarding Bug 30718: (QA follow-up) KohaDates filter on inputs 2022-08-19 08:26:40 -03:00
patron_lists Bug 32099: Consistent classes for primary buttons: Assorted templates 2022-11-14 09:36:18 -03:00
patroncards Bug 32088: Consistent classes for primary buttons: Patron card creator 2022-11-09 13:55:00 -03:00
plugins Bug 32099: Consistent classes for primary buttons: Assorted templates 2022-11-14 09:36:18 -03:00
pos Bug 32099: Consistent classes for primary buttons: Assorted templates 2022-11-14 09:36:18 -03:00
recalls Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
reports Bug 32091: Consistent classes for primary buttons: Reports 2022-11-10 10:27:48 -03:00
reserve Bug 32099: Consistent classes for primary buttons: Assorted templates 2022-11-14 09:36:18 -03:00
reviews Bug 32182: Replace static tabs markup with Bootstrap 2022-11-16 09:35:14 -03:00
rotating_collections Bug 32098: Consistent classes for primary buttons: Clubs and rotating collections 2022-11-14 09:34:39 -03:00
serials Bug 32094: Consistent classes for primary buttons: Serials 2022-11-14 09:30:49 -03:00
services
suggestion Bug 32099: Consistent classes for primary buttons: Assorted templates 2022-11-14 09:36:18 -03:00
tags Bug 32099: Consistent classes for primary buttons: Assorted templates 2022-11-14 09:36:18 -03:00
test
tools Bug 32112: Move 'Delete selected items' to its own line 2022-11-16 09:33:51 -03:00
virtualshelves Bug 32097: Consistent classes for primary buttons: Lists 2022-11-10 10:27:17 -03:00
about.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
auth.tt Bug 32099: Consistent classes for primary buttons: Assorted templates 2022-11-14 09:36:18 -03:00
intranet-main.tt Bug 32147: Capitalization: E-Resource management 2022-11-16 08:46:20 -03:00