1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › <!-- TMPL_IF NAME="editcategory" --><!-- TMPL_IF NAME="categorycode" -->Edit Group <!-- TMPL_VAR NAME="categorycode" --><!-- TMPL_ELSE -->New Group<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF NAME="delete_category" -->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 -->Modify library <!-- TMPL_VAR name="branchcode" --><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirm" -->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" -->
7 <!-- TMPL_INCLUDE NAME="header.inc" -->
8 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
10 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
12 <!-- 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 -->
13 <!-- 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 -->
15 <!-- TMPL_IF name="add" --><a href="/cgi-bin/koha/admin/branches.pl">Libraries, Branches, & Groups</a> ›
16 <!-- TMPL_IF name="heading-branches-add-branch-p" -->New library<!-- TMPL_ELSE -->Modify library <!-- TMPL_VAR name="branchcode" --><!-- /TMPL_IF --><!-- /TMPL_IF -->
18 <!-- 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 -->
20 <!-- TMPL_IF name="else" -->Libraries, Branches, & Groups<!-- /TMPL_IF -->
24 <div id="doc3" class="yui-t2">
29 <!-- TMPL_IF name="else" -->
31 <script type="text/javascript">
34 // prepare DOM for YUI Toolbar
36 $(document).ready(function() {
40 // YUI Toolbar Functions
42 function yuiToolbar() {
43 new YAHOO.widget.Button("newbranch");
44 new YAHOO.widget.Button("newcategory");
50 <li><a id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add">New Library</a></li>
51 <li><a id="newcategory" href="/cgi-bin/koha/admin/branches.pl?op=editcategory">New Group</a></li>
55 <!-- TMPL_IF name="add" -->
56 <h3><!-- TMPL_IF name="heading-branches-add-branch-p" -->New library<!-- TMPL_ELSE -->Modify library<!-- /TMPL_IF --></h3>
57 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
58 <fieldset class="rows">
59 <input type="hidden" name="op" value="add_validate" />
60 <!-- TMPL_IF name="heading-branches-add-branch-p" -->
61 <input type="hidden" name="add" value="1" />
63 <input type="hidden" name="add" value="0" />
66 <!-- TMPL_IF name="branchcode" -->
67 <span class="label">Library code</span>
68 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
69 <!-- TMPL_VAR name="branchcode" -->
71 <label for="branchcode">Library code</label>
72 <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
76 <label for="branchname">Name</label>
77 <input type="text" name="branchname" id="branchname" size="40" maxlength="80" value="<!-- TMPL_VAR name="branch_name" escape="HTML" -->" />
79 <li><fieldset><legend>Group(s):</legend>
81 <!-- TMPL_LOOP name="categoryloop" -->
82 <li><label for="<!-- TMPL_VAR name="categorycode" -->"><!-- TMPL_VAR name="categoryname" --></label>
83 <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>
85 <!-- /TMPL_LOOP --></fieldset>
88 <li><label for="branchaddress1">Address Line 1</label><input type="text" name="branchaddress1" id="branchaddress1" value="<!-- TMPL_VAR name="branchaddress1" escape="HTML" -->" /></li>
89 <li><label for="branchaddress2">Address Line 2</label><input type="text" name="branchaddress2" id="branchaddress2" value="<!-- TMPL_VAR name="branchaddress2" escape="HTML" -->" /></li>
90 <li><label for="branchaddress3">Address Line 3</label><input type="text" name="branchaddress3" id="branchaddress3" value="<!-- TMPL_VAR name="branchaddress3" escape="HTML" -->" /></li>
91 <li><label for="branchphone">Phone</label><input type="text" name="branchphone" id="branchphone" value="<!-- TMPL_VAR name="branchphone" escape="HTML" -->" /></li>
92 <li><label for="branchfax">Fax</label><input type="text" name="branchfax" id="branchfax" value="<!-- TMPL_VAR name="branchfax" escape="HTML" -->" /></li>
93 <li><label for="branchemail">E-mail</label><input type="text" name="branchemail" id="branchemail" value="<!-- TMPL_VAR name="branchemail" escape="HTML" -->" /></li>
94 <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>
95 <li><label for="branchprinter">Library Printer</label>
96 <select id="branchprinter" name="branchprinter">
97 <option value="">None</option>
98 <!-- TMPL_LOOP NAME="printerloop" -->
99 <!-- TMPL_IF NAME="selected" -->
100 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchprinter" --></option>
102 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchprinter" --></option>
107 <p><input type="submit" value="Submit" /></p>
111 <!-- TMPL_IF name="delete_confirm" -->
112 <form action="<!-- TMPL_VAR name="action" -->" method="post">
113 <fieldset><legend>Confirm deletion of <!-- TMPL_VAR NAME="branchname" --> (<!-- TMPL_VAR NAME="branchcode" -->)?</legend><input type="hidden" name="op" value="delete_confirmed" />
114 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" escape="HTML" -->" />
115 <input type="hidden" name="branchname" value="<!-- TMPL_VAR NAME="branchname" escape="HTML" -->">
116 <fieldset class="action"><input type="submit" value="Delete Library" /> <a class="cancel" href="/cgi-bin/koha/admin/branches.pl">Cancel</a></fieldset>
120 <!-- TMPL_IF name="else" -->
122 <!-- TMPL_IF NAME="message" --><div class="problem">
123 <!-- TMPL_VAR name="message" --><!-- /TMPL_IF -->
124 <!-- TMPL_IF name="MESSAGE1" --><div class="problem">Library saved</div><!-- /TMPL_IF -->
125 <!-- TMPL_IF name="MESSAGE2" --><div class="problem">Library saved</div><!-- /TMPL_IF -->
126 <!-- TMPL_IF name="MESSAGE3" --><div class="problem">Library deleted</div><!-- /TMPL_IF -->
127 <!-- TMPL_IF name="MESSAGE4" --><div class="problem">Library category added</div><!-- /TMPL_IF -->
128 <!-- TMPL_IF name="MESSAGE5" --><div class="problem">Library category modified</div><!-- /TMPL_IF -->
129 <!-- TMPL_IF name="MESSAGE6" --><div class="problem">Library category deleted</div><!-- /TMPL_IF -->
130 <!-- TMPL_IF name="MESSAGE7" --><div class="problem">Library cannot be deleted because there are patrons using that library</div><!-- /TMPL_IF -->
131 <!-- TMPL_IF name="MESSAGE8" --><div class="problem">Category cannot be deleted because there are libraries using that category</div><!-- /TMPL_IF -->
141 <th colspan="2"> </th>
143 <!-- TMPL_LOOP name="branches" -->
145 <td><!-- TMPL_VAR name="branch_name" escape="HTML" --></td>
146 <td><!-- TMPL_VAR name="branch_code" escape="HTML" --></td>
148 <!-- TMPL_IF name="address-empty-p" -->
151 <!-- TMPL_IF name="branchaddress1" -->
152 <!-- TMPL_VAR name="branchaddress1" escape="HTML" --><!-- /TMPL_IF -->
153 <!-- TMPL_IF name="branchaddress2" -->
154 <br /><!-- TMPL_VAR name="branchaddress2" escape="HTML" --><!-- /TMPL_IF -->
155 <!-- TMPL_IF name="branchaddress3" -->
156 <br /><!-- TMPL_VAR name="branchaddress3" escape="HTML" --><!-- /TMPL_IF -->
157 <!-- TMPL_IF name="branchphone" -->
158 <br />Ph: <!-- TMPL_VAR name="branchphone" escape="HTML" --><!-- /TMPL_IF -->
159 <!-- TMPL_IF name="branchfax" -->
160 <br />Fax: <!-- TMPL_VAR name="branchfax" escape="HTML" --><!-- /TMPL_IF -->
161 <!-- TMPL_IF name="branchemail" -->
162 <br />Email: <!-- TMPL_VAR name="branchemail" escape="HTML" --><!-- /TMPL_IF -->
166 <!-- TMPL_IF name="no-categories-p" -->
168 <!-- TMPL_LOOP name="category_list" -->
169 <!-- TMPL_VAR name="categoryname" --><br />
174 <!-- TMPL_VAR NAME="branchip" -->
177 <!-- TMPL_VAR NAME="branchprinter" -->
180 <a href="<!-- TMPL_VAR name="action" -->?op=edit&branchcode=<!-- TMPL_VAR name="value" escape="HTML" -->">Edit</a>
183 <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>
189 <!-- TMPL_IF NAME="branchcategories" -->
191 <!-- TMPL_LOOP NAME="branchcategories" -->
193 <caption>Group(s): <!-- TMPL_IF NAME="properties" -->Properties<!-- TMPL_ELSE --><!-- TMPL_IF NAME="searchdomain" -->Search Domain<!-- /TMPL_IF --><!-- /TMPL_IF --></caption>
201 <!-- TMPL_IF NAME="catloop" --><!-- TMPL_LOOP name="catloop" -->
203 <td><!-- TMPL_VAR name="categoryname" --></td>
204 <td><!-- TMPL_VAR name="categorycode" --></td>
205 <td><!-- TMPL_VAR name="codedescription" --></td>
206 <td><a href="<!-- TMPL_VAR name="action" -->?op=editcategory&categorycode=<!-- TMPL_VAR name="categorycode" escape="HTML" -->">Edit</a>
208 <td><a href="<!-- TMPL_VAR name="action" -->?op=delete_category&categorycode=<!-- TMPL_VAR name="categorycode" escape="HTML" -->">Delete</a>
211 <!-- /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 -->
219 <!-- /TMPL_IF --> <!-- NAME="branchcategories" -->
222 <!-- TMPL_IF name="editcategory" -->
223 <h3><!-- TMPL_IF NAME="categorycode" -->Edit Group <!-- TMPL_VAR NAME="categorycode" --><!-- TMPL_ELSE -->Add Group<!-- /TMPL_IF --></h3>
224 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
225 <input type="hidden" name="op" value="addcategory_validate" />
226 <fieldset class="rows">
229 <!-- TMPL_IF name="categorycode" -->
230 <span class="label">Category code: </span>
231 <input type="hidden" name="categorycode" id="categorycode" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
232 <!-- TMPL_VAR name="categorycode" -->
234 <label for="categorycode">Category code:</label>
235 <input type="text" name="categorycode" id="categorycode" size="11" maxlength="10" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
239 <label for="categoryname">Name: </label>
240 <input type="text" name="categoryname" id="categoryname" size="40" maxlength="80" value="<!-- TMPL_VAR name="categoryname" escape="HTML" -->" />
243 <label for="codedescription">Description: </label>
244 <input type="text" name="codedescription" id="codedescription" size="70" maxlength="80" value="<!-- TMPL_VAR name="codedescription" escape="HTML" -->" />
247 <label for="categorytype">Category Type: </label>
248 <select id="categorytype" name="categorytype">
249 <!-- TMPL_LOOP NAME="categorytype" -->
250 <option value="<!-- TMPL_VAR NAME="type" -->" <!-- TMPL_IF NAME="selected" -->selected="selected"<!-- /TMPL_IF -->><!-- TMPL_VAR NAME="type" --></option>
255 </fieldset><input type="submit" value="Update" />
259 <!-- TMPL_IF name="delete_category" -->
260 <!-- TMPL_UNLESS name="MESSAGE8" -->
262 <form action="<!-- TMPL_VAR name="action" -->" method="post">
263 <input type="hidden" name="op" value="categorydelete_confirmed" />
264 <input type="hidden" name="categorycode" value="<!-- TMPL_VAR name="categorycode" escape="HTML" -->" />
265 <input type="submit" value="YES" />
267 <form action="<!-- TMPL_VAR name="action" -->" method="post"><input type="hidden" name="op" value="">
268 <input type="submit" value="NO" />
270 <!-- /TMPL_UNLESS -->
276 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
279 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->