bug 9722: (followup) allow patrons to see hold notes in their summary
authorGalen Charlton <gmc@esilibrary.com>
Thu, 23 May 2013 15:28:32 +0000 (08:28 -0700)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 23 May 2013 15:28:32 +0000 (08:28 -0700)
If we allow patrons to set them, we should let them see
them as well.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt
opac/opac-user.pl

index 8b765f6..f1d3435 100644 (file)
@@ -359,6 +359,7 @@ $.tablesorter.addParser({
             <thead><tr>
                 <th class="{sorter:'articles'}">Title</th>
                 <th>Placed on</th>
+                [% IF OpacShowHoldNotes %]<th>Notes</th>[% END %]
         <th>Expires on</th>
                 <th>Pick up location</th>
                [% IF ( showpriority ) %]
@@ -386,6 +387,7 @@ $.tablesorter.addParser({
                     [% RESERVE.author %]
                 </td>
                 <td class="reservedate">[% RESERVE.reservedate | $KohaDates %]</td>
+                [% IF OpacShowHoldNotes %]<td class="reservenotes">[% RESERVE.reservenotes %]</td>[% END %]
         <td class="expirationdate">[% IF ( RESERVE.expirationdate ) %][% RESERVE.expirationdate | $KohaDates %][% ELSE %]Never expires[% END %]</td>
                 <td class="branch">[% RESERVE.branch %]</td>
                                [% IF ( showpriority ) %]
index 750a9c3..bb976f6 100755 (executable)
@@ -364,6 +364,7 @@ $template->param(
 $template->param(
     SuspendHoldsOpac => C4::Context->preference('SuspendHoldsOpac'),
     AutoResumeSuspendedHolds => C4::Context->preference('AutoResumeSuspendedHolds'),
+    OpacShowHoldNotes => C4::Context->preference('OpacShowHoldNotes'),
 );
 
 output_html_with_http_headers $query, $cookie, $template->output;