1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › <!-- TMPL_IF NAME="editcategory" --><!-- TMPL_IF NAME="categorycode" -->Libraries, branches, & Groups › Edit Group <!-- TMPL_VAR NAME="categorycode" --><!-- TMPL_ELSE -->Libraries, branches, & Groups › New Group<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF NAME="delete_category" -->Libraries, branches, & Groups › Confirm Deletion of Group <!-- TMPL_VAR name="categorycode" --><!-- /TMPL_IF --><!-- TMPL_IF name="add" -->
3 <!-- TMPL_IF name="heading-branches-add-branch-p" -->New library<!-- TMPL_ELSE -->Libraries, branches, & Groups › Modify library <!-- TMPL_VAR name="branchcode" --><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirm" -->Libraries, branches, & Groups › Confirm deletion of library '<!-- TMPL_VAR NAME="branchcode" -->'<!-- /TMPL_IF --><!-- TMPL_IF name="else" -->Libraries, branches, & Groups<!-- /TMPL_IF --></title>
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
8 <!-- TMPL_INCLUDE NAME="header.inc" -->
9 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
13 <!-- TMPL_IF NAME="editcategory" --><a href="/cgi-bin/koha/admin/branches.pl">Libraries, Branches, & Groups</a> › <!-- TMPL_IF NAME="categorycode" -->Edit Group <!-- TMPL_VAR NAME="categorycode" --><!-- TMPL_ELSE -->New Group<!-- /TMPL_IF --><!-- /TMPL_IF -->
14 <!-- TMPL_IF NAME="delete_category" --><a href="/cgi-bin/koha/admin/branches.pl">Libraries, Branches, & Groups</a> › Confirm Deletion of Group <!-- TMPL_VAR name="categorycode" --><!-- /TMPL_IF -->
16 <!-- TMPL_IF name="add" --><a href="/cgi-bin/koha/admin/branches.pl">Libraries, Branches, & Groups</a> ›
17 <!-- TMPL_IF name="heading-branches-add-branch-p" -->New library<!-- TMPL_ELSE -->Modify library <!-- TMPL_VAR name="branchcode" --><!-- /TMPL_IF --><!-- /TMPL_IF -->
19 <!-- TMPL_IF name="delete_confirm" --><a href="/cgi-bin/koha/admin/branches.pl">Libraries, Branches, & Groups</a> › Confirm deletion of library '<!-- TMPL_VAR NAME="branchcode" -->'<!-- /TMPL_IF -->
21 <!-- TMPL_IF name="else" -->Libraries, Branches, & Groups<!-- /TMPL_IF -->
25 <div id="doc3" class="yui-t2">
30 <!-- TMPL_IF name="else" -->
32 <script type="text/javascript">
35 // prepare DOM for YUI Toolbar
37 $(document).ready(function() {
39 $.tablesorter.defaults.widgets = ['zebra'];
40 $("#branchest").tablesorter({
42 headers: { 3:{sorter:false},4:{sorter:false},5:{sorter:false},6:{sorter:false}}
46 // YUI Toolbar Functions
48 function yuiToolbar() {
49 new YAHOO.widget.Button("newbranch");
50 new YAHOO.widget.Button("newcategory");
56 <li><a id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add">New Library</a></li>
57 <li><a id="newcategory" href="/cgi-bin/koha/admin/branches.pl?op=editcategory">New Group</a></li>
61 <!-- TMPL_IF name="add" -->
62 <h3><!-- TMPL_IF name="heading-branches-add-branch-p" -->New library<!-- TMPL_ELSE -->Modify library<!-- /TMPL_IF --></h3>
63 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
64 <fieldset class="rows">
65 <input type="hidden" name="op" value="add_validate" />
66 <!-- TMPL_IF name="heading-branches-add-branch-p" -->
67 <input type="hidden" name="add" value="1" />
69 <input type="hidden" name="add" value="0" />
72 <!-- TMPL_IF name="branchcode" -->
73 <span class="label">Library code</span>
74 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
75 <!-- TMPL_VAR name="branchcode" -->
77 <label for="branchcode">Library code</label>
78 <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
82 <label for="branchname">Name</label>
83 <input type="text" name="branchname" id="branchname" size="40" maxlength="80" value="<!-- TMPL_VAR name="branch_name" escape="HTML" -->" />
85 <li><fieldset><legend>Group(s):</legend>
87 <!-- TMPL_LOOP name="categoryloop" -->
88 <li><label for="<!-- TMPL_VAR name="categorycode" -->"><!-- TMPL_VAR name="categoryname" --></label>
89 <input type="checkbox" id="<!-- TMPL_VAR name="categorycode" -->" name="<!-- TMPL_VAR name="categorycode" -->" <!-- TMPL_VAR name="checked" --> /> <span class="hint"><!-- TMPL_VAR name="codedescription" --></span>
91 <!-- /TMPL_LOOP --></fieldset>
94 <li><label for="branchaddress1">Address Line 1</label><input type="text" name="branchaddress1" id="branchaddress1" value="<!-- TMPL_VAR name="branchaddress1" escape="HTML" -->" /></li>
95 <li><label for="branchaddress2">Address Line 2</label><input type="text" name="branchaddress2" id="branchaddress2" value="<!-- TMPL_VAR name="branchaddress2" escape="HTML" -->" /></li>
96 <li><label for="branchaddress3">Address Line 3</label><input type="text" name="branchaddress3" id="branchaddress3" value="<!-- TMPL_VAR name="branchaddress3" escape="HTML" -->" /></li>
97 <li><label for="branchphone">Phone</label><input type="text" name="branchphone" id="branchphone" value="<!-- TMPL_VAR name="branchphone" escape="HTML" -->" /></li>
98 <li><label for="branchfax">Fax</label><input type="text" name="branchfax" id="branchfax" value="<!-- TMPL_VAR name="branchfax" escape="HTML" -->" /></li>
99 <li><label for="branchemail">E-mail</label><input type="text" name="branchemail" id="branchemail" value="<!-- TMPL_VAR name="branchemail" escape="HTML" -->" /></li>
100 <li><label for="branchip">IP</label><input type="text" name="branchip" id="branchip" value="<!-- TMPL_VAR name="branchip" escape="HTML" -->" /> <span class="hint">Can be entered as a single IP, or a subnet such as 192.168.1.*</span></li>
101 <li><label for="branchprinter">Library Printer</label>
102 <select id="branchprinter" name="branchprinter">
103 <option value="">None</option>
104 <!-- TMPL_LOOP NAME="printerloop" -->
105 <!-- TMPL_IF NAME="selected" -->
106 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchprinter" --></option>
108 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchprinter" --></option>
113 <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
117 <!-- TMPL_IF name="delete_confirm" -->
118 <form action="<!-- TMPL_VAR name="action" -->" method="post">
119 <fieldset><legend>Confirm deletion of <!-- TMPL_VAR NAME="branchname" --> (<!-- TMPL_VAR NAME="branchcode" -->)?</legend><input type="hidden" name="op" value="delete_confirmed" />
120 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
121 <input type="hidden" name="branchname" value="<!-- TMPL_VAR NAME="branchname" escape="HTML" -->">
122 <fieldset class="action"><input type="submit" value="Delete Library" /> <a class="cancel" href="/cgi-bin/koha/admin/branches.pl">Cancel</a></fieldset>
126 <!-- TMPL_IF name="else" -->
128 <!-- TMPL_IF NAME="message" --><div class="dialog message">
129 <!-- TMPL_VAR name="message" --></div><!-- /TMPL_IF -->
130 <!-- TMPL_IF name="MESSAGE1" --><div class="dialog message">Library not saved — code and/or name missing</div><!-- /TMPL_IF -->
131 <!-- TMPL_IF name="MESSAGE2" --><div class="dialog message">Library saved</div><!-- /TMPL_IF -->
132 <!-- TMPL_IF name="MESSAGE3" --><div class="dialog message">Library deleted</div><!-- /TMPL_IF -->
133 <!-- TMPL_IF name="MESSAGE4" --><div class="dialog message">Library category added</div><!-- /TMPL_IF -->
134 <!-- TMPL_IF name="MESSAGE5" --><div class="dialog message">Library category modified</div><!-- /TMPL_IF -->
135 <!-- TMPL_IF name="MESSAGE6" --><div class="dialog message">Library category deleted</div><!-- /TMPL_IF -->
136 <!-- TMPL_IF name="MESSAGE7" --><div class="dialog message">Library cannot be deleted because there are patrons using that library</div><!-- /TMPL_IF -->
137 <!-- TMPL_IF name="MESSAGE8" --><div class="dialog message">Category cannot be deleted because there are libraries using that category</div><!-- /TMPL_IF -->
139 <!-- TMPL_IF NAME="branches" -->
140 <table id="branchest">
148 <th colspan="2"> </th>
150 <!-- TMPL_LOOP name="branches" -->
151 <!-- TMPL_IF NAME="toggle" -->
154 <tr class="highlight">
156 <td><!-- TMPL_VAR name="branch_name" escape="HTML" --></td>
157 <td><!-- TMPL_VAR name="branch_code" escape="HTML" --></td>
159 <!-- TMPL_IF name="address-empty-p" -->
162 <!-- TMPL_IF name="branchaddress1" -->
163 <!-- TMPL_VAR name="branchaddress1" escape="HTML" --><!-- /TMPL_IF -->
164 <!-- TMPL_IF name="branchaddress2" -->
165 <br /><!-- TMPL_VAR name="branchaddress2" escape="HTML" --><!-- /TMPL_IF -->
166 <!-- TMPL_IF name="branchaddress3" -->
167 <br /><!-- TMPL_VAR name="branchaddress3" escape="HTML" --><!-- /TMPL_IF -->
168 <!-- TMPL_IF name="branchphone" -->
169 <br />Ph: <!-- TMPL_VAR name="branchphone" escape="HTML" --><!-- /TMPL_IF -->
170 <!-- TMPL_IF name="branchfax" -->
171 <br />Fax: <!-- TMPL_VAR name="branchfax" escape="HTML" --><!-- /TMPL_IF -->
172 <!-- TMPL_IF name="branchemail" -->
173 <br />Email: <!-- TMPL_VAR name="branchemail" escape="HTML" --><!-- /TMPL_IF -->
177 <!-- TMPL_IF name="no-categories-p" -->
179 <!-- TMPL_LOOP name="category_list" -->
180 <!-- TMPL_VAR name="categoryname" --><br />
185 <!-- TMPL_VAR NAME="branchip" -->
188 <!-- TMPL_VAR NAME="branchprinter" -->
191 <a href="<!-- TMPL_VAR name="action" -->?op=edit&branchcode=<!-- TMPL_VAR name="value" escape="HTML" -->">Edit</a>
194 <a href="<!-- TMPL_VAR name="action" -->?branchcode=<!-- TMPL_VAR name="value" escape="HTML" -->&branchname=<!-- TMPL_VAR NAME="branch_name" escape="HTML" -->&op=delete">Delete</a>
197 <!-- /TMPL_LOOP --></tbody>
200 <div class="dialog message">There are no branches defined. <a href="/cgi-bin/koha/admin/branches.pl?op=add">Start defining libraries</a>.</div>
203 <!-- TMPL_IF NAME="branchcategories" -->
205 <!-- TMPL_LOOP NAME="branchcategories" -->
206 <h3>Group(s): <!-- TMPL_IF NAME="properties" -->Properties<!-- TMPL_ELSE --><!-- TMPL_IF NAME="searchdomain" -->Search Domain<!-- /TMPL_IF --><!-- /TMPL_IF --></h3>
215 <!-- TMPL_IF NAME="catloop" --><!-- TMPL_LOOP name="catloop" -->
217 <td><!-- TMPL_VAR name="categoryname" --></td>
218 <td><!-- TMPL_VAR name="categorycode" --></td>
219 <td><!-- TMPL_VAR name="codedescription" --></td>
220 <td><a href="<!-- TMPL_VAR name="action" -->?op=editcategory&categorycode=<!-- TMPL_VAR name="categorycode" escape="HTML" -->">Edit</a>
222 <td><a href="<!-- TMPL_VAR name="action" -->?op=delete_category&categorycode=<!-- TMPL_VAR name="categorycode" escape="HTML" -->">Delete</a>
225 <!-- /TMPL_LOOP --><!-- TMPL_ELSE --><tr><td colspan="5">No <!-- TMPL_IF NAME="properties" -->Properties<!-- TMPL_ELSE --><!-- TMPL_IF NAME="searchdomain" -->Search Domain<!-- /TMPL_IF --><!-- /TMPL_IF --> Defined</td></tr><!-- /TMPL_IF -->
233 <!-- /TMPL_IF --> <!-- NAME="branchcategories" -->
236 <!-- TMPL_IF name="editcategory" -->
237 <h3><!-- TMPL_IF NAME="categorycode" -->Edit Group <!-- TMPL_VAR NAME="categorycode" --><!-- TMPL_ELSE -->Add Group<!-- /TMPL_IF --></h3>
238 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
239 <input type="hidden" name="op" value="addcategory_validate" />
240 <!-- TMPL_IF NAME="categorycode" -->
241 <input type="hidden" name="add" value="0">
243 <input type="hidden" name="add" value="1">
245 <fieldset class="rows">
248 <!-- TMPL_IF name="categorycode" -->
249 <span class="label">Category code: </span>
250 <input type="hidden" name="categorycode" id="categorycode" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
251 <!-- TMPL_VAR name="categorycode" -->
253 <label for="categorycode">Category code:</label>
254 <input type="text" name="categorycode" id="categorycode" size="11" maxlength="10" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
258 <label for="categoryname">Name: </label>
259 <input type="text" name="categoryname" id="categoryname" size="40" maxlength="80" value="<!-- TMPL_VAR name="categoryname" escape="HTML" -->" />
262 <label for="codedescription">Description: </label>
263 <input type="text" name="codedescription" id="codedescription" size="70" maxlength="80" value="<!-- TMPL_VAR name="codedescription" escape="HTML" -->" />
266 <label for="categorytype">Category Type: </label>
267 <select id="categorytype" name="categorytype">
268 <!-- TMPL_LOOP NAME="categorytype" -->
269 <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="type" -->" selected="selected"><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="type" -->"><!-- /TMPL_IF --><!-- TMPL_VAR NAME="type" --></option>
275 <fieldset class="action"><input type="submit" value="Update" /></fieldset>
279 <!-- TMPL_IF name="delete_category" -->
280 <!-- TMPL_UNLESS name="MESSAGE8" -->
282 <form action="<!-- TMPL_VAR name="action" -->" method="post">
283 <input type="hidden" name="op" value="categorydelete_confirmed" />
284 <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
285 <input type="submit" value="YES" />
287 <form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
288 <input type="submit" value="NO" />
290 <!-- /TMPL_UNLESS -->
296 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
299 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->