|
Lines 10-16
Link Here
|
| 10 |
[% INCLUDE 'datatables.inc' %] |
10 |
[% INCLUDE 'datatables.inc' %] |
| 11 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script> |
11 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script> |
| 12 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script> |
12 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script> |
| 13 |
[% INCLUDE 'greybox.inc' %] |
13 |
<style type="text/css">#dataPreview { width : 80%; margin-left : -40%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }</style> |
| 14 |
<script type="text/javascript"> |
14 |
<script type="text/javascript"> |
| 15 |
//<![CDATA[ |
15 |
//<![CDATA[ |
| 16 |
|
16 |
|
|
Lines 104-109
Link Here
|
| 104 |
$.cookie("filter_parcel_ean", $("#eanfilter").val()); |
104 |
$.cookie("filter_parcel_ean", $("#eanfilter").val()); |
| 105 |
}); |
105 |
}); |
| 106 |
|
106 |
|
|
|
107 |
$(".previewData").on("click", function(e){ |
| 108 |
e.preventDefault(); |
| 109 |
var ltitle = $(this).text(); |
| 110 |
var page = $(this).attr("href"); |
| 111 |
$("#dataPreviewLabel").text(ltitle); |
| 112 |
$("#dataPreview .modal-body").load(page + " div"); |
| 113 |
$('#dataPreview').modal({show:true}); |
| 114 |
}); |
| 115 |
$("#dataPreview").on("hidden", function(){ |
| 116 |
$("#dataPreviewLabel").html(""); |
| 117 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
| 118 |
}); |
| 119 |
|
| 107 |
}); |
120 |
}); |
| 108 |
|
121 |
|
| 109 |
// Case-insensitive version of jquery's contains function |
122 |
// Case-insensitive version of jquery's contains function |
|
Lines 275-281
Link Here
|
| 275 |
[<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=vendor">Add vendor note</a>] |
288 |
[<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=vendor">Add vendor note</a>] |
| 276 |
[% END %] |
289 |
[% END %] |
| 277 |
</td> |
290 |
</td> |
| 278 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_order.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% loop_order.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td> |
291 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_order.biblionumber %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% loop_order.biblionumber %]" class="previewData">Card</a></td> |
| 279 |
<td>[% loop_order.quantity %]</td> |
292 |
<td>[% loop_order.quantity %]</td> |
| 280 |
<td>[% loop_order.ecost | $Price %]</td> |
293 |
<td>[% loop_order.ecost | $Price %]</td> |
| 281 |
<td>[% loop_order.total | $Price %]</td> |
294 |
<td>[% loop_order.total | $Price %]</td> |
|
Lines 411-417
Link Here
|
| 411 |
(<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% order.suggestionid %]&op=show">suggestion #[% order.suggestionid %]</a>) |
424 |
(<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% order.suggestionid %]&op=show">suggestion #[% order.suggestionid %]</a>) |
| 412 |
[% END %] |
425 |
[% END %] |
| 413 |
</td> |
426 |
</td> |
| 414 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% order.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% order.biblionumber %]" title="MARC" rel="gb_page_center[600,500]">Card</a></td> |
427 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% order.biblionumber %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% order.biblionumber %]" class="previewData">Card</a></td> |
| 415 |
<td>[% order.quantityreceived %]</td> |
428 |
<td>[% order.quantityreceived %]</td> |
| 416 |
<td>[% order.budget.budget_name %]</td> |
429 |
<td>[% order.budget.budget_name %]</td> |
| 417 |
<td>[% order.ecost | $Price %]</td> |
430 |
<td>[% order.ecost | $Price %]</td> |
|
Lines 446-454
Link Here
|
| 446 |
</tbody> |
459 |
</tbody> |
| 447 |
</table> |
460 |
</table> |
| 448 |
</form> |
461 |
</form> |
|
|
462 |
|
| 449 |
[% ELSE %]There are no received orders.[% END %] |
463 |
[% ELSE %]There are no received orders.[% END %] |
| 450 |
</div> |
464 |
</div> |
| 451 |
|
465 |
|
|
|
466 |
<div id="dataPreview" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true"> |
| 467 |
<div class="modal-header"> |
| 468 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
| 469 |
<h3 id="dataPreviewLabel">MARC preview</h3> |
| 470 |
</div> |
| 471 |
<div class="modal-body"> |
| 472 |
<div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div> |
| 473 |
</div> |
| 474 |
<div class="modal-footer"> |
| 475 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
| 476 |
</div> |
| 477 |
</div> |
| 478 |
|
| 452 |
[% IF (invoiceclosedate) %] |
479 |
[% IF (invoiceclosedate) %] |
| 453 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">View invoice</a> |
480 |
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">View invoice</a> |
| 454 |
[% ELSE %] |
481 |
[% ELSE %] |
| 455 |
- |
|
|