|
Lines 73-82
Link Here
|
| 73 |
alert(_("Please select at least one card to export.")); |
73 |
alert(_("Please select at least one card to export.")); |
| 74 |
return; // no batch selected |
74 |
return; // no batch selected |
| 75 |
} |
75 |
} |
| 76 |
return GB_showCenter('Export Labels', "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]&" + getstr, 700, 800); |
76 |
return GB_showCenter('Export labels', "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]&" + getstr, 700, 800); |
| 77 |
} |
77 |
} |
| 78 |
else if (mode == 'batch') { |
78 |
else if (mode == 'batch') { |
| 79 |
return GB_showCenter('Export Labels', "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]", 700, 800); |
79 |
return GB_showCenter('Export labels', "/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]", 700, 800); |
| 80 |
} |
80 |
} |
| 81 |
else { |
81 |
else { |
| 82 |
// some pass-thru error trapping just in case... |
82 |
// some pass-thru error trapping just in case... |
|
Lines 115-121
Link Here
|
| 115 |
id: "additems", |
115 |
id: "additems", |
| 116 |
type: "link", |
116 |
type: "link", |
| 117 |
href: "#", |
117 |
href: "#", |
| 118 |
label: _("Add Item(s)"), |
118 |
label: _("Add item(s)"), |
| 119 |
container: "additemsc", |
119 |
container: "additemsc", |
| 120 |
onclick: {fn:function(){Add()}} |
120 |
onclick: {fn:function(){Add()}} |
| 121 |
}); |
121 |
}); |
|
Lines 124-130
Link Here
|
| 124 |
id: "removeitems", |
124 |
id: "removeitems", |
| 125 |
type: "link", |
125 |
type: "link", |
| 126 |
href: "#", |
126 |
href: "#", |
| 127 |
label: _("Remove Item(s)"), |
127 |
label: _("Remove item(s)"), |
| 128 |
container: "removeitemsc", |
128 |
container: "removeitemsc", |
| 129 |
onclick: {fn:function(){Remove()}} |
129 |
onclick: {fn:function(){Remove()}} |
| 130 |
}); |
130 |
}); |
|
Lines 133-139
Link Here
|
| 133 |
id: "deletebatch", |
133 |
id: "deletebatch", |
| 134 |
type: "link", |
134 |
type: "link", |
| 135 |
href: "#", |
135 |
href: "#", |
| 136 |
label: _("Delete Batch"), |
136 |
label: _("Delete batch"), |
| 137 |
container: "deletebatchc", |
137 |
container: "deletebatchc", |
| 138 |
onclick: {fn:function(){DeleteConfirm()}} |
138 |
onclick: {fn:function(){DeleteConfirm()}} |
| 139 |
}); |
139 |
}); |
|
Lines 142-148
Link Here
|
| 142 |
id: "deduplicate", |
142 |
id: "deduplicate", |
| 143 |
type: "link", |
143 |
type: "link", |
| 144 |
href: "#", |
144 |
href: "#", |
| 145 |
label: _("Remove Duplicates"), |
145 |
label: _("Remove duplicates"), |
| 146 |
container: "deduplicatec", |
146 |
container: "deduplicatec", |
| 147 |
onclick: {fn:function(){DeDuplicate()}} |
147 |
onclick: {fn:function(){DeDuplicate()}} |
| 148 |
}); |
148 |
}); |
|
Lines 151-157
Link Here
|
| 151 |
id: "exportitems", |
151 |
id: "exportitems", |
| 152 |
type: "link", |
152 |
type: "link", |
| 153 |
href: "#", |
153 |
href: "#", |
| 154 |
label: _("Export Item(s)"), |
154 |
label: _("Export item(s)"), |
| 155 |
container: "exportitemsc", |
155 |
container: "exportitemsc", |
| 156 |
onclick: {fn:function(){Xport('label')}} |
156 |
onclick: {fn:function(){Xport('label')}} |
| 157 |
}); |
157 |
}); |
|
Lines 160-166
Link Here
|
| 160 |
id: "exportbatch", |
160 |
id: "exportbatch", |
| 161 |
type: "link", |
161 |
type: "link", |
| 162 |
href: "#", |
162 |
href: "#", |
| 163 |
label: _("Export Batch"), |
163 |
label: _("Export batch"), |
| 164 |
container: "exportbatchc", |
164 |
container: "exportbatchc", |
| 165 |
onclick: {fn:function(){Xport('batch')}} |
165 |
onclick: {fn:function(){Xport('batch')}} |
| 166 |
}); |
166 |
}); |
|
Lines 169-179
Link Here
|
| 169 |
//]]> |
169 |
//]]> |
| 170 |
</script> |
170 |
</script> |
| 171 |
<ul class="toolbar"> |
171 |
<ul class="toolbar"> |
| 172 |
<li id="additemsc"><a id="additems" href="#">Add Item(s)</a></li>[% IF ( table_loop ) %] |
172 |
<li id="additemsc"><a id="additems" href="#">Add item(s)</a></li>[% IF ( table_loop ) %] |
| 173 |
<li id="removeitemsc"><a id="removeitems" href="#">Remove Item(s)</a></li> |
173 |
<li id="removeitemsc"><a id="removeitems" href="#">Remove item(s)</a></li> |
| 174 |
<li id="deletebatchc"><a id="deletebatch" href="#">Delete Batch</a></li> |
174 |
<li id="deletebatchc"><a id="deletebatch" href="#">Delete batch</a></li> |
| 175 |
<li id="deduplicatec"><a id="deduplicate" href="#">Remove Duplicates</a></li> |
175 |
<li id="deduplicatec"><a id="deduplicate" href="#">Remove duplicates</a></li> |
| 176 |
<li id="exportitemsc"><a id="exportitems" href="#">Export Item(s)</a></li> |
176 |
<li id="exportitemsc"><a id="exportitems" href="#">Export item(s)</a></li> |
| 177 |
<li id="exportbatchc"><a id="exportbatch" href="#">Export Batch</a></li>[% END %] |
177 |
<li id="exportbatchc"><a id="exportbatch" href="#">Export batch</a></li>[% END %] |
| 178 |
</ul> |
178 |
</ul> |
| 179 |
</div> |
179 |
</div> |