From a4e22029cc98b1995440ed7902dab4e1b894289c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 19 Mar 2008 15:18:20 -0500 Subject: [PATCH] Updates to tweak the way suggestions and suggestions links display when various suggestions-related prefs are on or off. Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 1 + .../opac-tmpl/prog/en/includes/masthead.inc | 4 +-- .../prog/en/modules/opac-suggestions.tmpl | 29 +++++++++++++------ 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index b0a9046d11..ab0116de5e 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -286,6 +286,7 @@ sub get_template_and_user { KohaAdminEmailAddress => "" . C4::Context->preference("KohaAdminEmailAddress"), AnonSuggestions => "" . C4::Context->preference("AnonSuggestions"), suggestion => "" . C4::Context->preference("suggestion"), + OPACViewOthersSuggestions => "" . C4::Context->preference("OPACViewOthersSuggestions"), virtualshelves => "" . C4::Context->preference("virtualshelves"), OpacNav => "" . C4::Context->preference("OpacNav"), opacheader => "" . C4::Context->preference("opacheader"), diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc index 521c5147c7..dd9662e410 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc @@ -73,9 +73,9 @@ - + - + diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl index 06020c0d3c..7e67c670ab 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl @@ -17,8 +17,18 @@ $.tablesorter.addParser({ widgets : ['zebra'], sortList: [[1,0]],sortList: [[0,0]], headers: { - 0: { sorter: false },2: { sorter: 'articles' },2: {sorter: false },4: {sorter: false},5:{sorter:false} - 0: { sorter: 'articles' },1: {sorter: false },3: {sorter: false},4:{sorter:false} + + + 0: { sorter: false },2: { sorter: 'articles' },2: {sorter: false },4: {sorter: false},5:{sorter:false} + + 0: { sorter: false },2: { sorter: 'articles' },2: {sorter: false },3: {sorter: false},4:{sorter:false} + + + + 0: { sorter: 'articles' },1: {sorter: false },3: {sorter: false},4:{sorter:false} + + 0: { sorter: 'articles' },1: {sorter: false },2: {sorter: false},3:{sorter:false} + } }); @@ -53,9 +63,10 @@ $.tablesorter.addParser({ -

Purchase Suggestions

+

My Purchase Suggestions

-
+ +
@@ -74,11 +85,11 @@ $.tablesorter.addParser({ - +
-
+
@@ -86,7 +97,7 @@ $.tablesorter.addParser({ - + @@ -105,9 +116,9 @@ $.tablesorter.addParser({ - + -- 2.39.5
  Summary NoteSuggested bySuggested by Managed by Status
+ , - ,