]> git.koha-community.org Git - koha.git/commit
Bug 1633: [SIGNED-OFF] Add support for uploading images to Koha
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 13 Dec 2011 13:20:41 +0000 (08:20 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 24 Jan 2012 10:16:02 +0000 (11:16 +0100)
commitb4fb5d4095665f1543da7bd714584524e6311f8b
tree431adf5cb872beb8140ea0b4a4edcc8e135ec970
parent572233de4a0148b2140650abf5401bd0bf16612a
Bug 1633: [SIGNED-OFF] Add support for uploading images to Koha

A frequently-requested feature for Koha, especially by special libraries, is
the ability to upload local cover images into Koha.

This patch adds a bibliocoverimage table, and image handling code in the
C4::Images module. Key features of the implementation include:
1. The ability to have multiple cover images for a biblio
2. Handling for "full size" (800x600) and thumbnail-size (200x140) images
3. Uploading images directly from the record view

The image display functionality by Koustubha Kale of Anant Corporation will
follow in a second patch.

Special thanks to Koustubha Kale and Anant Corporation for the initial
implementation of local cover images, and to Chris Nighswonger of Foundation
Bible College for his prior work on patron images.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Magnus Enger <magnus@enger.priv.no>
Will add comments on Bugzilla.

Patch failed to apply because installer/data/mysql/sysprefs.sql had changed in master.
Corrected the same with this new patch.
13 files changed:
C4/Auth.pm
C4/Images.pm [new file with mode: 0644]
C4/UploadedFile.pm
installer/data/mysql/atomicupdate/local_cover_images.pl [new file with mode: 0755]
installer/data/mysql/en/mandatory/userpermissions.sql
installer/data/mysql/kohastructure.sql
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref
koha-tmpl/intranet-tmpl/prog/en/modules/tools/tools-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt [new file with mode: 0644]
tools/upload-cover-image.pl [new file with mode: 0755]