Commit 1900ff5
committed
Add opacnotes option to OPAC ILL create form
Queried by HERT. The following needs to be in OPACUserJS for customized
UI element:
$(document).ready(function() {
if (window.location.href.indexOf('opac-illrequests.pl') !== -1 && window.location.href.indexOf('add_form') !== -1) {
$('li:has(label[for="notesopac"])').replaceWith(`
<li>
<input type="checkbox" id="lowerlocker">
<label for="lowerlocker">Would you like to pick up on the lower locker?</label>
<input type="hidden" id="notesopac" name="notesopac">
</li>
`);
$('#lowerlocker').on('change', function() {
if (this.checked) {
$('#notesopac').val('Patron has requested to pick up from lower placed locker');
} else {
$('#notesopac').val('');
}
});
}
});1 parent 786a169 commit 1900ff5
File tree
3 files changed
+27
-0
lines changed- Koha/Plugin/Com/PTFSEurope
- RapidILL
- opac-includes
3 files changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
749 | 750 | | |
750 | 751 | | |
751 | 752 | | |
| 753 | + | |
752 | 754 | | |
753 | 755 | | |
754 | 756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
59 | 73 | | |
60 | 74 | | |
61 | 75 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
70 | 81 | | |
71 | 82 | | |
72 | 83 | | |
| |||
0 commit comments