[Koha-patches] [PATCH] Fix for Bug 4093, OPAC Suggestions List has extra column

Owen Leonard oleonard at myacpl.org
Mon Feb 8 17:08:57 CET 2010


- This code was added to opac-suggestions.pl at one point by
  Garry Collum and was subsequently removed. Adding it back.
---
 opac/opac-suggestions.pl |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl
index 12eea5f..f22d06e 100755
--- a/opac/opac-suggestions.pl
+++ b/opac/opac-suggestions.pl
@@ -103,6 +103,15 @@ foreach my $support(@$supportlist){
 	   delete $$support{'imageurl'}
 	}
 }
+
+foreach my $suggestion(@$suggestions_loop) {
+    if($suggestion->{'suggestedby'} == $borrowernumber) {
+        $suggestion->{'showcheckbox'} = $borrowernumber;
+    } else {
+        $suggestion->{'showcheckbox'} = 0;
+    }
+}
+
 $template->param(
 	%$suggestion,
 	itemtypeloop=> $supportlist,
-- 
1.6.3.3




More information about the Koha-patches mailing list