|
Lines 1-55
Link Here
|
| 1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
| 2 |
<title>Koha › Barcodes and labels › Search results</title> |
2 |
<title>Koha › Barcodes and labels › Search results</title> |
| 3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
| 4 |
<style type="text/css">#custom-doc { width:46.23em;*width:45.04em;min-width:700px; margin:auto;margin-top: .4em; text-align:left; }</style> |
|
|
| 5 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script> |
| 6 |
<script type="text/javascript"> |
| 7 |
//<![CDATA[ |
| 8 |
$(document).ready(function(){ |
| 9 |
$("#toolbar").fixFloat(); |
| 10 |
$("#CheckAll").click(function(e){ |
| 11 |
e.preventDefault(); |
| 12 |
$("input[type='checkbox']").prop("checked",true); |
| 13 |
}); |
| 14 |
$("#CheckNone").click(function(e){ |
| 15 |
e.preventDefault(); |
| 16 |
$("input[type='checkbox']").prop("checked",false); |
| 17 |
}); |
| 18 |
$("#add_items").on("click",function(){ |
| 19 |
add_item('checked',[% batch_id %],'[% type %]'); |
| 20 |
}); |
| 21 |
$(".select_item").on("click",function(e){ |
| 22 |
e.preventDefault(); |
| 23 |
var batch_id = $(this).data("batch-id"); |
| 24 |
var itemnumber = $(this).data("item-number"); |
| 25 |
var type = $(this).data("field-type"); |
| 26 |
add_item(itemnumber, batch_id, type); |
| 27 |
}); |
| 28 |
}); |
| 29 |
function add_item(item_number,batch_id,type_id){ |
| 30 |
var p = window.opener; |
| 31 |
if (item_number == 'checked') { |
| 32 |
items= new Array; |
| 33 |
if(document.resultform.action.length > 0) { |
| 34 |
for (var i=0; i < document.resultform.action.length; i++) { |
| 35 |
if (document.resultform.action[i].checked) { |
| 36 |
p.add_item(document.resultform.action[i].value); |
| 37 |
} |
| 38 |
} |
| 39 |
} else { |
| 40 |
p.add_item(document.resultform.action.value); |
| 41 |
} |
| 42 |
} |
| 43 |
else { |
| 44 |
p.add_item(item_number); |
| 45 |
} |
| 46 |
} |
| 47 |
//]]> |
| 48 |
</script> |
| 49 |
</head> |
4 |
</head> |
|
|
5 |
|
| 50 |
<body id="labels_result" class="tools labels"> |
6 |
<body id="labels_result" class="tools labels"> |
| 51 |
<div id="custom-doc" class="yui-t7"> |
7 |
<div class="container-fluid"> |
| 52 |
<div id="bd"> |
|
|
| 53 |
<h1>Search results</h1> |
8 |
<h1>Search results</h1> |
| 54 |
<div class="results"> |
9 |
<div class="results"> |
| 55 |
[% IF ( displayprev || displaynext ) %] |
10 |
[% IF ( displayprev || displaynext ) %] |
|
Lines 150-153
z [% END -%]
Link Here
|
| 150 |
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div> |
105 |
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Close</a></div> |
| 151 |
[% END %] |
106 |
[% END %] |
| 152 |
</div> |
107 |
</div> |
| 153 |
[% INCLUDE 'popup-bottom.inc' %] |
108 |
|
|
|
109 |
[% MACRO jsinclude BLOCK %] |
| 110 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat_[% KOHA_VERSION %].js"></script> |
| 111 |
<script type="text/javascript"> |
| 112 |
$(document).ready(function(){ |
| 113 |
$("#toolbar").fixFloat(); |
| 114 |
$("#CheckAll").click(function(e){ |
| 115 |
e.preventDefault(); |
| 116 |
$("input[type='checkbox']").prop("checked",true); |
| 117 |
}); |
| 118 |
$("#CheckNone").click(function(e){ |
| 119 |
e.preventDefault(); |
| 120 |
$("input[type='checkbox']").prop("checked",false); |
| 121 |
}); |
| 122 |
$("#add_items").on("click",function(){ |
| 123 |
add_item('checked',[% batch_id %],'[% type %]'); |
| 124 |
}); |
| 125 |
$(".select_item").on("click",function(e){ |
| 126 |
e.preventDefault(); |
| 127 |
var batch_id = $(this).data("batch-id"); |
| 128 |
var itemnumber = $(this).data("item-number"); |
| 129 |
var type = $(this).data("field-type"); |
| 130 |
add_item(itemnumber, batch_id, type); |
| 131 |
}); |
| 132 |
}); |
| 133 |
function add_item(item_number,batch_id,type_id){ |
| 134 |
var p = window.opener; |
| 135 |
if (item_number == 'checked') { |
| 136 |
items= new Array; |
| 137 |
if(document.resultform.action.length > 0) { |
| 138 |
for (var i=0; i < document.resultform.action.length; i++) { |
| 139 |
if (document.resultform.action[i].checked) { |
| 140 |
p.add_item(document.resultform.action[i].value); |
| 141 |
} |
| 142 |
} |
| 143 |
} else { |
| 144 |
p.add_item(document.resultform.action.value); |
| 145 |
} |
| 146 |
} |
| 147 |
else { |
| 148 |
p.add_item(item_number); |
| 149 |
} |
| 150 |
} |
| 151 |
</script> |
| 152 |
[% END %] |
| 153 |
|
| 154 |
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %] |