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