Lines 1-10
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Administration › Libraries and groups |
2 |
<title>Koha › Administration › Libraries |
3 |
[% IF op == 'editcategory' %] |
3 |
[% IF op == 'add_form' %] |
4 |
›[% IF category.categorycode %]Edit group [% category.categorycode%][% ELSE %]New group[% END %] |
|
|
5 |
[% ELSIF op == 'delete_confirm_category' %] |
6 |
› Confirm deletion of group [% category.categorycode %] |
7 |
[% ELSIF op == 'add_form' %] |
8 |
›[% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] |
4 |
›[% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] |
9 |
[% ELSIF op == 'delete_confirm' %] |
5 |
[% ELSIF op == 'delete_confirm' %] |
10 |
› Confirm deletion of library '[% library.branchcode %]' |
6 |
› Confirm deletion of library '[% library.branchcode %]' |
Lines 61-72
tinyMCE.init({
Link Here
|
61 |
<div id="breadcrumbs"> |
57 |
<div id="breadcrumbs"> |
62 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
58 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> |
63 |
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
59 |
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
64 |
› <a href="/cgi-bin/koha/admin/branches.pl">Libraries and groups</a> |
60 |
› <a href="/cgi-bin/koha/admin/branches.pl">Libraries</a> |
65 |
[% IF op == 'add_form_category' %] |
61 |
[% IF op == 'add_form' %] |
66 |
› [% IF category.categorycode %]Edit group [% category.categorycode %][% ELSE %]New group[% END %] |
|
|
67 |
[% ELSIF op == 'delete_confirm_category' %] |
68 |
› Confirm deletion of group [% category.categorycode %] |
69 |
[% ELSIF op == 'add_form' %] |
70 |
› [% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] |
62 |
› [% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] |
71 |
[% ELSIF op == 'delete_confirm' %] |
63 |
[% ELSIF op == 'delete_confirm' %] |
72 |
› Confirm deletion of library '[% library.branchcode %]' |
64 |
› Confirm deletion of library '[% library.branchcode %]' |
Lines 126-132
tinyMCE.init({
Link Here
|
126 |
[% IF op == 'list' %] |
118 |
[% IF op == 'list' %] |
127 |
<div id="toolbar" class="btn-toolbar"> |
119 |
<div id="toolbar" class="btn-toolbar"> |
128 |
<a class="btn btn-default btn-sm" id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add_form"><i class="fa fa-plus"></i> New library</a> |
120 |
<a class="btn btn-default btn-sm" id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add_form"><i class="fa fa-plus"></i> New library</a> |
129 |
<a class="btn btn-default btn-sm" id="newcategory" href="/cgi-bin/koha/admin/branches.pl?op=add_form_category"><i class="fa fa-plus"></i> New group</a> |
|
|
130 |
</div> |
121 |
</div> |
131 |
[% END %] |
122 |
[% END %] |
132 |
|
123 |
|
Lines 226-232
tinyMCE.init({
Link Here
|
226 |
<th>Name</th> |
217 |
<th>Name</th> |
227 |
<th>Code</th> |
218 |
<th>Code</th> |
228 |
<th>Address</th> |
219 |
<th>Address</th> |
229 |
<th>Properties</th> |
|
|
230 |
<th>IP</th> |
220 |
<th>IP</th> |
231 |
<th>Actions</th> |
221 |
<th>Actions</th> |
232 |
</tr> |
222 |
</tr> |
Lines 263-273
tinyMCE.init({
Link Here
|
263 |
[% IF library.branchnotes %] |
253 |
[% IF library.branchnotes %] |
264 |
<br />Notes: [% library.branchnotes |html %][% END %] |
254 |
<br />Notes: [% library.branchnotes |html %][% END %] |
265 |
</td> |
255 |
</td> |
266 |
<td> |
|
|
267 |
[% FOREACH category IN library.get_categories %] |
268 |
[% category.categoryname |html %]<br /> |
269 |
[% END %] |
270 |
</td> |
271 |
<td>[% library.branchip %]</td> |
256 |
<td>[% library.branchip %]</td> |
272 |
<td class="actions"> |
257 |
<td class="actions"> |
273 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=[% library.branchcode %]"><i class="fa fa-pencil"></i> Edit</a> |
258 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?op=add_form&branchcode=[% library.branchcode %]"><i class="fa fa-pencil"></i> Edit</a> |
Lines 280-398
tinyMCE.init({
Link Here
|
280 |
[% ELSE %] |
265 |
[% ELSE %] |
281 |
<div class="dialog message">There are no libraries defined. <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">Start defining libraries</a>.</div> |
266 |
<div class="dialog message">There are no libraries defined. <a href="/cgi-bin/koha/admin/branches.pl?op=add_form">Start defining libraries</a>.</div> |
282 |
[% END %] |
267 |
[% END %] |
283 |
|
|
|
284 |
[% IF group_types %] |
285 |
[% FOREACH group_type IN group_types %] |
286 |
<h3>[% IF group_type.categorytype == 'properties' %]Properties[% ELSIF group_type.categorytype == 'searchdomain' %]Search domain[% END %]</h3> |
287 |
[% IF group_type.categories.size %] |
288 |
<table> |
289 |
<thead> |
290 |
<tr> |
291 |
<th>Name</th> |
292 |
<th>Code</th> |
293 |
<th>Description</th> |
294 |
<th>Actions</th> |
295 |
</tr> |
296 |
</thead> |
297 |
<tbody> |
298 |
[% FOREACH category IN group_type.categories %] |
299 |
<tr> |
300 |
<td>[% category.categoryname |html %]</td> |
301 |
<td>[% category.categorycode %]</td> |
302 |
<td>[% category.codedescription |html %]</td> |
303 |
<td class="actions"> |
304 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=add_form_category"><i class="fa fa-pencil"></i> Edit</a> |
305 |
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/branches.pl?categorycode=[% category.categorycode %]&op=delete_confirm_category"><i class="fa fa-trash"></i> Delete</a> |
306 |
</td> |
307 |
</tr> |
308 |
[% END %] |
309 |
</tbody> |
310 |
</table> |
311 |
[% ELSE %] |
312 |
[% IF group_type.categorytype == 'properties' %] |
313 |
No properties defined. |
314 |
[% ELSIF group_type.categorytype == 'searchdomain' %] |
315 |
No search domain defined. |
316 |
[% END %] |
317 |
<a href="/cgi-bin/koha/admin/branches.pl?op=add_form_category">Add a new group</a>. |
318 |
[% END %] |
319 |
[% END %] |
320 |
[% ELSE %] |
321 |
<p>No groups defined.</p> |
322 |
[% END %] |
323 |
[% END %] |
324 |
|
325 |
[% IF op == 'add_form_category' %] |
326 |
<h3>[% IF category.categorycode %]Edit group [% category.categorycode %][% ELSE %]Add group[% END %]</h3> |
327 |
<form action="/cgi-bin/koha/admin/branches.pl" name="Aform" method="post" class="validated"> |
328 |
<input type="hidden" name="op" value="add_validate_category" /> |
329 |
[% IF category.categorycode %] |
330 |
<input type="hidden" name="is_a_modif" value="1" /> |
331 |
[% END %] |
332 |
<fieldset class="rows"> |
333 |
<ol> |
334 |
<li> |
335 |
[% IF category.categorycode %] |
336 |
<span class="label">Category code: </span> |
337 |
<input type="hidden" name="categorycode" id="categorycode" value="[% category.categorycode |html %]" /> |
338 |
[% category.categorycode %] |
339 |
[% ELSE %] |
340 |
<label for="categorycode" class="required">Category code:</label> |
341 |
<input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" required="required" /> |
342 |
<span class="required">Required</span> |
343 |
[% END %] |
344 |
</li> |
345 |
<li> |
346 |
<label for="categoryname" class="required">Name: </label> |
347 |
<input type="text" name="categoryname" id="categoryname" size="32" maxlength="32" value="[% category.categoryname |html %]" class="required" required="required" /> |
348 |
<span class="required">Required</span> |
349 |
</li> |
350 |
<li> |
351 |
<label for="codedescription">Description: </label> |
352 |
<input type="text" name="codedescription" id="codedescription" size="70" value="[% category.codedescription |html %]" /> |
353 |
</li> |
354 |
<li> |
355 |
<label for="categorytype">Category type: </label> |
356 |
<select id="categorytype" name="categorytype"> |
357 |
[% IF category.categorytype == 'properties' %] |
358 |
<option value="searchdomain">Search domain</option> |
359 |
<option value="properties" selected="selected">Properties</option> |
360 |
[% ELSE %] |
361 |
<option value="searchdomain">Search domain</option> |
362 |
<option value="properties">Properties</option> |
363 |
|
364 |
[% END %] |
365 |
</select> |
366 |
</li> |
367 |
<li> |
368 |
<label for="show_in_pulldown">Show in search pulldown: </label> |
369 |
[% IF category.show_in_pulldown %] |
370 |
<input type="checkbox" name="show_in_pulldown" id="show_in_pulldown" checked="checked"/> |
371 |
[% ELSE %] |
372 |
<input type="checkbox" name="show_in_pulldown" id="show_in_pulldown" /> |
373 |
[% END %] |
374 |
</li> |
375 |
</ol> |
376 |
</fieldset> |
377 |
<fieldset class="action"> |
378 |
<input type="submit" value="Submit" /> |
379 |
<a href="/cgi-bin/koha/admin/branches.pl" class="cancel">Cancel</a> |
380 |
</fieldset> |
381 |
</form> |
382 |
[% END %] |
383 |
|
384 |
[% IF op == 'delete_confirm_category' %] |
385 |
<div class="dialog alert"> |
386 |
<h3>Are you sure you want to delete the group '[% category.codedescription |html %]' ([% category.categorycode %])?</h3> |
387 |
<form action="/cgi-bin/koha/admin/branches.pl" method="post"> |
388 |
<input type="hidden" name="op" value="delete_confirmed_category" /> |
389 |
<input type="hidden" name="categorycode" value="[% category.categorycode |html %]" /> |
390 |
<button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> |
391 |
</form> |
392 |
<form action="/cgi-bin/koha/admin/branches.pl" method="get"> |
393 |
<button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> |
394 |
</form> |
395 |
</div> |
396 |
[% END %] |
268 |
[% END %] |
397 |
|
269 |
|
398 |
</div> |
270 |
</div> |