Bugzilla – Attachment 3073 Details for
Bug 5687
Add preference for display of AuthorisedValueImages at staff search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Revised patch (functionality)
patch.txt (text/plain), 3.46 KB, created by
Marcel de Rooy
on 2011-02-07 13:51:58 UTC
(
hide
)
Description:
Revised patch (functionality)
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2011-02-07 13:51:58 UTC
Size:
3.46 KB
patch
obsolete
>From b5799ed5f3b47156dc8bc1935b5006072ccf6202 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 7 Feb 2011 14:43:07 +0100 >Subject: [PATCH] Bug 5687: Add pref StaffAuthorisedValueImages for staff search results >Content-Type: text/plain; charset="utf-8" > >This patch contains the functionality, not the install stuff. > >Revised: recent commit renamed the staff client pref file. >--- > catalogue/search.pl | 3 +++ > .../en/modules/admin/preferences/staff_client.pref | 6 ++++++ > .../prog/en/modules/catalogue/results.tmpl | 4 ++-- > 3 files changed, 11 insertions(+), 2 deletions(-) > >diff --git a/catalogue/search.pl b/catalogue/search.pl >index 8cb737d..ec5015c 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -538,6 +538,9 @@ for (my $i=0;$i<@servers;$i++) { > } > exit; > } >+ unless(C4::Context->preference("StaffAuthorisedValueImages")) { >+ $_->{noauthimg}=1 for @newresults; #enh 5687 >+ } > > > if ($hits) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >index 0d7fedc..38753c3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref >@@ -63,6 +63,12 @@ Staff Client: > 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. > Options: > - > - pref: viewMARC >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl >index df09c4f..9bb930b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl >@@ -438,7 +438,7 @@ function GetZ3950Terms(){ > </p> > <!-- TMPL_IF NAME="searchhighlightblob" --><p class="searchhighlightblob"><!-- TMPL_VAR NAME="searchhighlightblob" --></p><!-- /TMPL_IF --> > >- <!-- TMPL_IF NAME="authorised_value_images" --> >+ <!-- TMPL_UNLESS NAME="noauthimg"--><!-- TMPL_IF NAME="authorised_value_images" --> > <p> > <!-- TMPL_LOOP NAME="authorised_value_images" --> > <img src="<!-- TMPL_VAR name="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" /> >@@ -446,7 +446,7 @@ function GetZ3950Terms(){ > </p> > <!-- /TMPL_IF --> > >- <!-- /TMPL_IF --> >+ <!-- /TMPL_IF --><!-- /TMPL_UNLESS --> > <p class="hold"><!-- TMPL_IF NAME="norequests" --> > <span class="noholdstext">No holds allowed</span> > <!-- TMPL_ELSE --> >-- >1.6.0.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5687
:
3056
|
3057
|
3058
|
3067
|
3068
|
3073
|
3278
|
3279
|
3341
|
3459