[Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/circ reserv... [rel_2_2]

Ryan Higgins rch at liblime.com
Fri Aug 10 00:18:36 CEST 2007


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	Ryan Higgins <rych>	07/08/09 22:18:36

Modified files:
	koha-tmpl/intranet-tmpl/npl/en/circ: reserve.tmpl 

Log message:
	add date selector and cancelled reserves/shelf pull options

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/npl/en/circ/reserve.tmpl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.1.2.1&r2=1.1.2.2

Patches:
Index: reserve.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/intranet-tmpl/npl/en/circ/Attic/reserve.tmpl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- reserve.tmpl	5 Jan 2006 21:59:54 -0000	1.1.2.1
+++ reserve.tmpl	9 Aug 2007 22:18:35 -0000	1.1.2.2
@@ -1,31 +1,160 @@
-<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Circulation: Transfers<!-- TMPL_INCLUDE NAME="doc-head-circ-close.inc" -->
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Circulation: Transfers<!-- TMPL_INCLUDE NAME="doc-head-close-calendar.inc" -->
+<script>
+function Dopop(link) {
+        newin=window.open(link,'width=400,height=500,toolbar=false,scrollbars=yes');
+}
+</script>
+
 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
 <!-- TMPL_INCLUDE NAME="circ-topmenu.inc" -->
 <!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
 
 <div id="main">
-	<h1>Items Reserved as of <!-- TMPL_VAR NAME="todaysdate" --></h1>
+<!-- TMPL_IF NAME="openreserves" -->
+<h1> Open / Unfilled Reserves </h1>
+<p><a href="/cgi-bin/koha/circ/reserve.pl">View all reserves </a></p>
+<p><a href="/cgi-bin/koha/circ/reserve.pl?op=cancelled">View cancelled reserves </a></p>
+<div id="resultlist" >
+
+<table>
+<tr>
+<th>Title / Author</th>
+<th>Open Reserves</th>
+<th>Notes</th>
+<th>Available Items on Shelf</th>
+</tr>
+<!-- TMPL_LOOP NAME="reserveloop" -->
+<tr>
+<td><a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> / <!-- TMPL_VAR NAME="author" --> </td>
+<td><!-- TMPL_VAR NAME="numreserves" --></td>
+<td>
+<!-- TMPL_VAR NAME="notes" -->
+</td>
+<td>
+<!-- TMPL_LOOP NAME="iteminfo" -->
+<!-- TMPL_VAR NAME="location" --> : <!-- TMPL_VAR NAME="itemcallnumber" --> (<!-- TMPL_VAR NAME="barcode" -->)
+<br />
+<!-- /TMPL_LOOP -->
+</tr>
+<!-- /TMPL_LOOP -->
+</table>
+</div>
+
+<!-- TMPL_ELSE -->
+
+<!-- TMPL_IF NAME="cancelledreserves" -->
+<h1> Cancelled Reserves </h1>
+<h3>These items should be pulled from the reserve shelf</h3>
+<p><a href="/cgi-bin/koha/circ/reserve.pl">View all reserves </a></p>
+<p><a href="/cgi-bin/koha/circ/reserve.pl?op=open">View reserved items in stacks </a></p>
+<div id="resultlist" >
+
+<table>
+<tr>
+<th>Borrower</th>
+<th>Item</th>
+<th>Reserve Date</th>
+</tr>
+<!-- TMPL_LOOP NAME="reserveloop" -->
+<tr>
+<td><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --></a></td>
+<td><a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> / <!-- TMPL_VAR NAME="itemcallnumber" --> ( <!-- TMPL_VAR NAME="barcode" --> )<td> <!-- TMPL_VAR NAME="reservedate" --></td>
+</tr><!-- /TMPL_LOOP --></table></div>
+
+<!-- TMPL_ELSE -->
+
+<h1>Items Reserved <!-- as of <!-- TMPL_VAR NAME="todaysdate" --> --></h1>
+<p><a href="/cgi-bin/koha/circ/reserve.pl?op=open">View reserved items in stacks </a></p>
+<p><a href="/cgi-bin/koha/circ/reserve.pl?op=cancelled">View cancelled reserves </a></p>
+<div id="filters">
+<br />
+<form method="post" >
+
+<h4>Limit by Date Range:</h4>                             
+<p>
+<label for "from">Start date:</label> <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />                                                        <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" border="0" id="openCalendarFrom" style="cursor: pointer;" valign="top" />
+                                                                <script language="JavaScript" type="text/javascript">
+                                                                        function validate1(date) {
+                                                                                var day = date.getDate();
+                                                                                var month = date.getMonth() + 1;
+                                                                                var year = date.getFullYear();
+                                                                                var weekDay = date.getDay();
+                                                                                var dayMonth = month + '-' + day;
+                                                                                var dateString = year + '-' + month + '-' + day;
+                                                                                var dateTo = document.getElementById('to').value.split("-");
+                                                                                var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
+                                                                                if (date > limitDate) {
+                                                                                        return true;
+                                                                                } else {
+                                                                                        return false;
+                                                                                }
+                                                                        }
+                                        
+                                                                        Calendar.setup(
+                                                                                {
+                                                                                        inputField : "from",
+                                                                                        ifFormat : "%Y-%m-%d",
+                                                                                        button : "openCalendarFrom",
+                                                                                        disableFunc : validate1,
+                                                                                        dateStatusFunc : validate1
+                                                                                }
+                                                                        );
+                                                                </script>
+			<label for "to" >End date:</label>  <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
+                                                <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" />
+                                                        <script type="text/javascript">
+                                                                function validate2(date) {
+                                                                        var day = date.getDate();
+                                                                        var month = date.getMonth() + 1;
+                                                                        var year = date.getFullYear();
+                                                                        var weekDay = date.getDay();
+                                                                        var dayMonth = month + '-' + day;
+                                                                        var dateString = year + '-' + month + '-' + day;
+                                                                        var dateFrom = document.getElementById('from').value.split("-");
+                                                                        var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
+                                                                        if (limitDate > date) {
+                                                                                return true;
+                                                                        } else {
+                                                                                return false;
+                                                                        }
+                                                                }
+                
+                                                                Calendar.setup(
+                                                                        {
+                                                                                inputField : "to",
+                                                                                ifFormat : "%Y-%m-%d",
+                                                                                button : "openCalendarTo",
+                                                                                disableFunc : validate2,
+                                                                                dateStatusFunc : validate2
+                                                                        }
+                                                                );
+                                                        </script>
+(inclusive)<input type="submit" value="Go" class="submit">
+</p>
+</form>
+		
+</div>
+
 	<div id="resultlist">
 		<table>
 		<tr>
 			<th>Priority</th>
-			<th>Reserve Date  <a class="print" href="/cgi-bin/koha/circ/reserve.pl?order=date&amp;type=intranet">[Sort]</a> </th>
-			<th>Patron  <a class="print" href="/cgi-bin/koha/circ/reserve.pl?order=borrower&amp;type=intranet">[Sort]</a></th>
-			<th>Title  <a class="print" href="/cgi-bin/koha/circ/reserve.pl?order=biblio&amp;type=intranet">[Sort]</a></th>
-			<th>Location</th>
+			<th>Reserve Date  <a class="print" href="/cgi-bin/koha/circ/reserve.pl?order=date&amp;type=intranet&amp;to=<!-- TMPL_VAR NAME="to" -->&amp;from=<!-- TMPL_VAR NAME="from" -->">[Sort]</a> </th>
+			<th>Patron  <a class="print" href="/cgi-bin/koha/circ/reserve.pl?order=borrower&amp;type=intranet&amp;to=<!-- TMPL_VAR NAME="to" -->&amp;from=<!-- TMPL_VAR NAME="from" -->">[Sort]</a></th>
+			<th>Title  <a class="print" href="/cgi-bin/koha/circ/reserve.pl?order=biblio&amp;type=intranet&amp;to=<!-- TMPL_VAR NAME="to" -->&amp;from=<!-- TMPL_VAR NAME="from" -->">[Sort]</a></th>
+			<th>Status</th>
 			<th>Notes</th>
+			<th></th>
 		</tr>
-		
 		<!-- TMPL_LOOP NAME="reserveloop" -->
 			<tr>
 				<td><!-- TMPL_VAR NAME="priority" --></td>
 				<td>
 					<!-- TMPL_VAR NAME="reservedate" -->
 					in <!-- TMPL_VAR NAME="branch" -->
-					<!-- TMPL_IF NAME="statusw" -->Waiting<!-- /TMPL_IF --><!-- TMPL_IF NAME="statusf" -->Fullfilled<!-- /TMPL_IF -->
 				</td>
 				<td>
-					<a href="/cgi-bin/koha/members/moremember.pl?bornum=<!--TMPL_VAR Name="bornum"-->"><!-- TMPL_VAR NAME="name" --></a><br /><!-- TMPL_VAR NAME="phone" --><br />
+					<a href="/cgi-bin/koha/members/moremember.pl?bornum=<!--TMPL_VAR Name="bornum"-->"><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --></a><br /><!-- TMPL_VAR NAME="phone" --><br />
 				<!-- TMPL_IF NAME="email" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Reservation: <!-- TMPL_VAR NAME="title" -->">
 	<!-- TMPL_VAR NAME="email" --></a><!--/TMPL_IF-->
 					
@@ -35,12 +164,17 @@
 						<a href="/cgi-bin/koha/MARCdetail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a><br /><!-- TMPL_VAR NAME="author" -->
 					
 				</td>
-				<td><!-- TMPL_VAR NAME="holdingbranch" --> <!-- TMPL_VAR NAME="itemcallnumber" --></td>
+				<td><!-- TMPL_IF NAME="statusw" -->Waiting ( <!-- TMPL_VAR NAME="itemcallno" --> )<!-- /TMPL_IF --><!-- TMPL_IF NAME="statusf" -->Fullfilled ( <!-- TMPL_VAR NAME="itemcallno" --> )<!-- /TMPL_IF -->
+					<!-- TMPL_IF NAME="onshelf" --> On Shelf: <!-- TMPL_VAR NAME="onshelf" --> <!-- /TMPL_IF -->
+	</td>
 	
 				<td><!-- TMPL_VAR NAME="notes" --></td>
+				<td><a href='Javascript:Dopop("reserve.pl?borrower=<!-- TMPL_VAR NAME="bornum" -->&amp;biblionum=<!-- TMPL_VAR NAME="biblionumber" -->&amp;op=slip");' >Print Slip</a></td>
 			</tr>
 		<!-- /TMPL_LOOP -->
 		</table>
 	</div>
+<!-- /TMPL_IF -->
+<!-- /TMPL_IF -->
 </div>
 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->





More information about the Koha-cvs mailing list