Bug 7659

Summary: "Import all" for a staged file doesn't check for duplicates
Product: Koha Reporter: Adrien SAURAT <adrien.saurat>
Component: AcquisitionsAssignee: Adrien SAURAT <adrien.saurat>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 - low CC: koha
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: 1 - New basket
2 - Add order to basket
3 - Staged file
4 - Select order
5 - Duplicate warning

Description Adrien SAURAT 2012-03-07 11:16:48 UTC
[MT9163]
Problem on the following page:
Home › Acquisitions › *vendor* › Basket X › Add orders from iso2709 file

When adding orders from a staged file, if we add juste one biblio, koha will check if duplicates are present. If a duplicate is found, it will ask if we want to:
- use the existing biblio,
- create a new record,
- cancel the operation.

But if we try to "import all" biblios from the staged file, everything will be processed without any warning, even if duplicates are present.

Test plan :
1) Go to the vendor list, create a basket for one of them.

2) Add Order To Basket : From a staged file

3) Select a file containing notices already in the database (you may have to add them from the file now it that's a new file, import them and change the items state for them to be available).

4) Click on "Add order" for one of the existing biblios. You will see a page giving a duplicate warning.

5) Get back to the staged file page, and now click on the Save button at the bottom of the page. The orders are added without duplicate warnings.
Comment 1 Adrien SAURAT 2012-03-07 11:21:30 UTC
Created attachment 8049 [details]
1 - New basket
Comment 2 Adrien SAURAT 2012-03-07 11:21:52 UTC
Created attachment 8050 [details]
2 - Add order to basket
Comment 3 Adrien SAURAT 2012-03-07 11:22:14 UTC
Created attachment 8051 [details]
3 - Staged file
Comment 4 Adrien SAURAT 2012-03-07 11:22:35 UTC
Created attachment 8052 [details]
4 - Select order
Comment 5 Adrien SAURAT 2012-03-07 11:23:02 UTC
Created attachment 8053 [details]
5 - Duplicate warning
Comment 6 Adrien SAURAT 2012-03-07 11:26:59 UTC
I think the best solution for this staged file import problem would be to add a choice in the "Import All" section (screenshot number 4).

Having a radiobutton or a selectbox like:

 When a duplicate is found:
 o Use the existing biblio
 o Create a new record
 o Cancel the operation


=================
See also bug 7132.
Comment 7 Koha Team University Lyon 3 2014-02-13 09:44:35 UTC

*** This bug has been marked as a duplicate of bug 6386 ***