Bug 29824: Allow editing of quick spine labels
To test: 1. Apply patch 2. Go to the quick spine label tool and enter a barcode of an item with a itemcallnumber 3. Notice the 'Edit this label' button at the bottom of the page, click it 4. Edit the itemcallnumber in some way: add some line breaks, remove some, insert some new characters, remove some characters. 5. You can now print the label with your edits. Note: This changes nothing in the database, if you relaod the same item/itemcallnumer it will have returned to its original form Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
01fa021943
commit
d90831f67f
|
|
@ -26,6 +26,7 @@
|
|||
</div>
|
||||
<div id="print_button" class="noprint">
|
||||
<button class="btn btn-default print-label"><i class="fa fa-print"></i> Print this label</button>
|
||||
<button class="btn btn-default edit-label"><i class="fa fa-lock"></i> Edit this label</button>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
|
|
@ -46,6 +47,12 @@
|
|||
e.preventDefault();
|
||||
window.close();
|
||||
});
|
||||
$('.edit-label').click( function() {
|
||||
$('#spinelabel').attr('contenteditable', function(index, attr){
|
||||
return attr == 'true' ? null : 'true';
|
||||
});
|
||||
$('.edit-label .fa').toggleClass('fa-lock').toggleClass('fa-unlock');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue