From 1cc0d7b700f27ac3bacb2964475da1f3aabbc919 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 23 Jan 2014 18:32:06 +0000 Subject: [PATCH] Bug 10907: (follow-up) fix table sorting This patch fixes a problem wherein table sorting did not work if OpacSuggestionManagedBy was off. As a matter of style, this patch also modifies the (Boolean) syspref check to be just: [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) %] Signed-off-by: Galen Charlton --- .../opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 6 +++--- koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index fa89078a57..44ecf6fc41 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -148,7 +148,7 @@ Summary Note [% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]Suggested for[% END %] - [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %]Managed by[% END %] + [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) %]Managed by[% END %] Status @@ -186,7 +186,7 @@ [% END %] [% END %] - [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %] + [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) %] [% IF ( suggestions_loo.surnamemanagedby ) %] Managed by: @@ -262,7 +262,7 @@ { "sType": "anti-the" }, null, [% IF ( OPACViewOthersSuggestions ) %]null,[% END %] - null, + [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) %]null,[% END %] null ] })); diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tt index 61de641a96..8c62c7b527 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tt @@ -31,7 +31,7 @@ { "sType": "anti-the" }, null, [% IF ( OPACViewOthersSuggestions ) %]null,[% END %] - null, + [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) %]null,[% END %} null ] })); @@ -177,7 +177,7 @@ Summary Note [% IF ( OPACViewOthersSuggestions ) %]Suggested for[% END %] - [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %]Managed by[% END %] + [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) %]Managed by[% END %] Status [% FOREACH suggestions_loo IN suggestions_loop %] @@ -203,7 +203,7 @@ [% IF ( OPACViewOthersSuggestions ) %] [% IF ( suggestions_loo.branchcodesuggestedby ) %][% suggestions_loo.branchcodesuggestedby %][% ELSE %] [% END %] [% END %] - [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) == 1 %] + [% IF Koha.Preference( 'OpacSuggestionManagedBy' ) %] [% IF ( suggestions_loo.surnamemanagedby ) %][% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby %][% ELSE %] [% END %] -- 2.39.5