Bugzilla – Attachment 4708 Details for
Bug 5928
Allow selection of "purchase for" library in Purchase Suggestions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-bug_5928-AllowPurchaseSuggestionBranchChoice-opac-pr.patch (text/plain), 2.29 KB, created by
Srdjan Jankovic
on 2011-07-22 04:11:15 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2011-07-22 04:11:15 UTC
Size:
2.29 KB
patch
obsolete
>From 3f5dbee3b3fe02d703c4b04da5d138854ff47088 Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Fri, 22 Jul 2011 16:01:36 +1200 >Subject: [PATCH 1/1] bug_5928: AllowPurchaseSuggestionBranchChoice opac pref > Introduced branchnamesuggestedfor; display it on opac Purchase Suggestions > >--- > C4/Suggestions.pm | 4 +++- > .../prog/en/modules/admin/preferences/opac.pref | 7 ++++++- > 2 files changed, 9 insertions(+), 2 deletions(-) > >diff --git a/C4/Suggestions.pm b/C4/Suggestions.pm >index 1a93f2e..41777bb 100644 >--- a/C4/Suggestions.pm >+++ b/C4/Suggestions.pm >@@ -105,7 +105,8 @@ sub SearchSuggestion { > B2.branchname AS branchnamesuggestedby, > U2.email AS emailmanagedby, > U2.branchcode AS branchcodemanagedby, >- U2.borrowernumber AS borrnummanagedby >+ U2.borrowernumber AS borrnummanagedby, >+ B3.branchname AS branchnamesuggestedfor > FROM suggestions > LEFT JOIN borrowers AS U1 ON suggestedby=U1.borrowernumber > LEFT JOIN branches AS B1 ON B1.branchcode=U1.branchcode >@@ -113,6 +114,7 @@ sub SearchSuggestion { > LEFT JOIN borrowers AS U2 ON managedby=U2.borrowernumber > LEFT JOIN branches AS B2 ON B2.branchcode=U2.branchcode > LEFT JOIN categories AS C2 ON C2.categorycode = U2.categorycode >+ LEFT OUTER JOIN branches AS B3 ON B3.branchcode=suggestions.branchcode > WHERE STATUS NOT IN ('CLAIMED') > } , map { > if ( my $s = $suggestion->{$_} ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index f4be568..9f82b9e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -339,7 +339,12 @@ OPAC: > type: textarea > class: code > - Allows to define custom rules for hiding specific items at opac. See docs/opac/OpacHiddenItems.txt for more informations. >- >+ - >+ - pref: SearchMyLibraryFirst >+ choices: >+ yes: Limit >+ no: "Don't limit" >+ - "patrons' searches to the library they are registered at." > Privacy: > - > - pref: AnonSuggestions >-- >1.6.5 >
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 5928
:
3392
|
3404
|
3405
|
3721
|
4705
| 4708