modification to show the library and not the username of the person at OPAC.
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 28 Aug 2008 15:48:13 +0000 (17:48 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 28 Oct 2008 21:09:27 +0000 (22:09 +0100)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Suggestions.pm
koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl

index 82eef06..ac358d9 100644 (file)
@@ -89,6 +89,7 @@ sub SearchSuggestion  {
     my $dbh = C4::Context->dbh;
     my $query = "
     SELECT suggestions.*,
+        U1.branchcode   AS branchcodesuggestedby,
         U1.surname   AS surnamesuggestedby,
         U1.firstname AS firstnamesuggestedby,
         U1.borrowernumber AS borrnumsuggestedby,
@@ -223,6 +224,7 @@ sub GetSuggestionByStatus {
     my $query = qq(SELECT suggestions.*,
                         U1.surname   AS surnamesuggestedby,
                         U1.firstname AS firstnamesuggestedby,
+            U1.branchcode AS branchcodesuggestedby,
                                                U1.borrowernumber AS borrnumsuggestedby,
                         U2.surname   AS surnamemanagedby,
                         U2.firstname AS firstnamemanagedby,
index aa67124..83111ba 100644 (file)
@@ -88,7 +88,7 @@ $.tablesorter.addParser({
                 Suggested by:
                 </th>
                 <td>
-                    <select name="suggestedbyme">
+                    <select name="suggestedby">
                         <option value="0">Anyone</option>
                         <option value="1">Me</option>
                     </select>
@@ -109,7 +109,7 @@ $.tablesorter.addParser({
             <!-- TMPL_IF NAME="loggedinusername" --><th>&nbsp;</th><!-- /TMPL_IF -->
             <th>Summary</th>
             <th>Note</th>
-            <!-- TMPL_IF NAME="OPACViewOthersSuggestions" --><th>Suggested by</th><!-- /TMPL_IF -->
+            <!-- TMPL_IF NAME="OPACViewOthersSuggestions" --><th>Suggested For</th><!-- /TMPL_IF -->
             <th>Managed by</th>
             <th>Status</th>
         </tr></thead>
@@ -129,7 +129,7 @@ $.tablesorter.addParser({
                     <!-- TMPL_VAR name="note" -->
                 </td>
                 <!-- TMPL_IF NAME="OPACViewOthersSuggestions" --><td>
-                    <!-- TMPL_IF NAME="surnamesuggestedby" --><!-- TMPL_VAR name="surnamesuggestedby" --><!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF --> <!-- TMPL_VAR name="firstnamesuggestedby" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
+                    <!-- TMPL_IF NAME="branchcodesuggestedby" --><!-- TMPL_VAR name="branchcodesuggestedby" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
                 </td><!-- /TMPL_IF -->
                 <td>
                                        <!-- TMPL_IF NAME="surnamemanagedby" --><!-- TMPL_VAR name="surnamemanagedby" --><!-- TMPL_IF name="firstnamemanagedby" -->,<!-- /TMPL_IF --> <!-- TMPL_VAR name="firstnamemanagedby" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->