1 <div id="ill-batch-details" style="display:none"></div>
2 <div id="ill-batch-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="ill-batch-modal-label" aria-hidden="true">
3 <div class="modal-dialog modal-lg">
4 <div class="modal-content">
5 <div class="modal-header">
6 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
7 <h3 id="ill-batch-modal-label"></h3>
9 <div class="modal-body">
11 <form id="new-batch-form">
12 <fieldset class="rows">
13 <legend id="legend">Batch details</legend>
16 <label class="required" for="name">Batch name:</label>
17 <input type="text" autocomplete="off" name="name" id="name" type="text"
20 <li id="batch_patron">
21 <label class="required" for="batchcardnumber">Card number, username or surname:</label>
22 <input type="text" autocomplete="off" name="batchcardnumber" id="batchcardnumber" type="text" value="" />
23 <span id="patron_link"></span>
25 <li id="batch_branch">
26 <label class="required" for="branchcode">Library:</label>
27 <select id="branchcode" name="branchcode">
28 [% PROCESS options_for_libraries libraries => Branches.all( selected => branchcode ) %]
31 <li id="batch_statuscode" style="display:none">
32 <label class="required" for="statuscode">Status:</label>
33 <select id="statuscode" name="statuscode"></select>
37 <fieldset id="add_batch_items" class="rows" style="display:none">
38 <legend id="legend">Add batch items</legend>
39 <div id="textarea-metadata">
40 <div id="supported">Supported identifiers: <span id="supported_identifiers"></span></div>
41 <div id="row_count">Row count: <span id="row_count_value"></span></div>
43 <div id="textarea-errors" style="display:none" class="error">
44 <div id="duplicates" style="display:none">The following duplicates were found, these have been de-duplicated: <span id="dupelist"></span></div>
45 <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>
49 <textarea id="identifiers_input" placeholder="Enter identifiers, one per line"></textarea>
51 <li id="process-button">
52 <button id="process_button" disabled aria-disabled="true" type="button">Process identifiers</button>
57 <div id="create-progress" class="alert alert-info" role="alert" style="display:none">
58 <span id="progress-label"><strong></strong></span> -
59 Items processed: <span id="processed_count">0</span> out of <span id="processed_total">0</span>.
60 Items failed: <span id="processed_failed">0</span>.
61 <div class="progress">
62 <div id="processed_progress_bar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em;">
67 <table id="identifier-table" style="display:none">
69 <tr id="identifier-table-header">
70 <th scope="col">Identifier type</th>
71 <th scope="col">Identifier value</th>
72 <th scope="col">Metadata</th>
73 <th scope="col">Request ID</th>
74 <th scope="col">Request Status</th>
78 <tbody id="identifier-table-body">
82 <div id="create-requests" style="display:none">
83 <button id="create-requests-button" type="button" class="btn btn-primary" aria-label="Add items to batch">Add items to batch</button>
86 <div class="modal-footer">
88 <button class="btn btn-default" data-dismiss="modal" aria-hidden="false">Cancel</button>
91 <button id="button_create_batch" class="btn btn-default" aria-hidden="true" disabled>Continue</button>
92 <button id="button_finish" disabled type="button" class="btn btn-default" aria-hidden="true">Finish and view batch</button>