1 [% PROCESS 'html_helpers.inc' %]
2 <div id="ill-batch-details" style="display:none"></div>
3 <div id="ill-batch-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="ill-batch-modal-label" aria-hidden="true">
4 <div class="modal-dialog modal-lg">
5 <div class="modal-content">
6 <div class="modal-header">
7 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
8 <h3 id="ill-batch-modal-label"></h3>
10 <div class="modal-body">
12 <form id="new-batch-form">
13 <fieldset class="rows">
14 <legend id="legend">Batch details</legend>
17 <label class="required" for="name">Batch name:</label>
18 <input type="text" autocomplete="off" name="name" id="name" type="text"
21 <li id="batch_patron">
22 <label class="required" for="batchcardnumber">Card number, username or surname:</label>
23 <input type="text" autocomplete="off" name="batchcardnumber" id="batchcardnumber" type="text" value="" />
24 <span id="patron_link"></span>
26 <li id="batch_branch">
27 <label class="required" for="branchcode">Library:</label>
28 <select id="branchcode" name="branchcode">
29 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
32 <li id="batch_status_code" style="display:none">
33 <label class="required" for="status_code">Status:</label>
34 <select id="status_code" name="status_code"></select>
38 <fieldset id="add_batch_items" class="rows" style="display:none">
39 <legend id="legend">Add batch items</legend>
40 <div id="textarea-metadata">
41 <div id="supported">Supported identifiers: <span id="supported_identifiers"></span></div>
42 <div id="row_count">Row count: <span id="row_count_value"></span></div>
44 <div id="textarea-errors" style="display:none" class="error">
45 <div id="duplicates" style="display:none">The following duplicates were found, these have been de-duplicated: <span id="dupelist"></span></div>
46 <div id="badidentifiers" style="display:none">The following unknown identifiers were found, it was not possible to establish their type: <span id="badids"></span></div>
50 <textarea id="identifiers_input" placeholder="Enter identifiers, one per line"></textarea>
52 <li id="process-button">
53 <button id="process_button" disabled aria-disabled="true" type="button">Process identifiers</button>
58 <div id="create-progress" class="alert alert-info" role="alert" style="display:none">
59 <span id="progress-label"><strong></strong></span> -
60 Items processed: <span id="processed_count">0</span> out of <span id="processed_total">0</span>.
61 Items failed: <span id="processed_failed">0</span>.
62 <div class="progress">
63 <div id="processed_progress_bar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em;">
68 <table id="identifier-table" style="display:none">
70 <tr id="identifier-table-header">
71 <th scope="col">Identifier type</th>
72 <th scope="col">Identifier value</th>
73 <th scope="col">Metadata</th>
74 <th scope="col">Request ID</th>
75 <th scope="col">Request status</th>
79 <tbody id="identifier-table-body">
83 <div id="create-requests" style="display:none">
84 <button id="create-requests-button" type="button" class="btn btn-primary" aria-label="Add items to batch">Add items to batch</button>
87 <div class="modal-footer">
89 <button class="btn btn-default" data-dismiss="modal" aria-hidden="false">Cancel</button>
92 <button id="button_create_batch" class="btn btn-default" aria-hidden="true" disabled>Continue</button>
93 <button id="button_finish" disabled type="button" class="btn btn-default" aria-hidden="true">Finish and view batch</button>