Koha/tools
Dobrica Pavlinusic 622967b323 Bug 7961 - Local cover images should support CSV link files
Corrent code doesn't have support for filenames which contain spaces
or commans which breaks CSV files saved from spreadsheet similar to:

  12345, "conver image, with spaces.jpg"

This patch tweaks file parsing a bit. We are always splitting line to
only two values (to support commas as part of filename) and removing
spaces only on beginning and end of filename (to cover space after
comma in CSV example above while preserving spaces in filename).

With this change only invalid character in picture filename left
are quotes (") which are commonly used to quote strings with spaces.

Covers added will be logged in action_log, using CATALOGUING / MODIFY
action (which is shown as "Catalog" in tools > Log viewer)

Test scenario:

1. collect pictures with spaces and commas in name
2. dump file list into CSV file and add biblio number as first column
   (name of file is idlink.txt or datalink.txt)
3. create zip with CSV file and pictures
4. verify that all pictures got uploaded and linked to biblio records
5. verify that modification log includes cover image name

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-06-20 09:42:25 +02:00
..
csv-profiles MT2116: Addons to the CSV export 2010-02-17 07:51:33 -05:00
quotes Bug 7977: Fixing a bug which results in quote fields being incorrectly offset when saving uploaded quotes 2012-05-24 14:15:05 +02:00
background-job-progress.pl Bug 5449: JSON malformed in Koha - Blocker with jQuery 1.4.x 2011-03-12 08:53:41 +13:00
batchMod.pl Bug 7739 - Batch edit items of a title 2012-05-11 12:16:22 +02:00
cleanborrowers.pl Bug 7310: Improving list permissions: Deleting patron 2012-03-21 16:47:03 +01:00
copy-holidays.pl Bug 7477: Copy holidays from one branch to another 2012-03-19 18:10:44 +01:00
csv-profiles.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
exceptionHolidays.pl Bug 2505: Enabled warnings in tools-home.pl, holidays.pl, exceptionHolidays.pl, and newHolidays.pl 2009-09-12 08:38:35 -04:00
export.pl Bug 7505 Superlibrarian can't export all biblios when IndependantBranches is enabled 2012-02-10 15:56:15 +01:00
holidays.pl Bug 7833 - unique holiday link broken 2012-04-19 10:54:00 +02:00
import_borrowers.pl Bug 5373 - allow 'cardnumber' to appear on the patron import field list 2012-02-21 17:04:18 +01:00
inventory.pl Bug 6453 Corrects the barcode comparisons in inventory.pl 2011-06-20 11:59:50 +12:00
koha-news.pl Fix for Bug 6306 - It is not possible edit news 2011-05-29 16:05:34 +12:00
letter.pl Bug 7779 - tools/letter.pl: scope vars for plack 2012-03-22 18:17:28 +01:00
manage-marc-import.pl bug_7613: OCLC Connexion gateway 2012-04-06 17:26:20 +02:00
modborrowers.pl Bug 5742: Followup: sort* fields can to be filled with an input text 2012-05-15 17:45:12 +02:00
newHolidays.pl Bug 6663: Features for holidays.pl with datepicker 2011-12-13 15:07:05 +01:00
overduerules.pl Bug #6064 Improvement of default value usage in overdue 2011-04-07 21:33:40 +12:00
pdfViewer.pl Convert to UTF-8. 2010-05-06 17:58:54 -04:00
picture-upload.pl Bug 5453 Move declarations out of conditionals 2011-07-15 15:50:23 +12:00
quotes-upload.pl Bug 7977: QOTD uploader to enable uploading csv files containing quotes 2012-05-24 14:14:09 +02:00
quotes.pl Bug 7977: Quote-of-the-day (QOTD) Feature for OPAC 2012-05-24 14:14:05 +02:00
scheduler.pl Bug 2505 - Add commented use warnings where missing in the tools/ directory 2010-04-21 20:26:38 +12:00
stage-marc-import.pl Merge remote-tracking branch 'kc/new/bug_5449' into kcmaster 2011-05-09 08:25:36 +12:00
tools-home.pl Bug 7259 - Show a count of items pending approval on staff client home and tools pages 2011-12-08 12:04:28 +01:00
upload-cover-image.pl Bug 7961 - Local cover images should support CSV link files 2012-06-20 09:42:25 +02:00
upload-file-progress.pl Bug 5449: JSON malformed in Koha - Blocker with jQuery 1.4.x 2011-03-12 08:53:41 +13:00
upload-file.pl Bug 7775 - tools/upload-file.pl: scoping for plack 2012-03-26 18:17:45 +02:00
viewlog.pl Replace itemnumber by barcode in links of patron modification log 2012-05-11 11:24:57 +02:00