|
Lines 79-88
Link Here
|
| 79 |
alert(_("Please select at least one label to export.")); |
79 |
alert(_("Please select at least one label to export.")); |
| 80 |
return; // no batch selected |
80 |
return; // no batch selected |
| 81 |
} |
81 |
} |
| 82 |
return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&" + getstr, 700, 800); |
82 |
return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]&" + getstr, 700, 800); |
| 83 |
} |
83 |
} |
| 84 |
else if (mode == 'batch') { |
84 |
else if (mode == 'batch') { |
| 85 |
return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]", 700, 800); |
85 |
return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?batch_id=[% batch_id %]", 700, 800); |
| 86 |
} |
86 |
} |
| 87 |
else { |
87 |
else { |
| 88 |
// some pass-thru error trapping just in case... |
88 |
// some pass-thru error trapping just in case... |
|
Lines 121-127
Link Here
|
| 121 |
id: "additems", |
121 |
id: "additems", |
| 122 |
type: "link", |
122 |
type: "link", |
| 123 |
href: "#", |
123 |
href: "#", |
| 124 |
label: _("Add Item(s)"), |
124 |
label: _("Add item(s)"), |
| 125 |
container: "additemsc", |
125 |
container: "additemsc", |
| 126 |
onclick: {fn:function(){Add()}} |
126 |
onclick: {fn:function(){Add()}} |
| 127 |
}); |
127 |
}); |
|
Lines 130-136
Link Here
|
| 130 |
id: "removeitems", |
130 |
id: "removeitems", |
| 131 |
type: "link", |
131 |
type: "link", |
| 132 |
href: "#", |
132 |
href: "#", |
| 133 |
label: _("Remove Item(s)"), |
133 |
label: _("Remove item(s)"), |
| 134 |
container: "removeitemsc", |
134 |
container: "removeitemsc", |
| 135 |
onclick: {fn:function(){Remove()}} |
135 |
onclick: {fn:function(){Remove()}} |
| 136 |
}); |
136 |
}); |
|
Lines 139-145
Link Here
|
| 139 |
id: "deletebatch", |
139 |
id: "deletebatch", |
| 140 |
type: "link", |
140 |
type: "link", |
| 141 |
href: "#", |
141 |
href: "#", |
| 142 |
label: _("Delete Batch"), |
142 |
label: _("Delete batch"), |
| 143 |
container: "deletebatchc", |
143 |
container: "deletebatchc", |
| 144 |
onclick: {fn:function(){DeleteConfirm()}} |
144 |
onclick: {fn:function(){DeleteConfirm()}} |
| 145 |
}); |
145 |
}); |
|
Lines 148-154
Link Here
|
| 148 |
id: "deduplicate", |
148 |
id: "deduplicate", |
| 149 |
type: "link", |
149 |
type: "link", |
| 150 |
href: "#", |
150 |
href: "#", |
| 151 |
label: _("Remove Duplicates"), |
151 |
label: _("Remove duplicates"), |
| 152 |
container: "deduplicatec", |
152 |
container: "deduplicatec", |
| 153 |
onclick: {fn:function(){DeDuplicate()}} |
153 |
onclick: {fn:function(){DeDuplicate()}} |
| 154 |
}); |
154 |
}); |
|
Lines 157-163
Link Here
|
| 157 |
id: "exportitems", |
157 |
id: "exportitems", |
| 158 |
type: "link", |
158 |
type: "link", |
| 159 |
href: "#", |
159 |
href: "#", |
| 160 |
label: _("Export Item(s)"), |
160 |
label: _("Export item(s)"), |
| 161 |
container: "exportitemsc", |
161 |
container: "exportitemsc", |
| 162 |
onclick: {fn:function(){Xport('label')}} |
162 |
onclick: {fn:function(){Xport('label')}} |
| 163 |
}); |
163 |
}); |
|
Lines 166-172
Link Here
|
| 166 |
id: "exportbatch", |
166 |
id: "exportbatch", |
| 167 |
type: "link", |
167 |
type: "link", |
| 168 |
href: "#", |
168 |
href: "#", |
| 169 |
label: _("Export Batch"), |
169 |
label: _("Export batch"), |
| 170 |
container: "exportbatchc", |
170 |
container: "exportbatchc", |
| 171 |
onclick: {fn:function(){Xport('batch')}} |
171 |
onclick: {fn:function(){Xport('batch')}} |
| 172 |
}); |
172 |
}); |
|
Lines 175-185
Link Here
|
| 175 |
//]]> |
175 |
//]]> |
| 176 |
</script> |
176 |
</script> |
| 177 |
<ul class="toolbar"> |
177 |
<ul class="toolbar"> |
| 178 |
<li id="additemsc"><a id="additems" href="#">Add Item(s)</a></li>[% IF ( table_loop ) %] |
178 |
<li id="additemsc"><a id="additems" href="#">Add item(s)</a></li>[% IF ( table_loop ) %] |
| 179 |
<li id="removeitemsc"><a id="removeitems" href="#">Remove Item(s)</a></li> |
179 |
<li id="removeitemsc"><a id="removeitems" href="#">Remove item(s)</a></li> |
| 180 |
<li id="deletebatchc"><a id="deletebatch" href="#">Delete Batch</a></li> |
180 |
<li id="deletebatchc"><a id="deletebatch" href="#">Delete batch</a></li> |
| 181 |
<li id="deduplicatec"><a id="deduplicate" href="#">Remove Duplicates</a></li> |
181 |
<li id="deduplicatec"><a id="deduplicate" href="#">Remove duplicates</a></li> |
| 182 |
<li id="exportitemsc"><a id="exportitems" href="#">Export Item(s)</a></li> |
182 |
<li id="exportitemsc"><a id="exportitems" href="#">Export item(s)</a></li> |
| 183 |
<li id="exportbatchc"><a id="exportbatch" href="#">Export Batch</a></li>[% END %] |
183 |
<li id="exportbatchc"><a id="exportbatch" href="#">Export batch</a></li>[% END %] |
| 184 |
</ul> |
184 |
</ul> |
| 185 |
</div> |
185 |
</div> |