Koha/koha-tmpl/intranet-tmpl/prog/en
Kyle M Hall 54e1ae7ed3 Bug 12025 - Inventory tool fails with "Could not reads headers", or sometimes a timeout
For libraries with large numbers of records, using a file of barcodes in
the inventory tool without selecting filters to limit the catalog
selection to compare against can result in an error of "could not read
headers" or a page timeout.

When you upload a file of barcodes, and do not specify any filters on
the rest of the form, it effectively runs GetItemsForInventory() such
that *every* item in the database is returned.  On a large enough
database, this takes so long that the script times out.

The current documentation in the manual implies that if you upload a
file of barcodes, the *only* thing it does is set the date-last-seen
field.  This is not entirely true; it also tries to compare the list of
scanned items to what is expected to be seen in the list of items.

The work-around for libraries with a large number of item records is to,
when uploading a file of barcodes, to also set the filters (e.g.,
library, shelving location, call number range, etc.) to
specify the range of items that the file of barcodes corresponds to.

This patch adds a warning when a librarian attempts to upload a
barcode list file for comparison without selecting any filters
to limit the catalog selection.

Test Plan:
1) Apply this patch
2) Browse to the inventory tool
3) Click the "Choose File" button, select a file
4) Click the "Submit" button
5) You should see a warning message
6) Click "Cancel"
7) Select one of more filters
8) Click the "Submit" button
9) This time the script should proceed without triggering the warning.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Work as described following test plan.
No errors

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-06-05 10:09:42 -03:00
..
css Bug 11117: Fix text mixup in facets where RTL text + facet count showed 2014-05-05 00:44:31 +00:00
data Bug 11695 - Fixed typo in marc21_field_008.xml 2014-03-11 14:21:23 +00:00
includes Bug 11014 - Slip Print Problem in Chrome 2014-05-30 16:05:23 -03:00
js Bug 7180: (follow-up) fix various issues 2014-05-04 19:56:59 +00:00
lib Bug 12195 - Remove duplicated plugin jquery.dataTables.min.js 2014-05-08 16:18:05 +00:00
modules Bug 12025 - Inventory tool fails with "Could not reads headers", or sometimes a timeout 2014-06-05 10:09:42 -03:00
xslt Bug 9075: Rename "type" to "material type" on staff XSLT detail and results 2014-04-08 23:33:15 +00:00
columns.def Bug 9216: (follow-up) Make description in columns.def more specific 2014-04-19 13:35:31 +00:00