Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref
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

116 lines
4.6 KiB
Text
Executable file

Staff Client:
Appearance:
-
- Use the
- pref: template
choices: staff-templates
- theme on the staff interface.
-
- "The staff client is located at http://"
- pref: staffClientBaseURL
class: url
- .
-
- Include the stylesheet at
- pref: intranetstylesheet
class: url
- on all pages in the staff interface, instead of the default. (This should be a complete URL, starting with <code>http://</code>.)
-
- "Include the following CSS on all pages in the staff client:"
- pref: IntranetUserCSS
type: textarea
class: code
-
- Include the stylesheet <code><!-- TMPL_VAR NAME="themelang" -->/css/</code>
- pref: intranetcolorstylesheet
class: file
- on all pages in the staff interface. (Leave blank to disable.)
-
- Use include files from the
- pref: intranet_includes
class: file
- directory in the template directory, instead of <code>includes/</code>. (Leave blank to disable)
-
- "Show the following HTML in its own column on the main page of the staff client:"
- pref: IntranetmainUserblock
type: textarea
class: code
-
- "Show the following HTML in the More menu at the top of each page on the staff client (should be a list of links or blank):"
- pref: IntranetNav
type: textarea
class: code
-
- "Include the following JavaScript on all pages in the staff clien:"
- pref: intranetuserjs
type: textarea
class: code
-
- Use the image at
- pref: IntranetFavicon
class: url
- for the Staff Client's favicon. (This should be a complete URL, starting with <code>http://</code>.)
-
- Show biblio records on result page in the staff client
- pref: XSLTResultsDisplay
choices:
yes: using XSLT stylesheets.
no: normally.
-
- Show item details pages in the staff client
- pref: XSLTDetailsDisplay
choices:
yes: using XSLT stylesheets.
no: normally.
-
- Use the Yahoo UI libraries
- pref: yuipath
choices:
local: "included with Koha (faster, will work if internet goes down)."
"http://yui.yahooapis.com/2.5.1/build": "from Yahoo's own servers (less demand on your servers)."
-
- pref: StaffAuthorisedValueImages
choices:
yes: Show
no: "Don't show"
- images for <a href="/cgi-bin/koha/admin/authorised_values.pl">authorized values</a> (such as lost statuses and locations) in search results.
-
- 'Display the URI in the 856u field as an image on: '
- pref: Display856uAsImage
choices:
OFF: "Neither Details or Results pages"
Details: "Details page only"
Results: "Results page (for future use, Results XSLT not functional at this time)."
Both: "Both Results and Details pages (for future use, Results XSLT not functional at this time)."
- 'Note: The corresponding XSLT option must be turned on.'
Options:
-
- pref: viewMARC
choices:
yes: Allow
no: "Don't allow"
- staff to view records in plain MARC form on the staff client.
-
- pref: viewLabeledMARC
choices:
yes: Allow
no: "Don't allow"
- staff to view records in labeled MARC form on the staff client.
-
- pref: viewISBD
choices:
yes: Allow
no: "Don't allow"
- staff to view records in ISBD form on the staff client.
-
- pref: HidePatronName
choices:
no: Show
yes: "Don't show"
- the names of patrons that have items checked out or on hold on detail pages or the "Place Hold" screen.
-
- pref: intranetbookbag
choices:
yes: Show
no: "Don't show"
- the cart option in the staff client.