- Lots of markup corrections, in scripts and templates, for XHTML compliance
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / checkexpiration.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Serials Expiration</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
5 <script type="text/javascript" language="JavaScript">
6 // <![CDATA[
7     
8     /**
9      *  Function CheckForm
10      *  This function checks the form before submit
11      */
12      function CheckForm(form){
13         if(form.date.value){
14             return true;
15         }
16         else {
17             alert("You must enter a date !");
18             document.f.date.focus();
19             return false;
20         }
21      }
22      // ]]>
23 </script>
24 <!-- End of additions -->
25 </head>
26 <body>
27 <!-- TMPL_INCLUDE NAME="header.inc" -->
28 <!-- TMPL_INCLUDE NAME="serials-search.inc" -->
29
30 <div id="doc3" class="yui-t2">
31    
32    <div id="bd">
33         <div id="yui-main">
34         <div class="yui-b">
35
36
37 <h1>Check expiration</h1>
38
39 <fieldset>
40     <legend>Select record which will expire</legend>
41     
42     <form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="post" onsubmit="return CheckForm(this);">
43          
44         <p><label for="title">Filter on title</label>
45         <input id="title" type="text" name="title" size="15" value="<!--TMPL_VAR NAME="title"-->" /></p>
46
47         <p><label for="issn">Filter on ISSN</label>
48         <input id="issn" type="text" name="issn" size="15" value="<!-- TMPL_VAR NAME="issn"-->" /></p>
49
50         <p><label for="date">with expiration date before</label>
51         <input id="date" type="text" name="date" size="10" value="<!-- TMPL_VAR NAME="date"-->" class="focus" />
52             <script type="text/javascript">
53                 Calendar.setup(
54                  {
55                      inputField : "date",
56                      ifFormat : "%Y-%m-%d",
57                  }
58                 );
59             </script></p>
60         <input type="submit" value="Search" />
61     </form>
62 </fieldset>
63
64 <!-- TMPL_IF NAME="subscriptions_loop"-->
65 <p>
66     <b><!-- TMPL_VAR NAME="numsubscription"--></b> subscription(s)
67         <!-- TMPL_IF NAME="title"-->
68         with title like <b><!-- TMPL_VAR NAME="title"--></b>
69         <!-- TMPL_IF NAME="issn"-->and <!-- /TMPL_IF -->
70     <!-- /TMPL_IF -->
71     <!-- TMPL_IF NAME="issn"-->
72         ISSN like <b><!-- TMPL_VAR NAME="issn" --></b>
73     <!-- /TMPL_IF -->
74         will expire before <b><!-- TMPL_VAR NAME="date" --></b>
75 </p>
76 <table>
77         <tr>
78             <th>ISSN</th>
79             <th>Title</th>
80             <th>Note</th>
81             <th>Expiration date</th>
82         </tr>
83     <!-- TMPL_LOOP NAME="subscriptions_loop"-->
84         <!-- TMPL_IF NAME="toogle"-->
85         <tr class="highlight">
86         <!-- TMPL_ELSE -->
87         <tr>
88         <!-- /TMPL_IF -->
89             <td>
90                 <!-- TMPL_VAR NAME="issn" -->
91             </td>
92             <td>
93             <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
94                 <a class="title" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
95                 <!-- TMPL_IF NAME="title"-->
96                     <!-- TMPL_VAR NAME="title" -->
97                 <!-- TMPL_ELSE -->
98                     |
99                 <!-- /TMPL_IF -->
100                 </a>
101                 <!-- TMPL_ELSE -->
102                 <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
103                 <a class="title" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
104                 <!-- TMPL_IF NAME="title"-->
105                     <!-- TMPL_VAR NAME="title" -->
106                 <!-- TMPL_ELSE -->
107                     |
108                 <!-- /TMPL_IF -->
109                 </a>
110                 <!-- TMPL_ELSE -->
111                 <a class="title" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
112                 <!-- TMPL_IF NAME="title"-->
113                     <!-- TMPL_VAR NAME="title" -->
114                 <!-- TMPL_ELSE -->
115                     |
116                 <!-- /TMPL_IF -->
117                 </a>
118                 <!-- /TMPL_IF -->
119             <!-- /TMPL_IF -->
120             </td>
121             <td>
122                 <!-- TMPL_VAR NAME="notes"-->
123             </td>
124             <td>
125                 <!-- TMPL_VAR NAME="expirationdate" -->
126             </td>
127         </tr>
128     <!-- /TMPL_LOOP -->
129     </table>
130 <!-- /TMPL_IF -->
131
132 </div>
133 </div>
134
135 <div class="yui-b">
136 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
137 </div>
138 </div>
139 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->