Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Owen Leonard 3de4031de1 Bug 25025: Drag-and-drop cover image upload
This patch updates the Upload local cover image page so that the user
has the option of dragging a file from a folder on their computer
instead of using a file upload button.

The patch also adds a preview of uploaded single images and display of
existing images on the record you're adding to.

To test, apply the patch and make sure the LocalCoverImages system
preference is enabled.

- Go to Tools -> Upload local cover image and test the following
  processes:

- Upload single cover image, specifying a biblionumber
  - Test dragging an image from a file on your computer
  - Test clicking the "Drop files here or click..." link.
    - You should see a preview of the image file on the screen, with
      information about the file: file name, image type, file size.
      - Click "Process images"
        - with "Existing covers will be replaced" checked
        - with "Existing covers will be replaced" unchecked

  When the upload process completes you should see information about the
  title in the page heading and a thumbnail of the cover in the sidebar.
  - Test that the image can be deleted from this page. You should be
    redirected back to this page with the same title still selected.

- Upload a zip file of images
  - Test dragging an image from a file on your computer
  - Test clicking the "Drop files here or click..." link.
    - A zip file can't be previewed onscreen but you should see the same
      file information and a Font Awesome "zip file" icon.
      - Click "Process images"

From the bibliographic detail page, click the "Images" tab, and click
"Upload." With this workflow the field asking for a biblionumber should
not appear.

From the bibliographic detail page, in the holdings table, choose Edit
-> Upload image. This process should be the same as above but should
provide item information on the screen. Confirm that images are uploaded
correctly to the specific item.

Test with AllowMultipleCovers enabled and disabled to confirm that the
"Existing covers will be replaced" checkbox is enabled only when
multiple covers are possible.

Signed-off-by: Solène Desvaux <solene.desvaux@biblibre.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-03-01 22:47:46 -10:00
..
access_files.tt
additional-contents.tt Bug 29515: Make title for HTML customizations optional 2022-02-14 21:41:38 -10:00
automatic_item_modification_by_age.tt
batch_delete_records.tt Bug 9565: (follow-up) Adapt batch record deletion tool 2021-12-10 21:15:30 -10:00
batch_extend_due_dates.tt Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
batch_record_modification.tt Bug 14957: Fix record preview 2021-10-26 16:46:03 +02:00
batchMod-del.tt Bug 28445: Use the task queue for the batch delete and update items tool 2021-10-18 11:28:40 +02:00
batchMod-edit.tt Bug 29567: (bug 28445 follow-up) Restore cataloguing plugins 2021-11-25 09:48:42 +01:00
batchMod.tt
cleanborrowers.tt Bug 28961: Use Flatpickr on tools pages 2021-10-05 10:58:14 +02:00
csv-profiles.tt
export.tt Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
holidays.tt Bug 28963: Use Flatpickr on calendar page 2021-10-12 11:15:32 +02:00
import_borrowers.tt Bug 28084: Standardize: Cardnumber, Card number, Card 2021-10-21 12:24:04 +02:00
inventory.tt Bug 29231: Add missing Flatpickr to inventory page 2021-10-21 12:24:04 +02:00
letter.tt
manage-marc-import.tt
marc_modification_templates.tt
modborrowers.tt Bug 29218: Rename .hidden class for DT visibility 2021-10-28 12:20:12 +02:00
overduerules.tt
picture-upload.tt Bug 28576: Update the maximum size of an image. 2022-02-14 21:41:38 -10:00
preview_letter.tt
problem-reports.tt
quotes-upload.tt Bug 28438: (follow-up) Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
quotes.tt Bug 29408: Update all existing uses of .api to .kohaTable 2021-11-15 12:38:39 +01:00
scheduler.tt Bug 29394: Remove flatpickr instantiations from most of the tt files 2021-11-22 11:48:45 +01:00
showdiffmarc.tt
stage-marc-import.tt Bug 29989: Improve headings in MARC staging template 2022-02-21 15:15:47 -10:00
stockrotation.tt Bug 29809: Update stockration tool to reflect method name change 2022-01-31 21:55:40 -10:00
tools-home.tt
upload-images.tt Bug 25025: Drag-and-drop cover image upload 2022-03-01 22:47:46 -10:00
upload.tt Bug 29747: Delete columns that don't exist from settings 2022-01-09 21:04:17 -10:00
viewlog.tt Bug 29869: Teach log viewer about FILL 2022-02-10 14:44:22 -10:00