|
Lines 10-18
Link Here
|
| 10 |
Batch list |
10 |
Batch list |
| 11 |
[% END %] › Order staged MARC records › Acquisitions › Koha |
11 |
[% END %] › Order staged MARC records › Acquisitions › Koha |
| 12 |
</title> |
12 |
</title> |
| 13 |
<style>@media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style> |
13 |
[% Asset.css("css/addbiblio.css") | $raw %] |
|
|
14 |
<style>.biblio { padding: 0 .5em;margin:0; }@media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style> |
| 14 |
[% INCLUDE 'doc-head-close.inc' %] |
15 |
[% INCLUDE 'doc-head-close.inc' %] |
| 15 |
[%# As long as cataloging plugins rely on 'script' tags added inline, JS must be in the header %] |
16 |
[%# As long as cataloging plugins rely on 'script' tags added inline, JS must be in the header %] |
|
|
17 |
<script> |
| 18 |
const template_path = "[% interface | html %]/[% theme | html %]"; |
| 19 |
</script> |
| 16 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
20 |
[% Asset.js("js/acquisitions-menu.js") | $raw %] |
| 17 |
[% INCLUDE 'datatables.inc' %] |
21 |
[% INCLUDE 'datatables.inc' %] |
| 18 |
[% Asset.js("js/acq.js") | $raw %] |
22 |
[% Asset.js("js/acq.js") | $raw %] |
|
Lines 51-57
Link Here
|
| 51 |
|
55 |
|
| 52 |
<div class="container-fluid"> |
56 |
<div class="container-fluid"> |
| 53 |
<div class="row"> |
57 |
<div class="row"> |
| 54 |
<div class="col-sm-6 col-sm-offset-3 col-md-8 col-md-offset-2"> |
58 |
<div class="col-md-10 col-md-offset-1"> |
| 55 |
[% IF ( allmatch ) %] |
59 |
[% IF ( allmatch ) %] |
| 56 |
<div class="dialog alert"> |
60 |
<div class="dialog alert"> |
| 57 |
<h4>No records imported</h4> |
61 |
<h4>No records imported</h4> |
|
Lines 112-339
Link Here
|
| 112 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" /> |
116 |
<input type="hidden" name="import_batch_id" value="[% import_batch_id | html %]" /> |
| 113 |
<input type="hidden" name="ordernumber" value="[% ordernumber | html %]" /> |
117 |
<input type="hidden" name="ordernumber" value="[% ordernumber | html %]" /> |
| 114 |
|
118 |
|
| 115 |
[% FOREACH biblio IN import_biblio_list %] |
119 |
<table class="biblio unselected dataTable"> |
| 116 |
<fieldset class="biblio unselected rows" style="float:none;"> |
120 |
<tbody> |
| 117 |
<legend> |
121 |
[% FOREACH biblio IN import_biblio_list %] |
| 118 |
<label for="record_[% biblio.import_record_id | html %]" style="width:auto;"> |
122 |
<tr> |
| 119 |
<input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id | html %]" value="[% biblio.import_record_id | html %]" /> |
123 |
<td> |
| 120 |
<span class="citation"> |
124 |
<input type="checkbox" name="import_record_id" id="record_[% biblio.import_record_id | html %]" value="[% biblio.import_record_id | html %]" /> |
| 121 |
[%- biblio.import_biblio.title | html -%] |
125 |
</td> |
| 122 |
[% biblio.import_biblio.author | html -%] |
126 |
<td> |
| 123 |
[% IF (biblio.import_biblio.isbn || biblio.import_biblio.issn) -%] |
127 |
<label for="record_[% biblio.import_record_id | html %]"> |
| 124 |
([%- biblio.import_biblio.isbn | html -%] |
128 |
<span class="title citation"> |
| 125 |
[%- IF (biblio.import_biblio.isbn && biblio.import_biblio.issn ) %] & [%- END -%] |
129 |
[%- biblio.import_biblio.title | html -%] |
| 126 |
[%- biblio.import_biblio.issn | html %]) |
130 |
[% biblio.import_biblio.author | html -%] |
| 127 |
[%- END -%] |
131 |
[% IF (biblio.import_biblio.isbn || biblio.import_biblio.issn) -%] |
| 128 |
</span> |
132 |
([%- biblio.import_biblio.isbn | html -%] |
| 129 |
</label> |
133 |
[%- IF (biblio.import_biblio.isbn && biblio.import_biblio.issn ) %] & [%- END -%] |
| 130 |
<span class="links" style="font-weight: normal;"> |
134 |
[%- biblio.import_biblio.issn | html %]) |
| 131 |
( <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% biblio.import_record_id | uri %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% biblio.import_record_id | html %]" class="previewData">Card</a> | <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid | html %]&basketno=[% basketno | html %]&breedingid=[% biblio.import_record_id | html %]&import_batch_id=[% biblio.import_batch_id | html %]&biblionumber=[% biblio.match_biblionumber | html %]">Add order</a> ) |
135 |
[%- END -%] |
| 132 |
</span> |
136 |
</span> |
| 133 |
</legend> |
137 |
</label> |
| 134 |
<div style="float:left"> |
138 |
<fieldset class="rows order_details"> |
| 135 |
<ol> |
139 |
<ol> |
| 136 |
<li class="status"> |
140 |
<li class="status"> |
| 137 |
<span class="match"> |
141 |
<span class="label">Match:</span> |
| 138 |
[% IF ( biblio_lis.overlay_status == 'no_match' ) %] |
142 |
<span class="match"> |
| 139 |
<span>No match</span> |
143 |
[% IF ( biblio_lis.overlay_status == 'no_match' ) %] |
| 140 |
[% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %] |
144 |
<span>No match</span> |
| 141 |
<span>Match applied</span> |
145 |
[% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %] |
| 142 |
[% ELSIF ( biblio_lis.overlay_status == 'auto_match' ) %] |
146 |
<span>Match applied</span> |
| 143 |
<span>Match found</span> |
147 |
[% ELSIF ( biblio_lis.overlay_status == 'auto_match' ) %] |
| 144 |
[% ELSE %] |
148 |
<span>Match found</span> |
| 145 |
[% biblio_lis.overlay_status | html %] |
|
|
| 146 |
[% END %] |
| 147 |
[% IF ( biblio.match_biblionumber ) %] |
| 148 |
<span>Matches biblio [% biblio.match_biblionumber | uri %]</span> (score = [% biblio.match_score | html %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.match_biblionumber | uri %]">[% biblio.match_citation | html %]</a> |
| 149 |
[% END %] |
| 150 |
</span> |
| 151 |
</li> |
| 152 |
<li class="quantity"> |
| 153 |
<label for="quantity_record_[% biblio.import_record_id | html %]" class="required">Quantity: </label> |
| 154 |
<input id="quantity_record_[% biblio.import_record_id | html %]" type="text" pattern="[0-9]+" value="[% biblio.quantity.length ? biblio.quantity : 1 | html %]" name="quantity" /> |
| 155 |
<span class="required">Required</span> |
| 156 |
</li> |
| 157 |
<li class="price"> |
| 158 |
<label for="price_record_[% biblio.import_record_id | html %]">Price: </label> |
| 159 |
<input id="price_record_[% biblio.import_record_id | html %]" type="text" value="[% biblio.price | html %]" name="price" /> |
| 160 |
</li> |
| 161 |
<li class="replacementprice"> |
| 162 |
<label for="replacementprice_record_[% biblio.import_record_id | html %]">Replacement price: </label> |
| 163 |
<input id="replacementprice_record_[% biblio.import_record_id | html %]" type="text" value="[% biblio.replacementprice | html %]" name="replacementprice" /> |
| 164 |
</li> |
| 165 |
<li class="discount"> |
| 166 |
<label for="discount_record_[% biblio.import_record_id | html %]">Discount: </label> |
| 167 |
<input id="discount_record_[% biblio.import_record_id | html %]" type="text" value="[% biblio.discount | html %]" name="discount" size="6" /> % |
| 168 |
<div class="hint">If empty, discount rate from vendor will be used</div> |
| 169 |
</li> |
| 170 |
<li class="fund"> |
| 171 |
[% IF ( close ) %] |
| 172 |
<label for="fund_record_[% biblio.import_record_id | html %]">Fund: </label> |
| 173 |
<input type="hidden" size="20" name="budget_id" value="[% budget_id | html %]" />[% Budget_name | html %] |
| 174 |
[% ELSE %] |
| 175 |
<label for="fund_record_[% biblio.import_record_id | html %]">Fund: </label> |
| 176 |
<select id="fund_record_[% biblio.import_record_id | html %]" name="budget_id"> |
| 177 |
<option value="">Select a fund (will use default if set)</option> |
| 178 |
[% FOREACH budget IN budget_loop %] |
| 179 |
[% IF ( budget.b_id == biblio.budget_id ) %] |
| 180 |
[% IF budget.b_active %] |
| 181 |
<option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]" selected="selected">[% budget.b_txt | html %]</option> |
| 182 |
[% ELSE %] |
| 183 |
<option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]" selected="selected">[% budget.b_txt | html %] (inactive)</option> |
| 184 |
[% END %] |
| 185 |
[% ELSE %] |
| 186 |
[% IF budget.b_active %]<option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]">[% budget.b_txt | html %]</option> |
| 187 |
[% ELSE %]<option value="[% budget.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]">[% budget.b_txt | html %] (inactive)</option> |
| 188 |
[% END %] |
| 189 |
[% END %] |
| 190 |
[% END %] |
| 191 |
</select> |
| 192 |
<span class="required" style="display:none">Required</span> |
| 193 |
[% END %] |
| 194 |
</li> |
| 195 |
<li class="sort1"> |
| 196 |
<label for="sort1_record_[% biblio.import_record_id | html %]">Statistic 1: </label> |
| 197 |
<input id="sort1_record_[% biblio.import_record_id | html %]" type="text" size="20" name="sort1" value="[% biblio.sort1 | html %]" /> |
| 198 |
</li> |
| 199 |
<li class="sort2"> |
| 200 |
<label for="sort2_record_[% biblio.import_record_id | html %]">Statistic 2: </label> |
| 201 |
<input id="sort2_record_[% biblio.import_record_id | html %]" type="text" size="20" name="sort2" value="[% biblio.sort2 | html %]" /> |
| 202 |
</li> |
| 203 |
</ol> |
| 204 |
</div> |
| 205 |
<div style="float:right"> |
| 206 |
[% IF biblio.item_error %]Item records could not be processed because the number of item fields was uneven.[% END %] |
| 207 |
[% FOREACH item IN biblio.iteminfos %] |
| 208 |
<fieldset> |
| 209 |
<legend>Item record [% item.item_id | html %]</legend> |
| 210 |
<ol> |
| 211 |
<li> |
| 212 |
<label for="homebranch_item_[% item.item_id | html %]">homebranch</label> |
| 213 |
<select id="homebranch_item_[% item.item_id | html %]" name="homebranch_[% biblio.import_record_id | html %]"> |
| 214 |
[% FOREACH l IN libraries %] |
| 215 |
[% IF l.branchcode == item.homebranch %] |
| 216 |
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> |
| 217 |
[% ELSE %] |
| 218 |
<option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> |
| 219 |
[% END %] |
| 220 |
[% END %] |
| 221 |
</select> |
| 222 |
</li> |
| 223 |
|
| 224 |
<li> |
| 225 |
<label for="holdingbranch_item_[% item.item_id | html %]">holdingbranch</label> |
| 226 |
<select id="holdingbranch_item_[% item.item_id | html %]" name="holdingbranch_[% biblio.import_record_id | html %]"> |
| 227 |
[% FOREACH l IN libraries %] |
| 228 |
[% IF l.branchcode == item.holdingbranch %] |
| 229 |
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> |
| 230 |
[% ELSE %] |
149 |
[% ELSE %] |
| 231 |
<option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> |
150 |
[% biblio_lis.overlay_status | html %] |
| 232 |
[% END %] |
151 |
[% END %] |
| 233 |
[% END %] |
152 |
[% IF ( biblio.match_biblionumber ) %] |
| 234 |
</select> |
153 |
<span>Matches biblio [% biblio.match_biblionumber | uri %]</span> (score = [% biblio.match_score | html %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.match_biblionumber | uri %]">[% biblio.match_citation | html %]</a> |
| 235 |
</li> |
|
|
| 236 |
<li> |
| 237 |
<label for="itype_item_[% item.item_id | html %]">itype</label> |
| 238 |
<select id="itype_item_[% item.item_id | html %]" name="itype_[% biblio.import_record_id | html %]"> |
| 239 |
[% FOREACH itemtype IN itemtypes %] |
| 240 |
[% IF itemtype.itemtype == item.itype %] |
| 241 |
<option value="[% itemtype.itemtype | html %]" selected="selected">[% itemtype.description | html %]</option> |
| 242 |
[% ELSE %] |
| 243 |
<option value="[% itemtype.itemtype | html %]">[% itemtype.description | html %]</option> |
| 244 |
[% END %] |
154 |
[% END %] |
|
|
155 |
</span> |
| 156 |
</li> |
| 157 |
<li class="quantity"> |
| 158 |
<label for="quantity_record_[% biblio.import_record_id | html %]" class="required">Quantity: </label> |
| 159 |
<input id="quantity_record_[% biblio.import_record_id | html %]" type="text" pattern="[0-9]+" value="[% biblio.quantity.length ? biblio.quantity : 1 | html %]" name="quantity" /> |
| 160 |
<span class="required">Required</span> |
| 161 |
</li> |
| 162 |
<li class="price"> |
| 163 |
<label for="price_record_[% biblio.import_record_id | html %]">Price: </label> |
| 164 |
<input id="price_record_[% biblio.import_record_id | html %]" type="text" value="[% biblio.price | html %]" name="price" /> |
| 165 |
</li> |
| 166 |
<li class="replacementprice"> |
| 167 |
<label for="replacementprice_record_[% biblio.import_record_id | html %]">Replacement price: </label> |
| 168 |
<input id="replacementprice_record_[% biblio.import_record_id | html %]" type="text" value="[% biblio.replacementprice | html %]" name="replacementprice" /> |
| 169 |
</li> |
| 170 |
<li class="discount"> |
| 171 |
<label for="discount_record_[% biblio.import_record_id | html %]">Discount: </label> |
| 172 |
<input id="discount_record_[% biblio.import_record_id | html %]" type="text" value="[% biblio.discount | html %]" name="discount" size="6" /> % |
| 173 |
<div class="hint">If empty, discount rate from vendor will be used</div> |
| 174 |
</li> |
| 175 |
<li class="fund"> |
| 176 |
[% IF ( close ) %] |
| 177 |
<label for="fund_record_[% biblio.import_record_id | html %]">Fund: </label> |
| 178 |
<input type="hidden" size="20" name="budget_id" value="[% budget_id | html %]" />[% Budget_name | html %] |
| 179 |
[% ELSE %] |
| 180 |
<label for="fund_record_[% biblio.import_record_id | html %]">Fund: </label> |
| 181 |
<select id="fund_record_[% biblio.import_record_id | html %]" name="budget_id"> |
| 182 |
<option value="">Select a fund (will use default if set)</option> |
| 183 |
[% FOREACH budget IN budget_loop %] |
| 184 |
[% IF ( budget.b_id == biblio.budget_id ) %] |
| 185 |
[% IF budget.b_active %] |
| 186 |
<option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]" selected="selected">[% budget.b_txt | html %]</option> |
| 187 |
[% ELSE %] |
| 188 |
<option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]" selected="selected">[% budget.b_txt | html %] (inactive)</option> |
| 189 |
[% END %] |
| 190 |
[% ELSE %] |
| 191 |
[% IF budget.b_active %]<option value="[% budget.b_id | html %]" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]">[% budget.b_txt | html %]</option> |
| 192 |
[% ELSE %]<option value="[% budget.b_id | html %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat | html %]" data-sort2-authcat="[% budget.b_sort2_authcat | html %]">[% budget.b_txt | html %] (inactive)</option> |
| 193 |
[% END %] |
| 194 |
[% END %] |
| 195 |
[% END %] |
| 196 |
</select> |
| 197 |
<span class="required" style="display:none">Required</span> |
| 245 |
[% END %] |
198 |
[% END %] |
| 246 |
</select> |
199 |
</li> |
| 247 |
</li> |
200 |
<li class="sort1"> |
|
|
201 |
<label for="sort1_record_[% biblio.import_record_id | html %]">Statistic 1: </label> |
| 202 |
<input id="sort1_record_[% biblio.import_record_id | html %]" type="text" size="20" name="sort1" value="[% biblio.sort1 | html %]" /> |
| 203 |
</li> |
| 204 |
<li class="sort2"> |
| 205 |
<label for="sort2_record_[% biblio.import_record_id | html %]">Statistic 2: </label> |
| 206 |
<input id="sort2_record_[% biblio.import_record_id | html %]" type="text" size="20" name="sort2" value="[% biblio.sort2 | html %]" /> |
| 207 |
</li> |
| 208 |
</ol> |
| 209 |
</fieldset> |
| 210 |
<div style="float:right"> |
| 211 |
[% IF biblio.item_error %]Item records could not be processed because the number of item fields was uneven.[% END %] |
| 212 |
[% FOREACH item IN biblio.iteminfos %] |
| 213 |
<fieldset> |
| 214 |
<legend>Item record [% item.item_id | html %]</legend> |
| 215 |
<ol> |
| 216 |
<li> |
| 217 |
<label for="homebranch_item_[% item.item_id | html %]">homebranch</label> |
| 218 |
<select id="homebranch_item_[% item.item_id | html %]" name="homebranch_[% item.biblio_count | html %]"> |
| 219 |
[% FOREACH l IN libraries %] |
| 220 |
[% IF l.branchcode == item.homebranch %] |
| 221 |
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> |
| 222 |
[% ELSE %] |
| 223 |
<option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> |
| 224 |
[% END %] |
| 225 |
[% END %] |
| 226 |
</select> |
| 227 |
</li> |
| 248 |
|
228 |
|
| 249 |
<li> |
229 |
<li> |
| 250 |
<label for="nonpublic_note_item_[% item.item_id | html %]">nonpublic_note</label> |
230 |
<label for="holdingbranch_item_[% item.item_id | html %]">holdingbranch</label> |
| 251 |
<input type="text" id="nonpublic_note_item_[% item.item_id | html %]" name="nonpublic_note_[% biblio.import_record_id | html %]" value="[% item.nonpublic_note | html %]"> |
231 |
<select id="holdingbranch_item_[% item.item_id | html %]" name="holdingbranch_[% item.biblio_count | html %]"> |
| 252 |
</li> |
232 |
[% FOREACH l IN libraries %] |
| 253 |
<li> |
233 |
[% IF l.branchcode == item.holdingbranch %] |
| 254 |
<label for="public_note_item_[% item.item_id | html %]">public_note</label> |
234 |
<option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option> |
| 255 |
<input type="text" id="public_note_item_[% item.item_id | html %]" name="public_note_[% biblio.import_record_id | html %]" value="[% item.public_note | html %]"> |
235 |
[% ELSE %] |
| 256 |
</li> |
236 |
<option value="[% l.branchcode | html %]">[% l.branchname | html %]</option> |
| 257 |
<li> |
237 |
[% END %] |
| 258 |
<label for="loc_item_[% item.item_id | html %]">loc</label> |
238 |
[% END %] |
| 259 |
<select id="loc_item_[% item.item_id | html %]" name="loc_[% biblio.import_record_id | html %]"> |
239 |
</select> |
| 260 |
<option value=""> </option> |
240 |
</li> |
| 261 |
[% FOREACH locationloo IN locationloop %] |
241 |
<li> |
| 262 |
[% IF ( locationloo.code ) == (item.loc) %] |
242 |
<label for="itype_item_[% item.item_id | html %]">itype</label> |
| 263 |
<option value="[% locationloo.code | html %]" selected="selected">[% locationloo.description | html %]</option> |
243 |
<select id="itype_item_[% item.item_id | html %]" name="itype_[% item.biblio_count | html %]"> |
| 264 |
[% ELSE %] |
244 |
[% FOREACH itemtype IN itemtypes %] |
| 265 |
<option value="[% locationloo.code | html %]">[% locationloo.description | html %]</option> |
245 |
[% IF itemtype.itemtype == item.itype %] |
| 266 |
[% END %] |
246 |
<option value="[% itemtype.itemtype | html %]" selected="selected">[% itemtype.description | html %]</option> |
| 267 |
[% END %] |
247 |
[% ELSE %] |
| 268 |
</select> |
248 |
<option value="[% itemtype.itemtype | html %]">[% itemtype.description | html %]</option> |
| 269 |
</li> |
249 |
[% END %] |
|
|
250 |
[% END %] |
| 251 |
</select> |
| 252 |
</li> |
| 270 |
|
253 |
|
| 271 |
<li> |
254 |
<li> |
| 272 |
<label for="ccode_item_[% item.item_id | html %]">ccode</label> |
255 |
<label for="nonpublic_note_item_[% item.item_id | html %]">nonpublic_note</label> |
| 273 |
<select id="ccode_item_[% item.item_id | html %]" name="ccode_[% biblio.import_record_id | html %]"> |
256 |
<input type="text" id="nonpublic_note_item_[% item.item_id | html %]" name="nonpublic_note_[% item.biblio_count | html %]" value="[% item.nonpublic_note | html %]"> |
| 274 |
<option value=""> </option> |
257 |
</li> |
| 275 |
[% FOREACH ccodeloo IN ccodeloop %] |
258 |
<li> |
| 276 |
[% IF ( ccodeloo.code ) == (item.ccode) %] |
259 |
<label for="public_note_item_[% item.item_id | html %]">public_note</label> |
| 277 |
<option value="[% ccodeloo.code | html %]" selected="selected">[% ccodeloo.description | html %]</option> |
260 |
<input type="text" id="public_note_item_[% item.item_id | html %]" name="public_note_[% item.biblio_count | html %]" value="[% item.public_note | html %]"> |
| 278 |
[% ELSE %] |
261 |
</li> |
| 279 |
<option value="[% ccodeloo.code | html %]">[% ccodeloo.description | html %]</option> |
262 |
<li> |
| 280 |
[% END %] |
263 |
<label for="loc_item_[% item.item_id | html %]">loc</label> |
| 281 |
[% END %] |
264 |
<select id="loc_item_[% item.item_id | html %]" name="loc_[% item.biblio_count | html %]"> |
| 282 |
</select> |
265 |
<option value=""> </option> |
| 283 |
</li> |
266 |
[% FOREACH locationloo IN locationloop %] |
|
|
267 |
[% IF ( locationloo.code ) == (item.loc) %] |
| 268 |
<option value="[% locationloo.code | html %]" selected="selected">[% locationloo.description | html %]</option> |
| 269 |
[% ELSE %] |
| 270 |
<option value="[% locationloo.code | html %]">[% locationloo.description | html %]</option> |
| 271 |
[% END %] |
| 272 |
[% END %] |
| 273 |
</select> |
| 274 |
</li> |
| 284 |
|
275 |
|
| 285 |
<li> |
276 |
<li> |
| 286 |
<label for="notforloan_item_[% item.item_id | html %]">notforloan</label> |
277 |
<label for="ccode_item_[% item.item_id | html %]">ccode</label> |
| 287 |
<select id="notforloan_item_[% item.item_id | html %]" name="notforloan_[% biblio.import_record_id | html %]"> |
278 |
<select id="ccode_item_[% item.item_id | html %]" name="ccode_[% item.biblio_count | html %]"> |
| 288 |
<option value=""> </option> |
279 |
<option value=""> </option> |
| 289 |
[% FOREACH n IN notforloanloop %] |
280 |
[% FOREACH ccodeloo IN ccodeloop %] |
| 290 |
[% IF n.code == item.notforloan %] |
281 |
[% IF ( ccodeloo.code ) == (item.ccode) %] |
| 291 |
<option value="[% n.code | html %]" selected="selected">[% n.description | html %]</option> |
282 |
<option value="[% ccodeloo.code | html %]" selected="selected">[% ccodeloo.description | html %]</option> |
| 292 |
[% ELSE %] |
283 |
[% ELSE %] |
| 293 |
<option value="[% n.code | html %]">[% n.description | html %]</option> |
284 |
<option value="[% ccodeloo.code | html %]">[% ccodeloo.description | html %]</option> |
| 294 |
[% END %] |
285 |
[% END %] |
| 295 |
[% END %] |
286 |
[% END %] |
| 296 |
</select> |
287 |
</select> |
| 297 |
</li> |
288 |
</li> |
| 298 |
<li> |
289 |
|
| 299 |
<label for="uri_item_[% item.item_id | html %]">uri</label> |
290 |
<li> |
| 300 |
<input type="text" id="uri_item_[% item.item_id | html %]" name="uri_[% biblio.import_record_id | html %]" value="[% item.uri | html %]"> |
291 |
<label for="notforloan_item_[% item.item_id | html %]">notforloan</label> |
| 301 |
</li> |
292 |
<select id="notforloan_item_[% item.item_id | html %]" name="notforloan_[% item.biblio_count | html %]"> |
| 302 |
<li> |
293 |
<option value=""> </option> |
| 303 |
<label for="copyno_item_[% item.item_id | html %]">copyno</label> |
294 |
[% FOREACH n IN notforloanloop %] |
| 304 |
<input type="text" id="copyno_item_[% item.item_id | html %]" name="copyno_[% biblio.import_record_id | html %]" value="[% item.copyno | html %]"> |
295 |
[% IF n.code == item.notforloan %] |
| 305 |
</li> |
296 |
<option value="[% n.code | html %]" selected="selected">[% n.description | html %]</option> |
| 306 |
<li> |
297 |
[% ELSE %] |
| 307 |
<label for="budget_code_item_[% item.item_id | html %]">budget_code</label> |
298 |
<option value="[% n.code | html %]">[% n.description | html %]</option> |
| 308 |
<select class="budget_code_item" id="budget_code_item_[% item.item_id | html %]" name="budget_code_[% biblio.import_record_id | html %]"> |
299 |
[% END %] |
| 309 |
<option value="">Select a fund (will use default if set)</option> |
300 |
[% END %] |
| 310 |
[% FOREACH budget_loo IN budget_loop %] |
301 |
</select> |
| 311 |
[% IF ( budget_loo.b_id ) == ( item.budget_id ) %]<option value="[% budget_loo.b_id | html %]" selected="selected">[% budget_loo.b_txt | html %]</option> |
302 |
</li> |
| 312 |
[% ELSE %]<option value="[% budget_loo.b_id | html %]">[% budget_loo.b_txt | html %]</option> |
303 |
<li> |
| 313 |
[% END %] |
304 |
<label for="uri_item_[% item.item_id | html %]">uri</label> |
| 314 |
[% END %] |
305 |
<input type="text" id="uri_item_[% item.item_id | html %]" name="uri_[% item.biblio_count | html %]" value="[% item.uri | html %]"> |
| 315 |
</select> |
306 |
</li> |
| 316 |
<span class="item_fund required">Required</span> |
307 |
<li> |
| 317 |
</li> |
308 |
<label for="copyno_item_[% item.item_id | html %]">copyno</label> |
| 318 |
<li> |
309 |
<input type="text" id="copyno_item_[% item.item_id | html %]" name="copyno_[% item.biblio_count | html %]" value="[% item.copyno | html %]"> |
| 319 |
<label for="price_item_[% item.item_id | html %]">price</label> |
310 |
</li> |
| 320 |
<input type="text" id="price_item_[% item.item_id | html %]" name="itemprice_[% biblio.import_record_id | html %]" value="[% item.itemprice | html %]"> |
311 |
<li> |
| 321 |
</li> |
312 |
<label for="budget_code_item_[% item.item_id | html %]">budget_code</label> |
| 322 |
<li> |
313 |
<select class="budget_code_item" id="budget_code_item_[% item.item_id | html %]" name="budget_code_[% item.biblio_count | html %]"> |
| 323 |
<label for="replacementprice_item_[% item.item_id | html %]">replacement price</label> |
314 |
<option value="">Select a fund (will use default if set)</option> |
| 324 |
<input type="text" id="replacementprice_item_[% item.item_id | html %]" name="replacementprice_[% biblio.import_record_id | html %]" value="[% item.replacementprice | html %]"> |
315 |
[% FOREACH budget_loo IN budget_loop %] |
| 325 |
</li> |
316 |
[% IF ( budget_loo.b_id ) == ( item.budget_id ) %]<option value="[% budget_loo.b_id | html %]" selected="selected">[% budget_loo.b_txt | html %]</option> |
| 326 |
<li> |
317 |
[% ELSE %]<option value="[% budget_loo.b_id | html %]">[% budget_loo.b_txt | html %]</option> |
| 327 |
<label for="callnumber_item_[% item.item_id | html %]">callnumber</label> |
318 |
[% END %] |
| 328 |
<input type="text" id="callnumber_item_[% item.item_id | html %]" name="itemcallnumber_[% biblio.import_record_id | html %]" value="[% item.itemcallnumber | html %]"> |
319 |
[% END %] |
| 329 |
</li> |
320 |
</select> |
| 330 |
</ol> |
321 |
<span class="item_fund required">Required</span> |
| 331 |
</fieldset> |
322 |
</li> |
| 332 |
[% END # /FOREACH item %] |
323 |
<li> |
| 333 |
</div> |
324 |
<label for="price_item_[% item.item_id | html %]">price</label> |
| 334 |
</fieldset> <!-- .biblio.unselected.rows --> |
325 |
<input type="text" id="price_item_[% item.item_id | html %]" name="itemprice_[% item.biblio_count | html %]" value="[% item.itemprice | html %]"> |
|
|
326 |
</li> |
| 327 |
<li> |
| 328 |
<label for="replacementprice_item_[% item.item_id | html %]">replacement price</label> |
| 329 |
<input type="text" id="replacementprice_item_[% item.item_id | html %]" name="replacementprice_[% item.biblio_count | html %]" value="[% item.replacementprice | html %]"> |
| 330 |
</li> |
| 331 |
<li> |
| 332 |
<label for="callnumber_item_[% item.item_id | html %]">callnumber</label> |
| 333 |
<input type="text" id="callnumber_item_[% item.item_id | html %]" name="itemcallnumber_[% item.biblio_count | html %]" value="[% item.itemcallnumber | html %]"> |
| 334 |
</li> |
| 335 |
</ol> |
| 336 |
</fieldset> |
| 337 |
[% END # /FOREACH item %] |
| 338 |
</div> |
| 339 |
</td> |
| 340 |
<td class="actions"> |
| 341 |
<a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% biblio.import_record_id | uri %]" class="previewData btn btn-default btn-xs">MARC</a> |
| 342 |
<a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% biblio.import_record_id | uri %]" class="previewData btn btn-default btn-xs">Card</a> |
| 343 |
<a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&breedingid=[% biblio.import_record_id | uri %]&import_batch_id=[% biblio.import_batch_id | uri %]&biblionumber=[% biblio.match_biblionumber | uri %]" class="btn btn-default btn-xs">Add order</a> |
| 344 |
</td> |
| 345 |
</tr> |
| 346 |
[% END # /FOREACH biblio %] |
| 347 |
</tbody> |
| 348 |
</table> <!-- .biblio.unselected.rows --> |
| 335 |
|
349 |
|
| 336 |
[% END # /FOREACH biblio %] |
|
|
| 337 |
<div class="modal" id="dataPreview" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel"> |
350 |
<div class="modal" id="dataPreview" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel"> |
| 338 |
<div class="modal-dialog modal-lg" role="document"> |
351 |
<div class="modal-dialog modal-lg" role="document"> |
| 339 |
<div class="modal-content"> |
352 |
<div class="modal-content"> |
|
Lines 358-410
Link Here
|
| 358 |
<p>Import all the checked items in the basket with the following parameters:</p> |
371 |
<p>Import all the checked items in the basket with the following parameters:</p> |
| 359 |
|
372 |
|
| 360 |
[% IF ( items ) %] |
373 |
[% IF ( items ) %] |
| 361 |
<fieldset class="rows" style="float:none;"> |
374 |
<div id="cataloguing_additem_newitem"> |
| 362 |
<legend>Item</legend> |
375 |
<fieldset class="rows" style="float:none;"> |
| 363 |
[% IF ( NoACQframework ) %] |
376 |
<legend>Item</legend> |
| 364 |
<div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div> |
377 |
[% IF ( NoACQframework ) %] |
| 365 |
[% END %] |
378 |
<div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div> |
| 366 |
[% FOREACH item IN items %] |
379 |
[% END %] |
| 367 |
<div id="outeritemblock"> |
380 |
[% FOREACH item IN items %] |
| 368 |
<div id="itemblock"> |
381 |
<div id="outeritemblock"> |
| 369 |
<ol> |
382 |
<div id="itemblock"> |
| 370 |
[% FOREACH iteminformatio IN item.iteminformation %] |
383 |
<ol> |
| 371 |
<li style="[% iteminformatio.hidden | html %];"> |
384 |
[% FOREACH iteminformatio IN item.iteminformation %] |
| 372 |
<div class="subfield_line" id="subfield[% iteminformatio.serialid | html %][% iteminformatio.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]"> |
385 |
<li style="[% iteminformatio.hidden | html %];"> |
| 373 |
[% IF (iteminformatio.mandatory) %] |
386 |
<div class="subfield_line" id="subfield[% iteminformatio.serialid | html %][% iteminformatio.countitems | html %][% iteminformatio.subfield | html %][% iteminformatio.random | html %]"> |
| 374 |
<label class="required">[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label> |
387 |
[% IF (iteminformatio.mandatory) %] |
| 375 |
[% ELSE %] |
388 |
<label class="required">[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label> |
| 376 |
<label>[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label> |
389 |
[% ELSE %] |
| 377 |
[% END %] |
390 |
<label>[% iteminformatio.subfield | html %] - [% iteminformatio.marc_lib | $raw %]</label> |
|
|
391 |
[% END %] |
| 378 |
|
392 |
|
| 379 |
[% IF ( iteminformatio.marc_value.type == 'select' ) %] |
393 |
[% IF ( iteminformatio.marc_value.type == 'select' ) %] |
| 380 |
<select name="field_value" class="input_marceditor"> |
394 |
<select name="field_value" class="input_marceditor"> |
| 381 |
[% FOREACH value IN iteminformatio.marc_value.values %] |
395 |
[% FOREACH value IN iteminformatio.marc_value.values %] |
| 382 |
[% IF ( value == iteminformatio.marc_value.default ) %] |
396 |
[% IF ( value == iteminformatio.marc_value.default ) %] |
| 383 |
<option value="[% value | html %]" selected="selected">[% iteminformatio.marc_value.labels.$value | html %]</option> |
397 |
<option value="[% value | html %]" selected="selected">[% iteminformatio.marc_value.labels.$value | html %]</option> |
| 384 |
[% ELSE %] |
398 |
[% ELSE %] |
| 385 |
<option value="[% value | html %]">[% iteminformatio.marc_value.labels.$value | html %]</option> |
399 |
<option value="[% value | html %]">[% iteminformatio.marc_value.labels.$value | html %]</option> |
|
|
400 |
[% END %] |
| 386 |
[% END %] |
401 |
[% END %] |
| 387 |
[% END %] |
402 |
</select> |
| 388 |
</select> |
403 |
[% ELSE %] |
| 389 |
[% ELSE %] |
404 |
[% iteminformatio.marc_value | $raw %] |
| 390 |
[% iteminformatio.marc_value | $raw %] |
405 |
[% END %] |
| 391 |
[% END %] |
406 |
<input type="hidden" name="itemid" value="1" /> |
| 392 |
<input type="hidden" name="itemid" value="1" /> |
407 |
<input type="hidden" name="kohafield" value="[% iteminformatio.kohafield | html %]" /> |
| 393 |
<input type="hidden" name="kohafield" value="[% iteminformatio.kohafield | html %]" /> |
408 |
<input type="hidden" name="tag" value="[% iteminformatio.tag | html %]" /> |
| 394 |
<input type="hidden" name="tag" value="[% iteminformatio.tag | html %]" /> |
409 |
<input type="hidden" name="subfield" value="[% iteminformatio.subfield | html %]" /> |
| 395 |
<input type="hidden" name="subfield" value="[% iteminformatio.subfield | html %]" /> |
410 |
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory | html %]" /> |
| 396 |
<input type="hidden" name="mandatory" value="[% iteminformatio.mandatory | html %]" /> |
411 |
[% IF ( iteminformatio.mandatory ) %] |
| 397 |
[% IF ( iteminformatio.mandatory ) %] |
412 |
<span class="required">Required</span> |
| 398 |
<span class="required">Required</span> |
413 |
[% END %] |
| 399 |
[% END %] |
414 |
</div> |
| 400 |
</div> |
415 |
</li> |
| 401 |
</li> |
416 |
[% END %] |
| 402 |
[% END %] |
417 |
</ol> |
| 403 |
</ol> |
418 |
</div><!-- /#itemblock --> |
| 404 |
</div><!-- /#itemblock --> |
419 |
</div> <!-- /#outeritemblock --> |
| 405 |
</div> <!-- /#outeritemblock --> |
420 |
[% END #/FOREACH item %] |
| 406 |
[% END #/FOREACH item %] |
421 |
</fieldset> |
| 407 |
</fieldset> |
422 |
</div> |
| 408 |
[% END # /IF items %] |
423 |
[% END # /IF items %] |
| 409 |
</div> <!-- /#items_info --> |
424 |
</div> <!-- /#items_info --> |
| 410 |
|
425 |
|
|
Lines 461-466
Link Here
|
| 461 |
</li> |
476 |
</li> |
| 462 |
<li> |
477 |
<li> |
| 463 |
<div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div> |
478 |
<div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div> |
|
|
479 |
</li> |
| 480 |
<li> |
| 464 |
<label for="all_sort1">Statistic 1: </label> |
481 |
<label for="all_sort1">Statistic 1: </label> |
| 465 |
<input type="text" id="all_sort1" size="20" name="all_sort1" value="" /> |
482 |
<input type="text" id="all_sort1" size="20" name="all_sort1" value="" /> |
| 466 |
</li> |
483 |
</li> |