Bugzilla – Attachment 3278 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), 2.73 KB, created by
Marcel de Rooy
on 2011-03-10 08:38:11 UTC
(
hide
)
Description:
Revised patch (functionality)
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2011-03-10 08:38:11 UTC
Size:
2.73 KB
patch
obsolete
>From 9e97f938961837603337cd1bedb8b62ee6b40bfc Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 10 Mar 2011 09:18:42 +0100 >Subject: [PATCH] [REVISED] 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: with input of Ian Walls: populate authorised_value_images only if needed; no changes anymore for template and search.pl. >--- > C4/Search.pm | 2 +- > .../en/modules/admin/preferences/staff_client.pref | 6 ++++++ > 2 files changed, 7 insertions(+), 1 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 26dc67f..574fa8d 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1454,7 +1454,7 @@ sub searchResults { > # add imageurl to itemtype if there is one > $oldbiblio->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} ); > >- $oldbiblio->{'authorised_value_images'} = C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $oldbiblio->{'biblionumber'}, $marcrecord ) ); >+ $oldbiblio->{'authorised_value_images'} = ($search_context eq 'opac' && C4::Context->preference('AuthorisedValueImages')) || ($search_context eq 'intranet' && C4::Context->preference('StaffAuthorisedValueImages')) ? C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $oldbiblio->{'biblionumber'}, $marcrecord ) ) : []; > $oldbiblio->{normalized_upc} = GetNormalizedUPC( $marcrecord,$marcflavour); > $oldbiblio->{normalized_ean} = GetNormalizedEAN( $marcrecord,$marcflavour); > $oldbiblio->{normalized_oclc} = GetNormalizedOCLCNumber($marcrecord,$marcflavour); >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 >-- >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