@@ -, +, @@
when ordering an external source
that the correct data is shown each time.
the "MARC" and "Card" links it displays, confirming that the data
looks correct and corresponds correctly to the title you selected.
---
.../prog/en/modules/acqui/z3950_search.tt | 43 +++++++++++++++++-----
1 file changed, 34 insertions(+), 9 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt
@@ -1,6 +1,5 @@
[% INCLUDE 'doc-head-open.inc' %]
Koha › Acquisitions › [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source › Search results[% END %]
-[% INCLUDE 'greybox.inc' %]
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'datatables.inc' %]
@@ -40,19 +39,31 @@
/* Inline edit/delete links */
$("td").click(function(event){
var $tgt = $(event.target);
+ var row = $(this).parent();
$(".linktools").hide();
$("tr").removeClass("selected");
- if($tgt.is("a")||$tgt.is(":nth-child(5)")||$tgt.is(":nth-child(6)")||$tgt.is(":nth-child(7)")||$tgt.is(":nth-child(8)")){
- return true;
+ row.addClass("selected");
+ if($tgt.is("a")||$tgt.is(":nth-child(6)")||$tgt.is(":nth-child(7)")){
+ //Don't show inline links for cells containing links of their own.
} else {
var position = $(this).offset();
var top = position.top+5;
var left = position.left+5;
$(".linktools",row).show().css("position","absolute").css("top",top).css("left",left);
}
- var row = $(this).parent();
- row.addClass("selected");
});
+ $(".previewData").on("click", function(e){
+ e.preventDefault();
+ var ltitle = $(this).text();
+ var page = $(this).attr("href");
+ $("#dataPreviewLabel").text(ltitle);
+ $("#dataPreview .modal-body").load(page + " div");
+ $('#dataPreview').modal({show:true});
+ });
+ $("#dataPreview").on("hidden", function(){
+ $("#dataPreviewLabel").html("");
+ $("#dataPreview .modal-body").html("