Comment 2 for bug 1819367

Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

Branch at user/stompro/lp1819367_item_status_csv_paste

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/stompro/lp1819367_item_status_csv_paste

This branch adds the ability to paste in a string of barcodes seperated by commas to the item status scan box.

It checks to see if splitting the barcode by commas results in multiple barcodes, and passed the barcodes to the file upload handler if multiple barcodes seem to be there.

If not, then it continues with the original barcode.

So pasting a string like
33500012542726, 35500004468045, 35500005727696 , 35500006028581, , 35500004587208,33500013019179,35500003474093,

Is equivalent to uploading a file with the contents of.
33500012542726
35500004468045
35500005727696
35500006028581
35500004587208
33500013019179
35500003474093

A barcode with only a trailing comma will fail, since if there is only one barcode the original value is used.

So "35500004468045," will fail.

That could be addressed, but I just don't see it as a big issue. If you only have one barcode, just paste the barcode.

Josh