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
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
batchMod.pl Bug 7739 - Batch edit items of a title 2012-05-11 12:16:22 +02:00
cleanborrowers.pl
copy-holidays.pl
csv-profiles.pl
exceptionHolidays.pl
export.pl
holidays.pl Bug 7833 - unique holiday link broken 2012-04-19 10:54:00 +02:00
import_borrowers.pl
inventory.pl
koha-news.pl
letter.pl
manage-marc-import.pl
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
overduerules.pl
pdfViewer.pl
picture-upload.pl
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
stage-marc-import.pl
tools-home.pl
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
upload-file.pl
viewlog.pl Replace itemnumber by barcode in links of patron modification log 2012-05-11 11:24:57 +02:00