Bug 30952: Staff interface redesign (header)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / subscription-batchedit.tt
1 [% USE AuthorisedValues %]
2 [% USE Branches %]
3 [% USE ItemTypes %]
4 [% USE KohaDates %]
5 [% INCLUDE 'doc-head-open.inc' %]
6     <title>Batch edit &rsaquo; Serials &rsaquo; Koha</title>
7     [% INCLUDE 'doc-head-close.inc' %]
8     [% INCLUDE 'calendar.inc' %]
9 </head>
10 <body id="ser_subscription-batchedit" class="ser">
11     [% WRAPPER 'header.inc' %]
12     [% INCLUDE 'serials-search.inc' %]
13 [% END %]
14
15     [% WRAPPER 'sub-header.inc' %]
16     <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
17         <ol>
18             <li>
19                 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
20             </li>
21             <li>
22                 <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a>
23             </li>
24             <li>
25                 <a href="#" aria-current="page">
26                     Batch edit
27                 </a>
28             </li>
29         </ol>
30     </nav>
31     [% END %]
32
33 <div class="main container-fluid">
34     <div class="row">
35         <div class="col-sm-10 col-sm-push-2">
36             <main>
37
38                     <h1>Subscription batch edit</h1>
39
40                     <div>
41                         <p>You are about to edit the following subscriptions:</p>
42                         <table>
43                             <thead>
44                                 <tr>
45                                     <th>ISSN</th>
46                                     <th>Title</th>
47                                     <th>Vendor</th>
48                                     <th>Location</th>
49                                     <th>Library</th>
50                                     <th>Item type</th>
51                                     <th>Public notes</th>
52                                     <th>Nonpublic notes</th>
53                                     <th>Call number</th>
54                                     <th>Create item when receiving</th>
55                                     <th>Expiration date</th>
56                                 </tr>
57                             </thead>
58                             <tbody>
59                                 [% FOREACH subscription IN subscriptions %]
60                                     <tr>
61                                         <td>[% subscription.biblio.biblioitem.issn | html %]</td>
62                                         <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% subscription.subscriptionid | uri %]">[% subscription.biblio.title | html %] (#[% subscription.subscriptionid | html %])</a></td>
63                                         <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% subscription.vendor.id | uri %]">[% subscription.vendor.name | html %]</a></td>
64                                         <td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %]</td>
65                                         <td>[% Branches.GetName(subscription.branchcode) | html %]</td>
66                                         <td>[% ItemTypes.GetDescription( subscription.itemtype ) | html %]</td>
67                                         <td>[% subscription.notes | html %]</td>
68                                         <td>[% subscription.internalnotes | html %]</td>
69                                         <td>[% subscription.callnumber | html %]</td>
70                                         <td>
71                                             [% IF subscription.serialsadditems %]
72                                                 <span>Yes</span>
73                                             [% ELSE %]
74                                                 <span>No</span>
75                                             [% END %]
76                                         </td>
77                                         <td>[% subscription.enddate | $KohaDates %]</td>
78                                     </tr>
79                                 [% END %]
80                             </tbody>
81                         </table>
82                     </div>
83
84                     <form method="post">
85                         [% FOREACH subscription IN subscriptions %]
86                             <input type="hidden" name="subscriptionid" value="[% subscription.subscriptionid | html %]"/>
87                         [% END %]
88                         [% IF referrer %]
89                             <input type="hidden" name="referrer" value="[% referrer | html %]"/>
90                         [% END %]
91                         <fieldset class="rows">
92                             <ol>
93                                 <li>
94                                     <label for="booksellerid">Vendor:  </label>
95                                     <select id="booksellerid" name="booksellerid">
96                                         <option value="">No change</option>
97                                         [% FOREACH bookseller IN booksellers %]
98                                             <option value="[% bookseller.id | html %]">[% bookseller.name | html %]</option>
99                                         [% END %]
100                                     </select>
101                                 </li>
102                                 <li>
103                                     <label for="location">Location: </label>
104                                     <select id="location" name="location">
105                                         <option value="">No change</option>
106                                         [% FOREACH av IN AuthorisedValues.Get('LOC') %]
107                                             <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
108                                         [% END %]
109                                     </select>
110                                 </li>
111                                 <li>
112                                     <label for="branchcode">Library: </label>
113                                     <select id="branchcode" name="branchcode">
114                                         <option value="">No change</option>
115                                         [% FOREACH branch IN Branches.all %]
116                                             <option value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
117                                         [% END %]
118                                     </select>
119                                 </li>
120                                 <li>
121                                     <label for="itemtype">Item type: </label>
122                                     <select id="itemtype" name="itemtype">
123                                         <option value="">No change</option>
124                                         [% FOREACH itemtype IN ItemTypes.Get() %]
125                                             <option value="[% itemtype.itemtype | html %]">[% itemtype.description | html %]</option>
126                                         [% END %]
127                                     </select>
128                                 </li>
129                                 <li>
130                                     <label for="notes">Public note: </label>
131                                     <textarea id="notes" name="notes" placeholder="No change"></textarea>
132                                 </li>
133                                 <li>
134                                     <label for="internalnotes">Nonpublic note: </label>
135                                     <textarea id="internalnotes" name="internalnotes" placeholder="No change"></textarea>
136                                 </li>
137                                 <li>
138                                     <label for="serialsadditems">Create item when receiving: </label>
139                                     <select id="serialsadditems" name="serialsadditems">
140                                         <option value="">No change</option>
141                                         <option value="0">No</option>
142                                         <option value="1">Yes</option>
143                                     </select>
144
145                                 </li>
146                                 <li>
147                                     <label for="enddate">Expiration date: </label>
148                                     <input type="text" class="flatpickr" id="enddate" name="enddate" placeholder="No change"/>
149                                 </li>
150                                 [% FOREACH field IN additional_fields %]
151                                     <li>
152                                         <label for="field_[% field.id | html %]">[% field.name | html %]</label>
153                                         [% IF field.authorised_value_category %]
154                                             <select id="field_[% field.id | html %]" name="field_[% field.id | html %]">
155                                                 <option value="">No change</option>
156                                                 [% FOREACH av IN AuthorisedValues.Get(field.authorised_value_category) %]
157                                                     <option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
158                                                 [% END %]
159                                             </select>
160                                         [% ELSE %]
161                                             <input type="text" id="field_[% field.id | html %]" name="field_[% field.id | html %]" placeholder="No change"/>
162                                         [% END %]
163                                     </li>
164                                 [% END %]
165                             </ol>
166                         </fieldset>
167
168                         <fieldset class="action">
169                             <button type="submit" name="batchedit" value="1">Save</button>
170                             <a class="cancel" href="[% referrer | url %]">Cancel</a>
171                         </fieldset>
172                     </form>
173
174             </main>
175         </div> <!-- /.col-sm-10.col-sm-push-2 -->
176
177         <div class="col-sm-2 col-sm-pull-10">
178             <aside>
179                 [% INCLUDE 'serials-menu.inc' %]
180             </aside>
181         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
182     </div> <!-- /.row -->
183
184
185     [% INCLUDE 'intranet-bottom.inc' %]