[Koha-bugs] [Bug 34788] Add the ability to import KBART files to ERM

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 25 11:58:16 CET 2024


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

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

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

--- Comment #9 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 161391
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161391&action=edit
Bug 34788: Allow for import of CSV files

This commit allows CSV files to be imported alongside TSV files.
It also adds some performance improvements relating to the max_allowed_packet
and the matching of titles, as well as some small bugfixes and unit test
changes

Test plan:
1) Enable the ERM module
2) Navigate to E-resource management > eHoldings > Local > Packages
3) Create at least one package
4) Navigate to E-resource management > eHoldings > Local > Titles
5) There should be a button for "Import from KBART file"
6) Click this button
7) Select the package that you created from the dropdown and then choose your
KBART file using the "Choose file" button
8) Click Submit
9) If your file is a valid file, a background job will be queued, if not then a
warning will display showing what is incorrect in your file
10) To test the file format warning, edit your file and add a random column
heading into the file e.g. test_column. When you upload it, the warning should
show that an invalid column "test_column" has been detected
11) Click on the background job. (If you have uploaded a very large file, the
system will chunk the file into smaller pieces and create multiple background
jobs)
12) It should display a progress bar followed by a report and any error
messages
13) Navigate to E-resource management > eHoldings > Local > Titles and you
should see your new titles.
14) Run the unit test: prove
t/db_dependent/Koha/BackgroundJob/ImportKBARTFile.t

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


More information about the Koha-bugs mailing list