View | Details | Raw Unified | Return to bug 32166
Collapse All | Expand All

(-)a/acqui/addorderiso2709.pl (-14 / +14 lines)
Lines 205-225 if ($op eq ""){ Link Here
205
        $import_record->import_biblio->matched_biblionumber($biblionumber)->store;
205
        $import_record->import_biblio->matched_biblionumber($biblionumber)->store;
206
206
207
        # Add items from MarcItemFieldsToOrder
207
        # Add items from MarcItemFieldsToOrder
208
        my @homebranches = $input->multi_param('homebranch_' . $biblio_count);
208
        my @homebranches = $input->multi_param('homebranch_' . $import_record->import_record_id);
209
        my $count = scalar @homebranches;
209
        my $count = scalar @homebranches;
210
        my @holdingbranches = $input->multi_param('holdingbranch_' . $biblio_count);
210
        my @holdingbranches = $input->multi_param('holdingbranch_' . $import_record->import_record_id);
211
        my @itypes = $input->multi_param('itype_' . $biblio_count);
211
        my @itypes = $input->multi_param('itype_' . $import_record->import_record_id);
212
        my @nonpublic_notes = $input->multi_param('nonpublic_note_' . $biblio_count);
212
        my @nonpublic_notes = $input->multi_param('nonpublic_note_' . $import_record->import_record_id);
213
        my @public_notes = $input->multi_param('public_note_' . $biblio_count);
213
        my @public_notes = $input->multi_param('public_note_' . $import_record->import_record_id);
214
        my @locs = $input->multi_param('loc_' . $biblio_count);
214
        my @locs = $input->multi_param('loc_' . $import_record->import_record_id);
215
        my @ccodes = $input->multi_param('ccode_' . $biblio_count);
215
        my @ccodes = $input->multi_param('ccode_' . $import_record->import_record_id);
216
        my @notforloans = $input->multi_param('notforloan_' . $biblio_count);
216
        my @notforloans = $input->multi_param('notforloan_' . $import_record->import_record_id);
217
        my @uris = $input->multi_param('uri_' . $biblio_count);
217
        my @uris = $input->multi_param('uri_' . $import_record->import_record_id);
218
        my @copynos = $input->multi_param('copyno_' . $biblio_count);
218
        my @copynos = $input->multi_param('copyno_' . $import_record->import_record_id);
219
        my @budget_codes = $input->multi_param('budget_code_' . $biblio_count);
219
        my @budget_codes = $input->multi_param('budget_code_' . $import_record->import_record_id);
220
        my @itemprices = $input->multi_param('itemprice_' . $biblio_count);
220
        my @itemprices = $input->multi_param('itemprice_' . $import_record->import_record_id);
221
        my @replacementprices = $input->multi_param('replacementprice_' . $biblio_count);
221
        my @replacementprices = $input->multi_param('replacementprice_' . $import_record->import_record_id);
222
        my @itemcallnumbers = $input->multi_param('itemcallnumber_' . $biblio_count);
222
        my @itemcallnumbers = $input->multi_param('itemcallnumber_' . $import_record->import_record_id);
223
        my $itemcreation = 0;
223
        my $itemcreation = 0;
224
224
225
        my @itemnumbers;
225
        my @itemnumbers;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-15 / +14 lines)
Lines 210-216 Link Here
210
                                                        <ol>
210
                                                        <ol>
211
                                                            <li>
211
                                                            <li>
212
                                                                <label for="homebranch_item_[% item.item_id | html %]">homebranch</label>
212
                                                                <label for="homebranch_item_[% item.item_id | html %]">homebranch</label>
213
                                                                <select id="homebranch_item_[% item.item_id | html %]" name="homebranch_[% item.biblio_count | html %]">
213
                                                                <select id="homebranch_item_[% item.item_id | html %]" name="homebranch_[% biblio.import_record_id | html %]">
214
                                                                    [% FOREACH l IN libraries %]
214
                                                                    [% FOREACH l IN libraries %]
215
                                                                        [% IF l.branchcode == item.homebranch %]
215
                                                                        [% IF l.branchcode == item.homebranch %]
216
                                                                            <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
216
                                                                            <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
Lines 223-229 Link Here
223
223
224
                                                            <li>
224
                                                            <li>
225
                                                                <label for="holdingbranch_item_[% item.item_id | html %]">holdingbranch</label>
225
                                                                <label for="holdingbranch_item_[% item.item_id | html %]">holdingbranch</label>
226
                                                                <select id="holdingbranch_item_[% item.item_id | html %]" name="holdingbranch_[% item.biblio_count | html %]">
226
                                                                <select id="holdingbranch_item_[% item.item_id | html %]" name="holdingbranch_[% biblio.import_record_id | html %]">
227
                                                                    [% FOREACH l IN libraries %]
227
                                                                    [% FOREACH l IN libraries %]
228
                                                                        [% IF l.branchcode == item.holdingbranch %]
228
                                                                        [% IF l.branchcode == item.holdingbranch %]
229
                                                                            <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
229
                                                                            <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
Lines 235-241 Link Here
235
                                                            </li>
235
                                                            </li>
236
                                                            <li>
236
                                                            <li>
237
                                                                <label for="itype_item_[% item.item_id | html %]">itype</label>
237
                                                                <label for="itype_item_[% item.item_id | html %]">itype</label>
238
                                                                <select id="itype_item_[% item.item_id | html %]" name="itype_[% item.biblio_count | html %]">
238
                                                                <select id="itype_item_[% item.item_id | html %]" name="itype_[% biblio.import_record_id | html %]">
239
                                                                    [% FOREACH itemtype IN itemtypes %]
239
                                                                    [% FOREACH itemtype IN itemtypes %]
240
                                                                        [% IF itemtype.itemtype == item.itype %]
240
                                                                        [% IF itemtype.itemtype == item.itype %]
241
                                                                            <option value="[% itemtype.itemtype | html %]" selected="selected">[% itemtype.description | html %]</option>
241
                                                                            <option value="[% itemtype.itemtype | html %]" selected="selected">[% itemtype.description | html %]</option>
Lines 248-262 Link Here
248
248
249
                                                            <li>
249
                                                            <li>
250
                                                                <label for="nonpublic_note_item_[% item.item_id | html %]">nonpublic_note</label>
250
                                                                <label for="nonpublic_note_item_[% item.item_id | html %]">nonpublic_note</label>
251
                                                                <input type="text" id="nonpublic_note_item_[% item.item_id | html %]" name="nonpublic_note_[% item.biblio_count | html %]" value="[% item.nonpublic_note | html %]">
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 %]">
252
                                                            </li>
252
                                                            </li>
253
                                                            <li>
253
                                                            <li>
254
                                                                <label for="public_note_item_[% item.item_id | html %]">public_note</label>
254
                                                                <label for="public_note_item_[% item.item_id | html %]">public_note</label>
255
                                                                <input type="text" id="public_note_item_[% item.item_id | html %]" name="public_note_[% item.biblio_count | html %]" value="[% item.public_note | html %]">
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 %]">
256
                                                            </li>
256
                                                            </li>
257
                                                            <li>
257
                                                            <li>
258
                                                                <label for="loc_item_[% item.item_id | html %]">loc</label>
258
                                                                <label for="loc_item_[% item.item_id | html %]">loc</label>
259
                                                                <select id="loc_item_[% item.item_id | html %]" name="loc_[% item.biblio_count | html %]">
259
                                                                <select id="loc_item_[% item.item_id | html %]" name="loc_[% biblio.import_record_id | html %]">
260
                                                                    <option value=""> </option>
260
                                                                    <option value=""> </option>
261
                                                                    [% FOREACH locationloo IN locationloop %]
261
                                                                    [% FOREACH locationloo IN locationloop %]
262
                                                                        [% IF ( locationloo.code ) == (item.loc) %]
262
                                                                        [% IF ( locationloo.code ) == (item.loc) %]
Lines 270-276 Link Here
270
270
271
                                                            <li>
271
                                                            <li>
272
                                                                <label for="ccode_item_[% item.item_id | html %]">ccode</label>
272
                                                                <label for="ccode_item_[% item.item_id | html %]">ccode</label>
273
                                                                <select id="ccode_item_[% item.item_id | html %]" name="ccode_[% item.biblio_count | html %]">
273
                                                                <select id="ccode_item_[% item.item_id | html %]" name="ccode_[% biblio.import_record_id | html %]">
274
                                                                    <option value=""> </option>
274
                                                                    <option value=""> </option>
275
                                                                    [% FOREACH ccodeloo IN ccodeloop %]
275
                                                                    [% FOREACH ccodeloo IN ccodeloop %]
276
                                                                        [% IF ( ccodeloo.code ) == (item.ccode) %]
276
                                                                        [% IF ( ccodeloo.code ) == (item.ccode) %]
Lines 284-290 Link Here
284
284
285
                                                            <li>
285
                                                            <li>
286
                                                                <label for="notforloan_item_[% item.item_id | html %]">notforloan</label>
286
                                                                <label for="notforloan_item_[% item.item_id | html %]">notforloan</label>
287
                                                                <select id="notforloan_item_[% item.item_id | html %]" name="notforloan_[% item.biblio_count | html %]">
287
                                                                <select id="notforloan_item_[% item.item_id | html %]" name="notforloan_[% biblio.import_record_id | html %]">
288
                                                                    <option value=""> </option>
288
                                                                    <option value=""> </option>
289
                                                                    [% FOREACH n IN notforloanloop %]
289
                                                                    [% FOREACH n IN notforloanloop %]
290
                                                                        [% IF n.code == item.notforloan %]
290
                                                                        [% IF n.code == item.notforloan %]
Lines 297-311 Link Here
297
                                                            </li>
297
                                                            </li>
298
                                                            <li>
298
                                                            <li>
299
                                                                <label for="uri_item_[% item.item_id | html %]">uri</label>
299
                                                                <label for="uri_item_[% item.item_id | html %]">uri</label>
300
                                                                <input type="text" id="uri_item_[% item.item_id | html %]" name="uri_[% item.biblio_count | html %]" value="[% item.uri | html %]">
300
                                                                <input type="text" id="uri_item_[% item.item_id | html %]" name="uri_[% biblio.import_record_id | html %]" value="[% item.uri | html %]">
301
                                                            </li>
301
                                                            </li>
302
                                                            <li>
302
                                                            <li>
303
                                                                <label for="copyno_item_[% item.item_id | html %]">copyno</label>
303
                                                                <label for="copyno_item_[% item.item_id | html %]">copyno</label>
304
                                                                <input type="text" id="copyno_item_[% item.item_id | html %]" name="copyno_[% item.biblio_count | html %]" value="[% item.copyno | html %]">
304
                                                                <input type="text" id="copyno_item_[% item.item_id | html %]" name="copyno_[% biblio.import_record_id | html %]" value="[% item.copyno | html %]">
305
                                                            </li>
305
                                                            </li>
306
                                                            <li>
306
                                                            <li>
307
                                                                <label for="budget_code_item_[% item.item_id | html %]">budget_code</label>
307
                                                                <label for="budget_code_item_[% item.item_id | html %]">budget_code</label>
308
                                                                <select class="budget_code_item" id="budget_code_item_[% item.item_id | html %]" name="budget_code_[% item.biblio_count | html %]">
308
                                                                <select class="budget_code_item" id="budget_code_item_[% item.item_id | html %]" name="budget_code_[% biblio.import_record_id | html %]">
309
                                                                    <option value="">Select a fund (will use default if set)</option>
309
                                                                    <option value="">Select a fund (will use default if set)</option>
310
                                                                    [% FOREACH budget_loo IN budget_loop %]
310
                                                                    [% FOREACH budget_loo IN budget_loop %]
311
                                                                        [% IF ( budget_loo.b_id ) == ( item.budget_id ) %]<option value="[% budget_loo.b_id | html %]" selected="selected">[% budget_loo.b_txt | html %]</option>
311
                                                                        [% IF ( budget_loo.b_id ) == ( item.budget_id ) %]<option value="[% budget_loo.b_id | html %]" selected="selected">[% budget_loo.b_txt | html %]</option>
Lines 317-331 Link Here
317
                                                            </li>
317
                                                            </li>
318
                                                            <li>
318
                                                            <li>
319
                                                                <label for="price_item_[% item.item_id | html %]">price</label>
319
                                                                <label for="price_item_[% item.item_id | html %]">price</label>
320
                                                                <input type="text" id="price_item_[% item.item_id | html %]" name="itemprice_[% item.biblio_count | html %]" value="[% item.itemprice | html %]">
320
                                                                <input type="text" id="price_item_[% item.item_id | html %]" name="itemprice_[% biblio.import_record_id | html %]" value="[% item.itemprice | html %]">
321
                                                            </li>
321
                                                            </li>
322
                                                            <li>
322
                                                            <li>
323
                                                                <label for="replacementprice_item_[% item.item_id | html %]">replacement price</label>
323
                                                                <label for="replacementprice_item_[% item.item_id | html %]">replacement price</label>
324
                                                                <input type="text" id="replacementprice_item_[% item.item_id | html %]" name="replacementprice_[% item.biblio_count | html %]" value="[% item.replacementprice | html %]">
324
                                                                <input type="text" id="replacementprice_item_[% item.item_id | html %]" name="replacementprice_[% biblio.import_record_id | html %]" value="[% item.replacementprice | html %]">
325
                                                            </li>
325
                                                            </li>
326
                                                            <li>
326
                                                            <li>
327
                                                                <label for="callnumber_item_[% item.item_id | html %]">callnumber</label>
327
                                                                <label for="callnumber_item_[% item.item_id | html %]">callnumber</label>
328
                                                                <input type="text" id="callnumber_item_[% item.item_id | html %]" name="itemcallnumber_[% item.biblio_count | html %]" value="[% item.itemcallnumber | html %]">
328
                                                                <input type="text" id="callnumber_item_[% item.item_id | html %]" name="itemcallnumber_[% biblio.import_record_id | html %]" value="[% item.itemcallnumber | html %]">
329
                                                            </li>
329
                                                            </li>
330
                                                        </ol>
330
                                                        </ol>
331
                                                    </fieldset>
331
                                                    </fieldset>
332
- 

Return to bug 32166