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