Main Koha release repository https://koha-community.org
Find a file
Doug Dearden 6c7f964c27 Bug 5738 Display 856u As Image
Add an option to the OPAC to display the URI that is stored in the 856u field
as an image instead of a text link.  This would be implemented in the OPAC XSLT
style sheets for the Results and Details pages, and would require that the
corresponding OPAC XSLT option be set.

This enhancement is designed to enable the staff to catalog images, then have
them appear on the resulting pages in the OPAC when searching.  Clicking on the
image would open it full size.  If the image option is in use, then the default
link text would be disabled.  Custom text would still appear if entered in the
"URLLinkText" option.

Add system preference "Display856uAsImage" with options of Results page,
Details page, Both Results and Details pages, Neither Results or Details page.

Notes for documentation manager:
There are two system preferences added for this enhancement:
OPACDisplay856uAsImage and Display856uAsImage.  These appear on the OPAC and
Staff Client screens under the System Preferences.

The preference can be set to one of four options:

Both Details and Results pages
Details page only
Neither Details or Results pages
Results page only

In addition to this option being set, the corresponding XSLT option must be
turned on. Also, the corresponding 856q field must have a valid MIME image
extension (e.g., "jpg") or MIME image type (i.e. starting with "image/"), or the
generic indicator "img" entered in the field.

As of 14 March 2011 the UNIMARC xslt display files also require a "0" in the
second indicator location of the 856u field for the links to be activated.  This
is not true for the MARC21 display files.

When all of the requirements are met, an image file will be displayed instead of
the standard link text. Clicking on the image will open it in the same way as
clicking on the link text.

Rebased and three original patches squashed into one on 30 March 2011 by Jared
Camins-Esakov.

Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Doug Dearden <dearden@sarsf.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-04-01 13:38:14 +13:00
acqui Bug 5466 On new orders get currency from vendor 2011-03-21 16:51:41 +13:00
admin Bug 5548: Hard Due Dates Circ Rule 2011-03-30 20:35:45 +13:00
authorities Bug 5907 : MT 2538 : Using default authtypecode for authority display 2011-03-23 19:52:26 +13:00
basket Bug 3810: Ensure all calls to Mail::Sendmail handled consistently 2011-03-16 20:57:12 +13:00
C4 Bug 5738 Display 856u As Image 2011-04-01 13:38:14 +13:00
catalogue Bug 5305: CCL query, then resort, loses reults. 2011-03-31 21:18:29 +13:00
cataloguing Bug 5939: "Save and edit items" button broken 2011-03-24 13:33:13 +13:00
circ Merge remote branch 'kc/new/enh/bug_6003' into kcmaster 2011-04-01 13:31:53 +13:00
debian Bug 5550 - correct filename referenced in docs 2011-01-01 07:43:30 +13:00
docs Adding 2 more developers to the history 137 now! 2011-03-21 16:42:49 +13:00
errors Housekeeping in errors scripts 2010-05-12 07:29:03 -04:00
etc Bug 3735: Wrong search results for a few fields in ccl.properties 2011-03-18 11:17:24 +13:00
install_misc Add .packages file for Ubuntu 10.10 2010-12-20 09:57:30 +13:00
installer Bug 5738 Display 856u As Image 2011-04-01 13:38:14 +13:00
koha-tmpl Bug 5738 Display 856u As Image 2011-04-01 13:38:14 +13:00
labels Bug 5865 - Labels wrap incorrectly when paper width is greater than height 2011-03-15 21:52:32 +13:00
members Bug 5900: GetAllIssues performance issues 2011-03-29 21:52:16 +13:00
misc MT3289 : check_sysprefs.pl case sensitive variable names 2011-03-31 15:23:24 +13:00
offline_circ bug 2975: whitespace and formatting cleanup 2011-03-07 14:35:21 +13:00
opac Bug 5965 : Follow up patch, cleaned for style 2011-04-01 13:21:16 +13:00
patroncards Bug 5183 Incorrect hash dereferencing syntax causes an error to be thrown when attempting to export patron cards 2010-09-10 18:28:54 -04:00
reports Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
reserve Bug 5547: Hide Lost Items dev 2011-03-30 20:20:05 +13:00
reviews Modifying Members : Add Mod and GetMember 2009-09-30 11:29:23 +02:00
rotating_collections Bug 2505 - Add commented use warnings where missing in the rotating_collections/ directory 2010-04-21 20:25:39 +12:00
selenium Adding selenium tests for filterMembers 2009-09-30 11:30:37 +02:00
serials Bug5063: C4::Bookseller Changes 2011-03-12 08:42:26 +13:00
skel installer: fixed chown invocation; added skel for KOHA_LOG_DIR 2007-12-17 09:13:53 -06:00
sms Bug 2505 - Add commented use warnings where missing in the sms/ directory 2010-04-21 20:25:08 +12:00
suggestion Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
svc bug 4896: granular permissions now always on (DB rev 138) 2010-06-19 07:56:03 -04:00
t Bug 5065 Add ability to choose framework on import 2011-03-21 20:36:35 +13:00
tags Fix for Bug 2377 - Review tags: format date according to system preference 2010-10-06 09:31:56 -04:00
test bug 5309: tweak so that background progress doesn't exit immediately 2010-10-26 12:14:46 -04:00
tmp/modified_authorities changing DO_NOT_REMOVE to README.txt 2007-10-21 19:14:41 -05:00
tools Bug 5996 : MT2926: Fix default values for patron import 2011-04-01 13:13:47 +13:00
virtualshelves Bug 3810: Ensure all calls to Mail::Sendmail handled consistently 2011-03-16 20:57:12 +13:00
xt Fixing a utf8 issue with the translator tests 2011-03-06 08:05:40 +13:00
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
about.pl Enhancement Bug 4444: Centralize Code Handling Perl Dependencies 2010-05-17 09:01:51 -04:00
changelanguage.pl Bug 2617: Add strict (and warnings), partial fix. 2009-03-11 08:36:55 -05:00
edithelp.pl Fix FSF address in directory . 2010-03-16 20:17:52 -04:00
fix-perl-path.PL installer: improvements to fix-path-perl.PL on Win32 2007-12-20 19:20:12 -06:00
help.pl Fix FSF address in directory . 2010-03-16 20:17:52 -04:00
INSTALL update INSTALL* to acknowledge the use of mod_deflate 2011-03-12 12:37:26 +13:00
install-CPAN.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
INSTALL.debian update INSTALL* to acknowledge the use of mod_deflate 2011-03-12 12:37:26 +13:00
INSTALL.fedora7 fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
INSTALL.opensuse update INSTALL* to acknowledge the use of mod_deflate 2011-03-12 12:37:26 +13:00
INSTALL.ubuntu update INSTALL* to acknowledge the use of mod_deflate 2011-03-12 12:37:26 +13:00
INSTALL.ubuntu.lucid update INSTALL* to acknowledge the use of mod_deflate 2011-03-12 12:37:26 +13:00
koha_perl_deps.pl Bug 4844 Remove a circular dependency in koha_perl_deps.pl 2010-06-03 19:59:10 -04:00
kohaversion.pl Bug 5738 Display 856u As Image 2011-04-01 13:38:14 +13:00
LICENSE Update LICENSE with a fresh copy from upstream. This updates the FSF address, and refers to the LGPL with its current name, and changes a few other minor things of the typographical sort. No semantic changes. 2010-03-16 20:17:48 -04:00
mainpage.pl remove last vestiges of NOTMARC mode 2010-10-21 21:06:52 -04:00
Makefile.PL bug 5033: Add a reference to xml_sax to the Makefile.PL 2010-12-14 20:34:38 +13:00
MANIFEST.SKIP Bug Fixing : 3334 2009-06-19 06:33:34 -05:00
README updated links in README 2010-05-24 08:14:16 -04:00
README.robots Add instructions to INSTALL and README.robots about robots.txt 2010-02-20 17:55:59 -05:00
rewrite-config.PL Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 2 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/