[Koha-bugs] [Bug 5738] Display the URI in 856u as an Image

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 1 18:24:11 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5738

--- Comment #29 from Doug Dearden <dearden at sarsf.org> 2011-04-01 16:24:11 UTC ---
Nicole,

To test:

Create a new (or edit an existing) record, adding an 856u field and populating
it with a valid reference to an image file.  For example:
http://www.publicdomainpictures.net/pictures/9000/nahled/mountain-stream-25271280314836ZDa9.jpg
.  In addition to the 856u field, populate the 856q field with a valid mime
extension (see list above in comment 13) or a valid mime type that starts with
"image/", i.e. "image/jpeg".  To attache multiple images to the same record,
repeat the 856 field and populate the u and q subfields as above.  Do not
repeat the u and q subfields within the same 856 field, it won't work (known
bug 4958).  In the system preferences under the OPAC and Staff Client sections
turn on the XSLT options.  When the new system prefs are set to Both, Details
only or Results only you should see an image displayed instead of the link
text.  When you click on the image it should open to full size, in the current
window or in a new window depending on the value in the system pref
OPACURLOpenInNewWindow.  You may need to rebuild Zebra before it works.  

To summarize - XSLT on, new system pref on, 856u has valid picture, 856q has
valid entry.  

If the 856u doesn't point to an image file, the alternative text will display
instead.  If the 856q doesn't have a valid mime extension or type the
alternative text will display instead.

Regarding the default being "neither".  In the updatedatabase.pl and
sysprefs.sql file, the default is set to 'off' (which should translate to
neither).  The system prefs do show up with Both enabled after update.  I think
this can be fixed by putting a default in the .pref files, as it looks like it
is reordering the preferences alphabetically then using the first one.  The
wiki page at http://wiki.koha-community.org/wiki/System_Preferences mentions
that there is a way to do this but does not give an example, and I did not find
any other entries in the .pref files that seemed to have defaults defined. 
Also, while "Both" appears after the new system pref is entered, I'm not sure
it is in that state.  You may need to change it, save, then change it back to
get "Both" turned on as the choice.

Thanks,

Doug

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list