Lines 1-3
Link Here
|
|
|
1 |
[% SET footerjs = 1 %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Cataloging › Attach an item to [% bibliotitle | html %]</title> |
3 |
<title>Koha › Cataloging › Attach an item to [% bibliotitle | html %]</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
Lines 62-68
Link Here
|
62 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
63 |
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" /> |
63 |
</form> |
64 |
</form> |
64 |
</p> |
65 |
</p> |
|
|
66 |
|
65 |
</div> |
67 |
</div> |
|
|
68 |
|
69 |
<br/> |
70 |
[% IF from_biblio.items.count == 0 %] |
71 |
<div class="dialog message"> |
72 |
The record <em>[% from_biblio.title | html %]</em> has [% from_biblio.items.count | html %] attached items. |
73 |
<p> |
74 |
<button id="delete-biblio-btn" data-biblionumber="[% from_biblio.id | html %]"><i id="del-bib-spn" class="fa fa-spinner fa-pulse fa-fw" style="display:none"></i><i class="fa fa-fw fa-trash"></i> Delete record |
75 |
</button> |
76 |
<span id="del-bib-success" style="display:none">Record deleted</span> |
77 |
<span id="del-bib-failure" style="display:none">Attempt to delete record failed.</span> |
78 |
</p> |
79 |
</div> |
80 |
[% END %] |
66 |
[% ELSE %] |
81 |
[% ELSE %] |
67 |
[% IF ( missingparameter ) %] |
82 |
[% IF ( missingparameter ) %] |
68 |
<form method="post" action="/cgi-bin/koha/cataloguing/moveitem.pl"> |
83 |
<form method="post" action="/cgi-bin/koha/cataloguing/moveitem.pl"> |
Lines 97-100
Link Here
|
97 |
</div> |
112 |
</div> |
98 |
</div> |
113 |
</div> |
99 |
|
114 |
|
|
|
115 |
[% MACRO jsinclude BLOCK %] |
116 |
<script type="text/javascript"> |
117 |
$("#delete-biblio-btn").on("click", function(){ |
118 |
let btn = $(this); |
119 |
$("#del-bib-spn").show(); |
120 |
let biblionumber = $(this).data('biblionumber'); |
121 |
$.ajax({ |
122 |
url: '/api/v1/biblios/' + biblionumber, |
123 |
type: 'DELETE', |
124 |
success: function(result) { |
125 |
btn.hide(); |
126 |
$('#del-bib-success').show(); |
127 |
}, |
128 |
error: function(result) { |
129 |
btn.hide(); |
130 |
$('#del-bib-failure').show(); |
131 |
} |
132 |
}); |
133 |
}); |
134 |
</script> |
135 |
[% END %] |
136 |
|
100 |
[% INCLUDE 'intranet-bottom.inc' %] |
137 |
[% INCLUDE 'intranet-bottom.inc' %] |
101 |
- |
|
|