Markup corrections and standardizations.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / reserveratios.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Hold Ratios</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- Additions to enable Calendar system -->
5 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
6 <!-- End of additions --><!-- Additions to enable Calendar system -->
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
10 <!-- End of additions -->
11 </head>
12 <body>
13 <!-- TMPL_INCLUDE NAME="header.inc" -->
14 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
15
16
17 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Hold Ratios</div>
18
19 <div id="doc" class="yui-t7">
20    
21    <div id="bd">
22         <div id="yui-main">
23         <div class="yui-g">
24
25 <h1>Hold Ratios to Calculate Items Needed<br/>
26     Calculated on <!-- TMPL_VAR NAME="todaysdate" --> <br/>From <!-- TMPL_VAR NAME="from" -->
27         to <!-- TMPL_VAR NAME="to" --></h1>
28 <div id="filters">
29 <br />
30
31 <form action="/cgi-bin/koha/circ/reserveratios.pl" method="post" >
32 <p>
33 <label for="ratio">
34     Hold Ratio:
35 </label>
36 <input type="text" size="5" id="ratio" name="ratio" value="<!-- TMPL_VAR NAME="ratio" -->" />
37 <label for="from">
38     Start date:
39 </label>
40 <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
41 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif"  border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
42 <script language="JavaScript" type="text/javascript">
43 function validate1(date) {
44     var day = date.getDate();
45     var month = date.getMonth() + 1;
46     var year = date.getFullYear();
47     var weekDay = date.getDay();
48     var dayMonth = month + '-' + day;
49     var dateString = year + '-' + month + '-' + day;
50     var dateTo = document.getElementById('to').value.split("-");
51     var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
52     if (date > limitDate) {
53             return true;
54     } else {
55             return false;
56     }
57 }
58 Calendar.setup(
59         {
60         inputField : "from",
61         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
62         button : "openCalendarFrom",
63         disableFunc : validate1,
64         dateStatusFunc : validate1
65         }
66 );
67 </script>
68 <label for="to" >
69     End date:
70 </label>
71 <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
72 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" border="0" />
73 <script type="text/javascript">
74         function validate2(date) {
75             var day = date.getDate();
76             var month = date.getMonth() + 1;
77             var year = date.getFullYear();
78             var weekDay = date.getDay();
79             var dayMonth = month + '-' + day;
80             var dateString = year + '-' + month + '-' + day;
81             var dateFrom = document.getElementById('from').value.split("-");
82             var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
83             if (limitDate > date) {
84                     return true;
85             } else {
86                     return false;
87             }
88         }
89
90         Calendar.setup(
91                 {
92                     inputField : "to",
93                     ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
94                     button : "openCalendarTo",
95                     disableFunc : validate2,
96                     dateStatusFunc : validate2
97                 }
98         );
99 </script>
100 (inclusive)
101
102 <input type="submit" value="Go" class="submit"/>
103 </p>
104 </form>
105 <p>These items have a large number of holds.</p>
106 </div>
107
108 <div class="searchresults">
109     <!-- TMPL_IF NAME="reserveloop" -->
110     <table>
111     <tr>
112         <th >Reserves
113         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=reservecount&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
114         </th>
115         <th >Items
116         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=itemcount&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
117         </th>
118         <th >Title
119         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=biblio&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
120         </th>
121         <th>Holding Branches
122         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=branch&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
123         </th>
124         <th>Location
125         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=location&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
126         </th>
127         <th>Itype
128         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=itype&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
129         </th>
130         <th>Call Numbers
131         <a href="/cgi-bin/koha/circ/reserveratios.pl?ratio=<!-- TMPL_VAR NAME="ratio" -->&amp;order=callnumber&amp;from=<!-- TMPL_VAR NAME="from" -->&amp;to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
132         </th>
133         <th >Items Needed
134         </th>
135     </tr>
136     
137     <!-- TMPL_LOOP NAME="reserveloop" -->
138         <!-- TMPL_IF name="ratio_ge_one" -->
139         <tr>
140                  <td>
141                           <p><!-- TMPL_VAR NAME="reservecount" --></p>
142                  </td>
143                  <td>
144                           <p><!-- TMPL_VAR NAME="itemcount" --></p>
145                  </td>
146                 <td>
147                     <p>
148                     <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
149                     <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
150                         <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
151                     </a>
152                     <!-- TMPL_ELSE -->
153                         <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
154                         <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
155                             <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
156                         </a>
157                         <!-- TMPL_ELSE -->
158                             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
159                                 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
160                             </a>
161                         <!-- /TMPL_IF -->
162                     <!-- /TMPL_IF -->
163                     </p>
164                     <p><!-- TMPL_VAR NAME="notes" --></p>
165                 </td>
166
167                 <td><p><!-- TMPL_VAR NAME="listbranch" --></p></td>
168                 <td><p><!-- TMPL_VAR NAME="location" --></p></td>
169                 <td><p><!-- TMPL_VAR NAME="itype" --></p></td>
170                 <td><p><!-- TMPL_VAR NAME="listcall" --></p></td>
171                 <td><p><b>Order: <!-- TMPL_VAR NAME="ratiocalc" --></b></p></td>
172         </tr>
173         <!-- /TMPL_IF -->
174     <!-- /TMPL_LOOP -->
175     </table>
176     <!-- TMPL_ELSE -->
177         <b>No items found.</b>
178     <!-- /TMPL_IF -->
179 </div>
180 </div>
181 </div>
182 </div>
183 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->