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>
102 <li><label for="branchprinter">Library Printer</label>
103 <select id="branchprinter" name="branchprinter">
104 <option value="">None</option>
105 <!-- TMPL_LOOP NAME="printerloop" -->
106 <!-- TMPL_IF NAME="selected" -->
107 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchprinter" --></option>
109 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchprinter" --></option>
116 <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
120 <!-- TMPL_IF name="delete_confirm" -->
121 <form action="<!-- TMPL_VAR name="action" -->" method="post">
122 <fieldset><legend>Confirm deletion of <!-- TMPL_VAR NAME="branchname" --> (<!-- TMPL_VAR NAME="branchcode" -->)?</legend><input type="hidden" name="op" value="delete_confirmed" />
123 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
124 <input type="hidden" name="branchname" value="<!-- TMPL_VAR NAME="branchname" escape="HTML" -->">
125 <fieldset class="action"><input type="submit" value="Delete Library" /> <a class="cancel" href="/cgi-bin/koha/admin/branches.pl">Cancel</a></fieldset>
129 <!-- TMPL_IF name="else" -->
131 <!-- TMPL_IF NAME="message" --><div class="dialog message">
132 <!-- TMPL_VAR name="message" --></div><!-- /TMPL_IF -->
133 <!-- TMPL_IF name="MESSAGE1" --><div class="dialog message">Library not saved — code and/or name missing</div><!-- /TMPL_IF -->
134 <!-- TMPL_IF name="MESSAGE2" --><div class="dialog message">Library saved</div><!-- /TMPL_IF -->
135 <!-- TMPL_IF name="MESSAGE3" --><div class="dialog message">Library deleted</div><!-- /TMPL_IF -->
136 <!-- TMPL_IF name="MESSAGE4" --><div class="dialog message">Library category added</div><!-- /TMPL_IF -->
137 <!-- TMPL_IF name="MESSAGE5" --><div class="dialog message">Library category modified</div><!-- /TMPL_IF -->
138 <!-- TMPL_IF name="MESSAGE6" --><div class="dialog message">Library category deleted</div><!-- /TMPL_IF -->
139 <!-- TMPL_IF name="MESSAGE7" --><div class="dialog message">Library cannot be deleted because there are patrons using that library</div><!-- /TMPL_IF -->
140 <!-- TMPL_IF name="MESSAGE8" --><div class="dialog message">Category cannot be deleted because there are libraries using that category</div><!-- /TMPL_IF -->
142 <!-- TMPL_IF NAME="branches" -->
143 <table id="branchest">
150 <!-- <th>Printer</th> -->
151 <th colspan="2"> </th>
153 <!-- TMPL_LOOP name="branches" -->
154 <!-- TMPL_IF NAME="toggle" -->
157 <tr class="highlight">
159 <td><!-- TMPL_VAR name="branch_name" escape="HTML" --></td>
160 <td><!-- TMPL_VAR name="branch_code" escape="HTML" --></td>
162 <!-- TMPL_IF name="address-empty-p" -->
165 <!-- TMPL_IF name="branchaddress1" -->
166 <!-- TMPL_VAR name="branchaddress1" escape="HTML" --><!-- /TMPL_IF -->
167 <!-- TMPL_IF name="branchaddress2" -->
168 <br /><!-- TMPL_VAR name="branchaddress2" escape="HTML" --><!-- /TMPL_IF -->
169 <!-- TMPL_IF name="branchaddress3" -->
170 <br /><!-- TMPL_VAR name="branchaddress3" escape="HTML" --><!-- /TMPL_IF -->
171 <!-- TMPL_IF name="branchphone" -->
172 <br />Ph: <!-- TMPL_VAR name="branchphone" escape="HTML" --><!-- /TMPL_IF -->
173 <!-- TMPL_IF name="branchfax" -->
174 <br />Fax: <!-- TMPL_VAR name="branchfax" escape="HTML" --><!-- /TMPL_IF -->
175 <!-- TMPL_IF name="branchemail" -->
176 <br />Email: <!-- TMPL_VAR name="branchemail" escape="HTML" --><!-- /TMPL_IF -->
180 <!-- TMPL_IF name="no-categories-p" -->
182 <!-- TMPL_LOOP name="category_list" -->
183 <!-- TMPL_VAR name="categoryname" --><br />
188 <!-- TMPL_VAR NAME="branchip" -->
191 <!-- TMPL_VAR NAME="branchprinter" -->
194 <a href="<!-- TMPL_VAR name="action" -->?op=edit&branchcode=<!-- TMPL_VAR name="value" escape="HTML" -->">Edit</a>
197 <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>
200 <!-- /TMPL_LOOP --></tbody>
203 <div class="dialog message">There are no branches defined. <a href="/cgi-bin/koha/admin/branches.pl?op=add">Start defining libraries</a>.</div>
206 <!-- TMPL_IF NAME="branchcategories" -->
208 <!-- TMPL_LOOP NAME="branchcategories" -->
209 <h3>Group(s): <!-- TMPL_IF NAME="properties" -->Properties<!-- TMPL_ELSE --><!-- TMPL_IF NAME="searchdomain" -->Search Domain<!-- /TMPL_IF --><!-- /TMPL_IF --></h3>
218 <!-- TMPL_IF NAME="catloop" --><!-- TMPL_LOOP name="catloop" -->
220 <td><!-- TMPL_VAR name="categoryname" --></td>
221 <td><!-- TMPL_VAR name="categorycode" --></td>
222 <td><!-- TMPL_VAR name="codedescription" --></td>
223 <td><a href="<!-- TMPL_VAR name="action" -->?op=editcategory&categorycode=<!-- TMPL_VAR name="categorycode" escape="HTML" -->">Edit</a>
225 <td><a href="<!-- TMPL_VAR name="action" -->?op=delete_category&categorycode=<!-- TMPL_VAR name="categorycode" escape="HTML" -->">Delete</a>
228 <!-- /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 -->
236 <!-- /TMPL_IF --> <!-- NAME="branchcategories" -->
239 <!-- TMPL_IF name="editcategory" -->
240 <h3><!-- TMPL_IF NAME="categorycode" -->Edit Group <!-- TMPL_VAR NAME="categorycode" --><!-- TMPL_ELSE -->Add Group<!-- /TMPL_IF --></h3>
241 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
242 <input type="hidden" name="op" value="addcategory_validate" />
243 <!-- TMPL_IF NAME="categorycode" -->
244 <input type="hidden" name="add" value="0">
246 <input type="hidden" name="add" value="1">
248 <fieldset class="rows">
251 <!-- TMPL_IF name="categorycode" -->
252 <span class="label">Category code: </span>
253 <input type="hidden" name="categorycode" id="categorycode" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
254 <!-- TMPL_VAR name="categorycode" -->
256 <label for="categorycode">Category code:</label>
257 <input type="text" name="categorycode" id="categorycode" size="11" maxlength="10" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
261 <label for="categoryname">Name: </label>
262 <input type="text" name="categoryname" id="categoryname" size="40" maxlength="80" value="<!-- TMPL_VAR name="categoryname" escape="HTML" -->" />
265 <label for="codedescription">Description: </label>
266 <input type="text" name="codedescription" id="codedescription" size="70" maxlength="80" value="<!-- TMPL_VAR name="codedescription" escape="HTML" -->" />
269 <label for="categorytype">Category Type: </label>
270 <select id="categorytype" name="categorytype">
271 <!-- TMPL_LOOP NAME="categorytype" -->
272 <!-- 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>
278 <fieldset class="action"><input type="submit" value="Update" /></fieldset>
282 <!-- TMPL_IF name="delete_category" -->
283 <!-- TMPL_UNLESS name="MESSAGE8" -->
285 <form action="<!-- TMPL_VAR name="action" -->" method="post">
286 <input type="hidden" name="op" value="categorydelete_confirmed" />
287 <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
288 <input type="submit" value="YES" />
290 <form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
291 <input type="submit" value="NO" />
293 <!-- /TMPL_UNLESS -->
299 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
302 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->