More fixes for Bug 2600, enabling the appearance of HTML tags in item titles. Resubmi...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / claims.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2     <title>Koha &rsaquo; Serials &rsaquo; Claims</title>
3     <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
6 <script type="text/JavaScript" language="JavaScript">
7 //<![CDATA[
8          $(document).ready(function() {
9                 <!-- TMPL_UNLESS NAME="preview" -->$("#claimst").tablesorter({<!-- TMPL_IF EXPR="dateformat eq 'metric'" -->
10                         dateFormat: 'uk',<!-- /TMPL_IF -->
11                         headers: { 0: { sorter: false },1:{sorter:false},2: { sorter: false },3:{sorter:false},6:{sorter:false}}
12                 });<!-- /TMPL_UNLESS -->
13             $('#supplierid').change(function() {
14             $('#claims').submit();
15             });
16          });
17
18                 function popup(supplierid,serialid){
19                         window.open('claims.pl?supplierid='+ supplierid +'&amp;serialid='+ serialid +'&amp;op=preview' ,'popup', 'width=600,height=400,toolbar=no,scrollbars=yes');
20                 }
21 //]]>
22 </script>
23 </head>
24 <body>
25     <!-- TMPL_INCLUDE NAME="header.inc" -->
26 <!-- TMPL_UNLESS NAME="preview" -->
27     <!--TMPL_INCLUDE NAME="serials-search.inc" -->
28 <!-- /TMPL_UNLESS -->
29
30 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Claims</div>
31
32 <!-- TMPL_UNLESS NAME="preview" -->
33
34 <div id="doc3" class="yui-t2">
35    
36    <div id="bd">
37         <div id="yui-main">
38         <div class="yui-b">
39
40     <h1>Claims</h1>
41
42 <!-- TMPL_IF NAME="letter" --><!-- TMPL_UNLESS NAME="missingissues" --><!-- TMPL_IF NAME="supplierid" --> <div class="dialog alert">No missing issues found.</div><!-- TMPL_ELSE --><div class="dialog message">Please choose a supplier.</div><!-- /TMPL_IF --><!-- /TMPL_UNLESS --><!-- /TMPL_IF -->
43         
44         <!-- TMPL_UNLESS NAME="letter" --><div class="dialog alert">No claims notice defined. <a href="/cgi-bin/koha/tools/letter.pl">Please define one</a>.</div><!-- /TMPL_UNLESS -->
45     <form id="claims" name="claims" action="claims.pl" method="post">
46     <fieldset><label for="supplierid">View: </label>
47         <!-- TMPL_VAR name="CGIsupplier" -->
48         <input type="submit" value="OK" />
49         <!-- TMPL_IF name="phone" -->Phone: <!-- TMPL_VAR name="phone" --><!-- /TMPL_IF -->
50         <!-- TMPL_IF name="booksellerfax" -->Fax: <!-- TMPL_VAR name="booksellerfax" --><!-- /TMPL_IF -->
51         <!-- TMPL_IF name="bookselleremail" --></p><p><a href="mailto:<!-- TMPL_VAR name="bookselleremail" -->"><!-- TMPL_VAR name="bookselleremail" --></a><!-- /TMPL_IF -->
52     </fieldset>
53 </form>
54
55    <!-- TMPL_IF NAME="missingissues" -->        
56     <form action="claims.pl" method="post">
57         <input type="hidden" name="order" value="<!--TMPL_VAR Name="order"-->" />
58         <input type="hidden" name="op" value="" />
59             <h3>Missing Issues</h3>
60             <table id="claimst">
61                 <thead><tr>
62                     <!--TMPL_IF NAME="letter"-->
63                     <th>Claim</th>
64                     <!--/TMPL_IF-->
65                     <th>Supplier</th>
66                     <th>Title</th>
67                     <th>Issue number</th>
68                     <th>Status</th>
69                     <th>Since</th>
70                     <th>&nbsp;</th>
71                 <th>Begin Claim</th>
72                 </tr></thead>
73                 <tbody><!-- TMPL_LOOP name="missingissues" -->
74                     <tr>
75                         <!--TMPL_IF NAME="letter" -->
76                             <td>
77                     <input type="checkbox" name="serialid" value="<!-- TMPL_VAR NAME="serialid"-->" onclick="document.claims.op='send_alert';" />
78                             </td>
79                         <!--/TMPL_IF-->
80                         <td>
81                         <!-- TMPL_VAR name="name" -->
82                         </td>
83                         <td>
84                         <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->"><!-- TMPL_VAR name="title" escape="html" --></a>
85                         </td>
86                         <td>
87                         <!-- TMPL_VAR name="serialseq" -->
88                         </td>
89                         <td>
90                             <!-- TMPL_IF Name="status1" -->Expected<!-- /TMPL_IF -->
91                             <!-- TMPL_IF Name="status2" -->Arrived<!-- /TMPL_IF -->
92                             <!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF -->
93                             <!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF -->
94                             <!-- TMPL_IF Name="status7" -->Claimed<!-- /TMPL_IF -->
95                         </td>
96                         <td>
97                         <!-- TMPL_VAR name="planneddate" -->
98                         </td>
99                         <td>
100                         <!-- TMPL_VAR name="claimdate" -->
101                         </td>
102                         <td>
103                             <a href="/cgi-bin/koha/serials/lateissues-excel.pl?supplierid=<!-- TMPL_VAR name="supplieri" -->&amp;serialid=<!-- TMPL_VAR name="serialid" -->&amp;op=claims">Export item data</a>
104                         </td>
105                     </tr>
106                 <!-- /TMPL_LOOP --></tbody>
107             </table>
108         <!-- TMPL_IF Name="singlesupplier"-->
109             <input type="hidden" name="supplierid" value="<!--TMPL_VAR NAME="supplierid"-->" />
110             <!-- <a href="claims.pl?supplierid=<!-- TMPL_VAR name="supplierid" -->&amp;op=preview" onclick="popup(<!-- TMPL_VAR name="supplierid" -->,''); return false" class="button">Supplier Group Claim Notice</a></p> -->
111         <!-- /TMPL_IF -->
112
113 <!--TMPL_IF Name="letter" -->
114         <fieldset class="action"> <label for="letter_code">Select notice:</label>
115             <select name="letter_code" id="letter_code">
116                 <!-- TMPL_LOOP name="letters" -->
117                     <option value="<!--TMPL_VAR Name="code"-->"><!--TMPL_VAR Name="name"--></option>
118                 <!--/TMPL_LOOP-->
119             </select> <input type="submit" name="submit" class="button" value="Send letter" /></fieldset>
120             <!--/TMPL_IF-->
121 <!-- /TMPL_IF -->
122
123         </form>
124 <!-- TMPL_ELSE -->
125
126 <div id="doc" class="yui-t7">
127    <div id="bd">
128         
129 <!-- TMPL_IF Name="supplierloop"-->
130         <!-- TMPL_LOOP Name="supplierloop"-->
131         <!-- TMPL_IF NAME="name" -->
132         <p><b><!-- TMPL_VAR NAME="name" --></b><br />
133         <!-- /TMPL_IF -->
134         <!-- TMPL_IF NAME="postal" -->
135         <!-- TMPL_VAR NAME="postal" --><br />
136         <!-- /TMPL_IF -->
137         <!-- TMPL_IF NAME="contphone" -->
138         Ph: <!-- TMPL_VAR NAME="contphone" --><br />
139         <!-- /TMPL_IF -->
140         <!-- TMPL_IF NAME="contfax" -->
141         Fax: <!-- TMPL_VAR NAME="contfax" --><br />
142         <!-- /TMPL_IF -->
143         <!-- TMPL_IF NAME="contemail" -->
144         Email: <!-- TMPL_VAR NAME="contemail" --><br />
145         <!-- /TMPL_IF -->
146         <!-- TMPL_IF NAME="accountnumber" -->
147         A/C: <!-- TMPL_VAR NAME="accountnumber" --></p>
148         <!-- /TMPL_IF -->
149         <!-- TMPL_IF NAME="contact" -->
150         <p>Dear <!-- TMPL_VAR NAME="contact" --></p>
151         <!-- TMPL_ELSE -->
152         <p>To whom it may concern</p>
153         <!-- /TMPL_IF -->
154         <p>The following items have not been received from you and are now considered missing:</p>
155         <!-- /TMPL_LOOP -->
156 <!-- /TMPL_IF -->
157         <!-- TMPL_IF NAME="missingissues" -->
158         <h3>Missing Issues</h3>
159         <table>
160             <tr>
161                 <td><b>Supplier<b></td>
162                 <td><b>Title</b></td>
163                 <td><b>Issue number</b></td>
164                 <td><b>Missing since</b></td>
165             </tr>
166             <!-- TMPL_LOOP name="missingissues" -->
167                 <tr>
168                     <td>
169                     <!-- TMPL_VAR name="name" -->
170                     </td>
171                     <td>
172                     <!-- TMPL_VAR name="Title" escape="html" -->
173                     </td>
174                     <td>
175                     <!-- TMPL_VAR name="serialseq" -->
176                     </td>
177                     <td>
178                     <!-- TMPL_VAR name="planneddate" -->
179                     </td>
180                 </tr>
181             <!-- /TMPL_LOOP -->
182         </table>
183         <!-- /TMPL_IF -->
184
185 <p class="noprint"><a href="#" onclick="window.print(); return false;">Print</a> &nbsp; <a href="#" class="close">Close</a></p>
186 <!-- /TMPL_UNLESS -->
187
188 </div>
189 </div>
190
191 <!-- TMPL_UNLESS NAME="preview" -->
192 <div class="yui-b">
193 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
194 </div>
195 <!-- /TMPL_UNLESS -->
196 </div>
197 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->