|
Lines 3-8
Link Here
|
| 3 |
[% USE Branches %] |
3 |
[% USE Branches %] |
| 4 |
[% USE ItemTypes %] |
4 |
[% USE ItemTypes %] |
| 5 |
[% USE AuthorisedValues %] |
5 |
[% USE AuthorisedValues %] |
|
|
6 |
[% USE TablesSettings %] |
| 6 |
[% PROCESS 'i18n.inc' %] |
7 |
[% PROCESS 'i18n.inc' %] |
| 7 |
[% SET footerjs = 1 %] |
8 |
[% SET footerjs = 1 %] |
| 8 |
[% PROCESS 'member-display-address-style.inc' %] |
9 |
[% PROCESS 'member-display-address-style.inc' %] |
|
Lines 235-241
Link Here
|
| 235 |
<div class="form-control-group"> |
236 |
<div class="form-control-group"> |
| 236 |
<label class="hint" for="barcode">Enter item barcode: </label> |
237 |
<label class="hint" for="barcode">Enter item barcode: </label> |
| 237 |
<input name="barcode" id="barcode" size="15" class="barcode focus" placeholder="Enter item barcode" type="text" /> |
238 |
<input name="barcode" id="barcode" size="15" class="barcode focus" placeholder="Enter item barcode" type="text" /> |
| 238 |
<input class="btn btn-default" type="submit" value="Transfer" /> |
239 |
<input class="btn btn-primary" type="submit" value="Transfer" /> |
| 239 |
</div> |
240 |
</div> |
| 240 |
</fieldset> |
241 |
</fieldset> |
| 241 |
[% FOREACH trsfitemloo IN trsfitemloop %] |
242 |
[% FOREACH trsfitemloo IN trsfitemloop %] |
|
Lines 250-291
Link Here
|
| 250 |
|
251 |
|
| 251 |
[% IF ( trsfitemloop ) %] |
252 |
[% IF ( trsfitemloop ) %] |
| 252 |
<div class="page-section"> |
253 |
<div class="page-section"> |
| 253 |
<table> |
254 |
<table id="transferstable"> |
| 254 |
<caption>Transferred items</caption> |
255 |
<caption>Transferred items</caption> |
| 255 |
<tr> |
256 |
<thead> |
| 256 |
<th class="tf-title">Title</th> |
|
|
| 257 |
<th class="tf-author">Author</th> |
| 258 |
<th class="tf-barcode">Barcode</th> |
| 259 |
<th class="tf-location">Shelving location</th> |
| 260 |
<th class="tf-itemcallnumber">Call number</th> |
| 261 |
<th class="tf-itemtype">Item type</th> |
| 262 |
<th class="tf-ccode">Collection</th> |
| 263 |
<th class="tf-origin">Origin</th> |
| 264 |
<th class="tf-destination">Destination</th> |
| 265 |
<th class="tf-printslip">Actions</th> |
| 266 |
</tr> |
| 267 |
[% FOREACH trsfitemloo IN trsfitemloop %] |
| 268 |
<tr> |
257 |
<tr> |
| 269 |
<td class="tf-title"> [% INCLUDE 'biblio-title.inc' biblio=trsfitemloo.item.biblio link=1 %] </td> |
258 |
<th class="tf-title">Title</th> |
| 270 |
<td class="tf-author">[% trsfitemloo.item.biblio.author | html %]</td> |
259 |
<th class="tf-author">Author</th> |
| 271 |
<td class="tf-barcode" |
260 |
<th class="tf-barcode">Barcode</th> |
| 272 |
><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% trsfitemloo.item.biblionumber | uri %]&itemnumber=[% trsfitemloo.item.itemnumber | uri %]#item[% trsfitemloo.item.itemnumber | uri %]" |
261 |
<th class="tf-location">Shelving location</th> |
| 273 |
>[% trsfitemloo.item.barcode | html %]</a |
262 |
<th class="tf-itemcallnumber">Call number</th> |
| 274 |
></td |
263 |
<th class="tf-itemtype">Item type</th> |
| 275 |
> |
264 |
<th class="tf-ccode">Collection</th> |
| 276 |
<td class="tf-location"><span class="shelvingloc">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => trsfitemloo.item.location ) | html %]</span></td> |
265 |
<th class="tf-origin">Origin</th> |
| 277 |
<td class="tf-itemcallnumber">[% trsfitemloo.item.itemcallnumber | html %]</td> |
266 |
<th class="tf-destination">Destination</th> |
| 278 |
<td class="tf-itemtype">[% ItemTypes.GetDescription( trsfitemloo.item.effective_itemtype ) | html %]</td> |
267 |
<th class="tf-printslip">Actions</th> |
| 279 |
<td class="tf-ccode">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %]</td> |
|
|
| 280 |
<td class="tf-origin">[% Branches.GetName( trsfitemloo.frombrcd ) | html %]</td> |
| 281 |
<td class="tf-destination">[% Branches.GetName( trsfitemloo.tobrcd ) | html %]</td> |
| 282 |
<td class="tf-printslip"> |
| 283 |
<button type="button" class="btn btn-default btn-sm printtransferslip" data-itemnumber="[% trsfitemloo.item.itemnumber | html %]" data-tobranch="[% trsfitemloo.tobrcd | html %]" |
| 284 |
><i class="fa fa-print"></i> Print slip</button |
| 285 |
> |
| 286 |
</td> |
| 287 |
</tr> |
268 |
</tr> |
| 288 |
[% END # /FOREACH trsfitemloo %] |
269 |
</thead> |
|
|
270 |
<tbody> |
| 271 |
[% FOREACH trsfitemloo IN trsfitemloop %] |
| 272 |
<tr> |
| 273 |
<td class="tf-title"> [% INCLUDE 'biblio-title.inc' biblio=trsfitemloo.item.biblio link=1 %] </td> |
| 274 |
<td class="tf-author">[% trsfitemloo.item.biblio.author | html %]</td> |
| 275 |
<td class="tf-barcode" |
| 276 |
><a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% trsfitemloo.item.biblionumber | uri %]&itemnumber=[% trsfitemloo.item.itemnumber | uri %]#item[% trsfitemloo.item.itemnumber | uri %]" |
| 277 |
>[% trsfitemloo.item.barcode | html %]</a |
| 278 |
></td |
| 279 |
> |
| 280 |
<td class="tf-location"><span class="shelvingloc">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => trsfitemloo.item.location ) | html %]</span></td> |
| 281 |
<td class="tf-itemcallnumber">[% trsfitemloo.item.itemcallnumber | html %]</td> |
| 282 |
<td class="tf-itemtype">[% ItemTypes.GetDescription( trsfitemloo.item.effective_itemtype ) | html %]</td> |
| 283 |
<td class="tf-ccode">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %]</td> |
| 284 |
<td class="tf-origin">[% Branches.GetName( trsfitemloo.frombrcd ) | html %]</td> |
| 285 |
<td class="tf-destination">[% Branches.GetName( trsfitemloo.tobrcd ) | html %]</td> |
| 286 |
<td class="tf-printslip"> |
| 287 |
<button type="button" class="btn btn-default btn-sm printtransferslip" data-itemnumber="[% trsfitemloo.item.itemnumber | html %]" data-tobranch="[% trsfitemloo.tobrcd | html %]" |
| 288 |
><i class="fa fa-print"></i> Print slip</button |
| 289 |
> |
| 290 |
</td> |
| 291 |
</tr> |
| 292 |
[% END # /FOREACH trsfitemloo %] |
| 293 |
</tbody> |
| 289 |
</table> |
294 |
</table> |
| 290 |
</div> |
295 |
</div> |
| 291 |
<!-- /.page-section --> |
296 |
<!-- /.page-section --> |
|
Lines 293-310
Link Here
|
| 293 |
[% END # /IF found %] |
298 |
[% END # /IF found %] |
| 294 |
[% END %] |
299 |
[% END %] |
| 295 |
[% MACRO jsinclude BLOCK %] |
300 |
[% MACRO jsinclude BLOCK %] |
|
|
301 |
[% INCLUDE 'datatables.inc' %] |
| 296 |
[% INCLUDE 'select2.inc' %] |
302 |
[% INCLUDE 'select2.inc' %] |
| 297 |
<script> |
303 |
<script> |
| 298 |
$(".printtransferslip").on("click", function(e){ |
304 |
var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'transfers', 'transferstable', 'json' ) | $raw %] |
| 299 |
e.preventDefault(); |
|
|
| 300 |
var itemnumber = $(this).attr('data-itemnumber'); |
| 301 |
var to_branch = $(this).attr('data-tobranch'); |
| 302 |
window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch); |
| 303 |
}); |
| 304 |
$(document).ready( function() { |
305 |
$(document).ready( function() { |
|
|
306 |
$(".printtransferslip").on("click", function(e){ |
| 307 |
e.preventDefault(); |
| 308 |
var itemnumber = $(this).attr('data-itemnumber'); |
| 309 |
var to_branch = $(this).attr('data-tobranch'); |
| 310 |
window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch); |
| 311 |
}); |
| 305 |
[% IF ( found ) %] |
312 |
[% IF ( found ) %] |
| 306 |
$("#transfer_confirm").modal('show'); |
313 |
$("#transfer_confirm").modal('show'); |
| 307 |
[% END %] |
314 |
[% END %] |
|
|
315 |
var transfers_table = $("#transferstable").kohaTable( |
| 316 |
{ |
| 317 |
searching: false, |
| 318 |
paging: false, |
| 319 |
info: false, |
| 320 |
ordering: false, |
| 321 |
dom: '<"table_controls"B>rt', |
| 322 |
}, |
| 323 |
table_settings |
| 324 |
); |
| 308 |
}); |
325 |
}); |
| 309 |
</script> |
326 |
</script> |
| 310 |
[% END %] |
327 |
[% END %] |
| 311 |
- |
|
|