(bug #3505) fix 210c and 225a unimarc's plugins
[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             <h3>Missing Issues</h3>
59             <table id="claimst">
60                 <thead><tr>
61                     <!--TMPL_IF NAME="letter"-->
62                     <th>Claim</th>
63                     <!--/TMPL_IF-->
64                     <th>Supplier</th>
65                     <th>Title</th>
66                     <th>Issue number</th>
67                     <th>Status</th>
68                     <th>Since</th>
69                     <th>&nbsp;</th>
70                 <th>Begin Claim</th>
71                 </tr></thead>
72                 <tbody><!-- TMPL_LOOP name="missingissues" -->
73                     <tr>
74                         <!--TMPL_IF NAME="letter" -->
75                             <td>
76                     <input type="checkbox" name="serialid" value="<!-- TMPL_VAR NAME="serialid"-->" />
77                             </td>
78                         <!--/TMPL_IF-->
79                         <td>
80                         <!-- TMPL_VAR name="name" -->
81                         </td>
82                         <td>
83                         <a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->"><!-- TMPL_VAR name="title" escape="html" --></a>
84                         </td>
85                         <td>
86                         <!-- TMPL_VAR name="serialseq" -->
87                         </td>
88                         <td>
89                             <!-- TMPL_IF Name="status1" -->Expected<!-- /TMPL_IF -->
90                             <!-- TMPL_IF Name="status2" -->Arrived<!-- /TMPL_IF -->
91                             <!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF -->
92                             <!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF -->
93                             <!-- TMPL_IF Name="status7" -->Claimed<!-- /TMPL_IF -->
94                         </td>
95                         <td>
96                         <!-- TMPL_VAR name="planneddate" -->
97                         </td>
98                         <td>
99                         <!-- TMPL_VAR name="claimdate" -->
100                         </td>
101                         <td>
102                             <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>
103                         </td>
104                     </tr>
105                 <!-- /TMPL_LOOP --></tbody>
106             </table>
107         <!-- TMPL_IF Name="singlesupplier"-->
108             <input type="hidden" name="supplierid" value="<!--TMPL_VAR NAME="supplierid"-->" />
109             <!-- <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> -->
110         <!-- /TMPL_IF -->
111
112 <!--TMPL_IF Name="letter" -->
113         <fieldset class="action"> <label for="letter_code">Select notice:</label>
114             <select name="letter_code" id="letter_code">
115                 <!-- TMPL_LOOP name="letters" -->
116                     <option value="<!--TMPL_VAR Name="code"-->"><!--TMPL_VAR Name="name"--></option>
117                 <!--/TMPL_LOOP-->
118             </select> <input type="submit" name="submit" class="button" value="Send letter" /></fieldset>
119             <!--/TMPL_IF-->
120 <!-- /TMPL_IF -->
121
122         </form>
123 <!-- TMPL_ELSE -->
124
125 <div id="doc" class="yui-t7">
126    <div id="bd">
127         
128 <!-- TMPL_IF Name="supplierloop"-->
129         <!-- TMPL_LOOP Name="supplierloop"-->
130         <!-- TMPL_IF NAME="name" -->
131         <p><b><!-- TMPL_VAR NAME="name" --></b><br />
132         <!-- /TMPL_IF -->
133         <!-- TMPL_IF NAME="postal" -->
134         <!-- TMPL_VAR NAME="postal" --><br />
135         <!-- /TMPL_IF -->
136         <!-- TMPL_IF NAME="contphone" -->
137         Ph: <!-- TMPL_VAR NAME="contphone" --><br />
138         <!-- /TMPL_IF -->
139         <!-- TMPL_IF NAME="contfax" -->
140         Fax: <!-- TMPL_VAR NAME="contfax" --><br />
141         <!-- /TMPL_IF -->
142         <!-- TMPL_IF NAME="contemail" -->
143         Email: <!-- TMPL_VAR NAME="contemail" --><br />
144         <!-- /TMPL_IF -->
145         <!-- TMPL_IF NAME="accountnumber" -->
146         A/C: <!-- TMPL_VAR NAME="accountnumber" --></p>
147         <!-- /TMPL_IF -->
148         <!-- TMPL_IF NAME="contact" -->
149         <p>Dear <!-- TMPL_VAR NAME="contact" --></p>
150         <!-- TMPL_ELSE -->
151         <p>To whom it may concern</p>
152         <!-- /TMPL_IF -->
153         <p>The following items have not been received from you and are now considered missing:</p>
154         <!-- /TMPL_LOOP -->
155 <!-- /TMPL_IF -->
156         <!-- TMPL_IF NAME="missingissues" -->
157         <h3>Missing Issues</h3>
158         <table>
159             <tr>
160                 <td><b>Supplier<b></td>
161                 <td><b>Title</b></td>
162                 <td><b>Issue number</b></td>
163                 <td><b>Missing since</b></td>
164             </tr>
165             <!-- TMPL_LOOP name="missingissues" -->
166                 <tr>
167                     <td>
168                     <!-- TMPL_VAR name="name" -->
169                     </td>
170                     <td>
171                     <!-- TMPL_VAR name="Title" escape="html" -->
172                     </td>
173                     <td>
174                     <!-- TMPL_VAR name="serialseq" -->
175                     </td>
176                     <td>
177                     <!-- TMPL_VAR name="planneddate" -->
178                     </td>
179                 </tr>
180             <!-- /TMPL_LOOP -->
181         </table>
182         <!-- /TMPL_IF -->
183
184 <p class="noprint"><a href="#" onclick="window.print(); return false;">Print</a> &nbsp; <a href="#" class="close">Close</a></p>
185 <!-- /TMPL_UNLESS -->
186
187 </div>
188 </div>
189
190 <!-- TMPL_UNLESS NAME="preview" -->
191 <div class="yui-b">
192 <!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
193 </div>
194 <!-- /TMPL_UNLESS -->
195 </div>
196 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->