[Koha-patches] [PATCH] bug 2970: extend new hold priority change permission

Galen Charlton gmcharlt at gmail.com
Fri Feb 19 11:23:27 CET 2010


Now covers the new hold request priority buttons.

Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
 .../prog/en/modules/reserve/request.tmpl           |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl
index b6d3f44..0f06ec8 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl
@@ -561,15 +561,21 @@ function checkMultiHold() {
           <caption><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" ESCAPE="html" --></a></caption>
       <!-- /TMPL_IF -->
       <tr>
-        <!-- TMPL_IF NAME="CAN_user_reserveforothers_modify_holds_priority" --><th>Priority</th><!-- TMPL_ELSE --><th>Delete?</th><!-- /TMPL_IF -->
-	    <th>&nbsp</th>
+        <!-- TMPL_IF NAME="CAN_user_reserveforothers_modify_holds_priority" -->
+            <th>Priority</th>
+	        <th>&nbsp</th>
+        <!-- TMPL_ELSE -->
+            <th>Delete?</th>
+        <!-- /TMPL_IF -->
         <th>Patron</th>
         <th>Notes</th>
         <th>Date</th>
 	<th>Expiration</th>
         <th>Pick up Library</th>
         <th>Details</th>
-        <th><img src="/intranet-tmpl/<!-- TMPL_VAR NAME='theme' -->/img/go-bottom.png" border="0" alt="Toggle Set to Lowest Priority" /></th>
+        <!-- TMPL_IF NAME="CAN_user_reserveforothers_modify_holds_priority" -->
+            <th><img src="/intranet-tmpl/<!-- TMPL_VAR NAME='theme' -->/img/go-bottom.png" border="0" alt="Toggle Set to Lowest Priority" /></th>
+        <!-- /TMPL_IF -->
 	<th>&nbsp;</th>
       </tr>
   <!-- TMPL_LOOP Name="reserveloop" -->
@@ -588,6 +594,7 @@ function checkMultiHold() {
           </select>
         </td>
 
+     <!-- TMPL_IF NAME="CAN_user_reserveforothers_modify_holds_priority" -->
         <td style="white-space:nowrap;">
 	        <a title="Move Hold Up" href="request.pl?action=move&amp;where=up&amp;borrowernumber=<!-- TMPL_VAR Name="borrowernumber" -->&amp;biblionumber=<!-- TMPL_VAR Name="biblionumber" -->&amp;date=<!-- TMPL_VAR Name="date" -->">
 			<img src="/intranet-tmpl/<!-- TMPL_VAR NAME='theme' -->/img/go-up.png" border="0" alt="Go up" />
@@ -605,6 +612,7 @@ function checkMultiHold() {
                 	<img src="/intranet-tmpl/<!-- TMPL_VAR NAME='theme' -->/img/go-down.png" border="0" alt="Go down" />
                 </a>
         </td>
+    <!-- /TMPL_IF -->
 
         <td>
           <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->" >
@@ -678,6 +686,7 @@ function checkMultiHold() {
     <!-- /TMPL_IF -->
         </td>
 
+    <!-- TMPL_IF NAME="CAN_user_reserveforothers_modify_holds_priority" -->
 	<td>
 		<a title="Toggle Lowest Priority" href="request.pl?action=setLowestPriority&amp;borrowernumber=<!-- TMPL_VAR Name="borrowernumber" -->&amp;biblionumber=<!-- TMPL_VAR Name="biblionumber" -->&amp;date=<!-- TMPL_VAR Name="date" -->"> 
 			<!-- TMPL_IF NAME="lowestPriority" -->
@@ -687,6 +696,7 @@ function checkMultiHold() {
 		        <!-- /TMPL_IF -->
 		</a>
 	</td> 
+    <!-- /TMPL_IF -->
 
 	<td>
 		<a title="Cancel Hold" href="request.pl?action=cancel&amp;borrowernumber=<!-- TMPL_VAR Name="borrowernumber" -->&amp;biblionumber=<!-- TMPL_VAR Name="biblionumber" -->&amp;date=<!-- TMPL_VAR Name="date" -->">
-- 
1.6.3.3




More information about the Koha-patches mailing list