templating serials & moving them to a serials directory, more self-explanatory (bull...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / serials / subscription-detail.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Subscription detail<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2
3 <!-- TMPL_INCLUDE NAME="menus.inc" -->
4 <!-- TMPL_INCLUDE NAME="menu-catalogue.inc" -->
5
6 <h1>Subscription for <!-- TMPL_VAR name="bibliotitle" --></h1>
7 <div id="serials_subscription_detail">
8         <h2>Subscription information</h2>
9                 <p>Librarian identity :</td><td> <!-- TMPL_VAR name="librarian" --></p>
10                 <p><label>Supplier </label><!-- TMPL_VAR name="aqbooksellername" --></p>
11                 <p><label>Cost</label><!-- TMPL_VAR name="cost" --></p>
12                 <p><label>Budget </label><!-- TMPL_VAR name="bookfundid" --></p>
13                 <p><label>Biblio</label><i>(<!-- TMPL_VAR name="biblionumber" -->)</i> <!-- TMPL_VAR name="bibliotitle" --></p>
14                 <p><label>Notes:</label><!-- TMPL_VAR name="notes" --></p>
15                 <p>
16                         <!-- TMPL_IF name="letter" -->
17                                 <label>Issue alert with letter:</label><!-- TMPL_VAR name="letter" -->
18                         <!-- TMPL_ELSE -->
19                                 Borrowers can't subscribe to issue alerts
20                         <!-- /TMPL_IF -->
21                 </p>
22                 <p><label>Distributed to</label>
23                 <p><ul><!-- TMPL_VAR name="distributedto" --></ul></p>
24 </div>
25 <div id="serials_subscription_detail_planning">
26         <h2>Planning</h2>
27         <p><label>Beginnning date:</label> <!-- TMPL_VAR name="startdate" --></p>
28         <p><label>Frequency (*):</label>
29                 <!--TMPL_IF name="periodicity1" -->
30                                 1/day
31                 <!-- /TMPL_IF -->
32                 <!--TMPL_IF name="periodicity2" -->
33                                 1/week
34                 <!-- /TMPL_IF -->
35                 <!--TMPL_IF name="periodicity3" -->
36                                 1/2 weeks
37                 <!-- /TMPL_IF -->
38                 <!--TMPL_IF name="periodicity4" -->
39                                 1/3 weeks
40                 <!-- /TMPL_IF -->
41                 <!--TMPL_IF name="periodicity5" -->
42                                 1/Month
43                 <!-- /TMPL_IF -->
44                 <!--TMPL_IF name="periodicity6" -->
45                                 1/2 Months (6/year)
46                 <!-- /TMPL_IF -->
47                 <!--TMPL_IF name="periodicity7" -->
48                                 1/quarter
49                 <!-- /TMPL_IF -->
50                 <!--TMPL_IF name="periodicity8" -->
51                                 1/quarter
52                 <!-- /TMPL_IF -->
53                 <!--TMPL_IF name="periodicity9" -->
54                                 2/year
55                 <!-- /TMPL_IF -->
56                 <!--TMPL_IF name="periodicity10" -->
57                                 1/year
58                 <!-- /TMPL_IF -->
59                 <!--TMPL_IF name="periodicity11" -->
60                                 1/2 years
61                 <!-- /TMPL_IF -->
62         </p>
63         <p><label>Arrives on:</label>
64                 <!--TMPL_IF name="arrival1" -->
65                         Monday
66                 <!-- /TMPL_IF -->
67                 <!--TMPL_IF name="arrival2" -->
68                                 Tuesday
69                 <!-- /TMPL_IF -->
70                 <!--TMPL_IF name="arrival3" -->
71                                 Wednesday
72                 <!-- /TMPL_IF -->
73                 <!--TMPL_IF name="arrival4" -->
74                                 Thursday
75                 <!-- /TMPL_IF -->
76                 <!--TMPL_IF name="arrival5" -->
77                                 Friday
78                 <!-- /TMPL_IF -->
79                 <!--TMPL_IF name="arrival6" -->
80                                 Saturday
81                 <!-- /TMPL_IF -->
82                 <!--TMPL_IF name="arrival7" -->
83                                 Sunday
84                 <!-- /TMPL_IF -->
85 </div>
86 <div id="serials_subscription_detail_length">
87         <h2>Subscription length</h2>
88         <p><label>Number of issues</label><!-- TMPL_VAR name="numberlength" --></p>
89         <p><label>Number of weeks</label><!-- TMPL_VAR name="weeklength" --></p>
90         <p><label>Number of months</label><!-- TMPL_VAR name="monthlength" --></p>
91
92 </div>
93 <div id="serials_subscription_detail_calculation">
94         <h2>Numbering calculation</h2>
95         <p>
96                 <p>Numbering formula: <!-- TMPL_VAR name="numberingmethod" --></p>
97                 <table>
98                         <tr>
99                                 <th>&nbsp;</th>
100                                 <th>&nbsp;&nbsp;&nbsp;&nbsp;X&nbsp;&nbsp;&nbsp;&nbsp;</th>
101                                 <th>&nbsp;&nbsp;&nbsp;&nbsp;Y&nbsp;&nbsp;&nbsp;&nbsp;</th>
102                                 <th>&nbsp;&nbsp;&nbsp;&nbsp;Z&nbsp;&nbsp;&nbsp;&nbsp;</th>
103                         </tr>
104                         <tr>
105                                 <td>Add</td>
106                                 <td>
107                                         <!-- TMPL_VAR name="add1" -->
108                                 </td>
109                                 <td>
110                                         <!-- TMPL_VAR name="add2" -->
111                                 </td>
112                                 <td>
113                                         <!-- TMPL_VAR name="add3" -->
114                                 </td>
115                         </tr>
116                         <tr>
117                                 <td>once every</td>
118                                 <td><!-- TMPL_VAR name="every1" --></td>
119                                 <td><!-- TMPL_VAR name="every2" --></td>
120                                 <td><!-- TMPL_VAR name="every3" --></td>
121                         </tr>
122                         <tr>
123                                 <td>When more than</td>
124                                 <td><!-- TMPL_VAR name="whenmorethan1" --> <!-- TMPL_IF name="innerloop1" --><br/>
125                                         <i>(is <!-- TMPL_VAR name="innerloop1" -->)</i><!-- /TMPL_IF --></td>
126                                 <td><!-- TMPL_VAR name="whenmorethan2" --> <!-- TMPL_IF name="innerloop2" --><br/>
127                                         <i>(is <!-- TMPL_VAR name="innerloop2" -->)</i><!-- /TMPL_IF --></td>
128                                 <td><!-- TMPL_VAR name="whenmorethan3" --> <!-- TMPL_IF name="innerloop3" --><br/>
129                                         <i>(is <!-- TMPL_VAR name="innerloop3" -->)</i><!-- /TMPL_IF --></td>
130                         </tr>
131                         <tr>
132                                 <td>Set back to</td>
133                                 <td><!-- TMPL_VAR name="setto1" --></td>
134                                 <td><!-- TMPL_VAR name="setto2" --></td>
135                                 <td><!-- TMPL_VAR name="setto3" --></td>
136                         </tr>
137                         <tr>
138                                 <td>
139                                                 Last value
140                                 </td>
141                                 <td><!-- TMPL_VAR name="lastvalue1" --></td>
142                                 <td><!-- TMPL_VAR name="lastvalue2" --></td>
143                                 <td><!-- TMPL_VAR name="lastvalue3" --></td>
144                         </tr>
145                 </table>
146 </div>
147 <div id="serials_subscription_detail_issue_list">
148         <h2>Issues</h2>
149         <table class="small">
150         <tr>
151                 <th>&nbsp;&nbsp;&nbsp;&nbsp;Issue number&nbsp;&nbsp;&nbsp;&nbsp;</th>
152                 <th>&nbsp;&nbsp;&nbsp;&nbsp;Planned date&nbsp;&nbsp;&nbsp;&nbsp;</th>
153                 <th>&nbsp;&nbsp;&nbsp;&nbsp;Status&nbsp;&nbsp;&nbsp;&nbsp;</th>
154                 <th>&nbsp;&nbsp;&nbsp;&nbsp;Note&nbsp;&nbsp;&nbsp;&nbsp;</th>
155         </tr>
156         <!-- TMPL_LOOP name="serialslist" -->
157                 <tr>
158                         <td>
159                                 <!-- TMPL_VAR name="serialseq" -->
160                         </td>
161                         <td>
162                                 <!-- TMPL_VAR name="planneddate" -->
163                         </td>
164                         <td>
165                                         <!--TMPL_IF name="status1" -->
166                                                 Waited
167                                         <!-- /TMPL_IF -->
168                                         <!--TMPL_IF name="status2" -->
169                                                 Arrived
170                                         <!-- /TMPL_IF -->
171                                         <!--TMPL_IF name="status3" -->
172                                                 Late
173                                         <!-- /TMPL_IF -->
174                                         <!--TMPL_IF name="status4" -->
175                                                 Missing
176                                         <!-- /TMPL_IF -->
177                                 </select>
178                         </td>
179                         <td>
180                                 <!-- TMPL_VAR name="notes" -->
181                         </td>
182                 </tr>
183         <!-- /TMPL_LOOP -->
184         </table>
185 </div>
186
187 <div id="action">
188         <form action="subscription-add.pl">
189                 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
190                 <input type="hidden" name="op" value="mod" />
191                 <input type="submit" value="Modify subscription" />
192         </form>
193         <form action="statecollection.pl">
194                 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
195                 <input type="submit" value="Recieve issues" />
196         </form>
197         <form action="serial-issues.pl">
198                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
199                 <input type="submit" value="Issue history" />
200         </form>
201         <form action="/cgi-bin/koha/bull-home.pl">
202                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
203                 <input type="submit" value="Subscriptions" />
204         </form>
205 <!-- TMPL_IF name="letter" -->
206         <form action="viewalerts.pl">
207                 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->" />
208                 <input type="submit" value="Alerted borrowers" />
209         </form>
210 <!-- /TMPL_IF -->
211         <form action="/cgi-bin/koha/MARCdetail.pl">
212                 <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" />
213                 <input type="submit" value="Back to biblio" />
214         </form>
215         <!-- TMPL_UNLESS name="totalissues" -->
216                 <form action="javascript:confirm_deletion()">
217                         <input type="submit" value="delete" />
218                 </form>
219         <!-- /TMPL_UNLESS -->
220 </div>
221
222 <script>
223 function _(s) { return s } // dummy function for gettext
224 function confirm_deletion() {
225         var is_confirmed = confirm(_('Are you sure you want to delete this subscription?'));
226         if (is_confirmed) {
227                 window.location="subscription-detail.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&op=del";
228         }
229 }
230 </script>
231 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->