Lines 1406-1412
Link Here
|
1406 |
</select> |
1406 |
</select> |
1407 |
[% END %] |
1407 |
[% END %] |
1408 |
</fieldset> |
1408 |
</fieldset> |
1409 |
<div id=transfer-cancellation></div> |
1409 |
<br /> |
|
|
1410 |
<div id="transfer-cancellation"></div> |
1410 |
</div> |
1411 |
</div> |
1411 |
|
1412 |
|
1412 |
<div class="modal-footer"> |
1413 |
<div class="modal-footer"> |
Lines 1796-1808
Link Here
|
1796 |
let reserve_id = cancel_link.data('id'); |
1797 |
let reserve_id = cancel_link.data('id'); |
1797 |
let biblionumber = cancel_link.data('biblionumber'); |
1798 |
let biblionumber = cancel_link.data('biblionumber'); |
1798 |
let transfer = cancel_link.data('transfer'); |
1799 |
let transfer = cancel_link.data('transfer'); |
|
|
1800 |
let transferTo = cancel_link.data('transfer-to'); |
1801 |
let transferFrom = cancel_link.data('transfer-from'); |
1802 |
let transferDate = cancel_link.data('transfer-date'); |
1799 |
$("#cancel_modal_form #inputs").append('<input type="hidden" name="reserve_id" value="' + reserve_id + '">'); |
1803 |
$("#cancel_modal_form #inputs").append('<input type="hidden" name="reserve_id" value="' + reserve_id + '">'); |
1800 |
$("#cancel_modal_form #inputs").append('<input type="hidden" name="biblionumber" value="' + biblionumber + '">'); |
1804 |
$("#cancel_modal_form #inputs").append('<input type="hidden" name="biblionumber" value="' + biblionumber + '">'); |
1801 |
$("#cancel_modal_form #inputs").append('<input type="hidden" name="op" value="cud-cancel">'); |
1805 |
$("#cancel_modal_form #inputs").append('<input type="hidden" name="op" value="cud-cancel">'); |
1802 |
if(transfer){ |
1806 |
if(transfer){ |
1803 |
$("#transfer-cancellation").empty() |
1807 |
let transferElement = $("#transfer-cancellation"); |
1804 |
$("#transfer-cancellation").append('<label for="transfer-cancel">A transfer related to this hold has been detected, do you want to cancel it ?</label>'); |
1808 |
transferElement.empty(); |
1805 |
$("#transfer-cancellation").append('<input type="checkbox" id="transfer-cancel" name="transfer-cancel"> </input>'); |
1809 |
transferElement[0].classList.add("alert", "alert-warning", "audio-alert-warning"); |
|
|
1810 |
transferElement.append('<h3>A transfer related to this hold has been detected</h3>'); |
1811 |
transferElement.append('<b> Date: </b>' + transferDate + '<br />'); |
1812 |
transferElement.append('<b>From: </b>' + transferFrom + '<br />'); |
1813 |
transferElement.append('<b>To: </b>' + transferTo + '<br />'); |
1814 |
transferElement.append('<label for="transfer-cancel"><b>Delete this transfer: </b></label>'); |
1815 |
transferElement.append('<input type="checkbox" id="transfer-cancel" name="transfer-cancel"> </input>'); |
1806 |
} |
1816 |
} |
1807 |
$('#cancelModal').modal('show'); |
1817 |
$('#cancelModal').modal('show'); |
1808 |
return false; |
1818 |
return false; |