[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Administration › Libraries and Groups
+<title>Koha › Administration › Libraries and groups
[% IF ( editcategory ) %]
- ›[% IF ( categorycode ) %]Edit Group [% categorycode %][% ELSE %]New Group[% END %]
+ ›[% IF ( categorycode ) %]Edit group [% categorycode %][% ELSE %]New group[% END %]
[% ELSIF ( delete_category ) %]
- › Confirm Deletion of Group [% categorycode %]
+ › Confirm deletion of group [% categorycode %]
[% ELSIF ( add ) %]
›[% IF ( heading_branches_add_branch_p ) %]New library[% ELSE %]Modify library [% branchcode %][% END %]
[% ELSIF ( delete_confirm ) %]
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
+<script type="text/javascript" src="[% themelang %]/js/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
+<script language="javascript" type="text/javascript">
+tinyMCE.init({
+ mode : "textareas",
+ theme : "advanced",
+ content_css : "[% themelang %]/css/tinymce.css",
+ plugins : "table,save,advhr,advlink,iespell,contextmenu",
+ theme_advanced_buttons1 : "save,|,bold,italic,|,cut,copy,paste,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,|,link,unlink,anchor,cleanup,help,code,advhr,",
+ theme_advanced_buttons2 : "tablecontrols,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,removeformat,|,visualaid,|,sub,sup,|,charmap",
+ theme_advanced_buttons3 : "",
+ theme_advanced_toolbar_location : "top",
+ theme_advanced_toolbar_align : "left",
+ theme_advanced_path_location : "bottom",
+ theme_advanced_resizing : true,
+ apply_source_formatting : true,
+ height : "300",
+ width : "700"
+});
+</script>
</head>
-<body>
+<body id="admin_branches" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
› <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
-› <a href="/cgi-bin/koha/admin/branches.pl">Libraries and Groups</a>
+› <a href="/cgi-bin/koha/admin/branches.pl">Libraries and groups</a>
[% IF ( editcategory ) %]
-› [% IF ( categorycode ) %]Edit Group [% categorycode %][% ELSE %]New Group[% END %]
+› [% IF ( categorycode ) %]Edit group [% categorycode %][% ELSE %]New group[% END %]
[% ELSIF ( delete_category ) %]
-› Confirm Deletion of Group [% categorycode %]
+› Confirm deletion of group [% categorycode %]
[% ELSIF ( add ) %]
› [% IF ( heading_branches_add_branch_p ) %]New library[% ELSE %]Modify library [% branchcode %][% END %]
[% ELSIF ( delete_confirm ) %]
//]]>
</script>
<ul class="toolbar">
- <li><a id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add">New Library</a></li>
- <li><a id="newcategory" href="/cgi-bin/koha/admin/branches.pl?op=editcategory">New Group</a></li>
+ <li><a id="newbranch" href="/cgi-bin/koha/admin/branches.pl?op=add">New library</a></li>
+ <li><a id="newcategory" href="/cgi-bin/koha/admin/branches.pl?op=editcategory">New group</a></li>
</ul></div>
[% END %]
<ol>
[% FOREACH categoryloo IN categoryloop %]
<li><label for="[% categoryloo.categorycode %]">[% categoryloo.categoryname %]</label>
- <input type="checkbox" id="[% categoryloo.categorycode %]" name="[% categoryloo.categorycode %]" [% categoryloo.checked %] /> <span class="hint">[% categoryloo.codedescription %]</span>
+ [% IF ( categoryloo.checked ) %]
+ <input type="checkbox" id="[% categoryloo.categorycode %]" name="[% categoryloo.categorycode %]" checked="checked" />
+ [% ELSE %]
+ <input type="checkbox" id="[% categoryloo.categorycode %]" name="[% categoryloo.categorycode %]" />
+ [% END %]
+ <span class="hint">[% categoryloo.codedescription %]</span>
</li>
[% END %]
</ol>
</fieldset>[% END %]
<fieldset class="rows">
<ol>
- <li><label for="branchaddress1">Address Line 1</label><input type="text" name="branchaddress1" id="branchaddress1" value="[% branchaddress1 |html %]" /></li>
- <li><label for="branchaddress2">Address Line 2</label><input type="text" name="branchaddress2" id="branchaddress2" value="[% branchaddress2 |html %]" /></li>
- <li><label for="branchaddress3">Address Line 3</label><input type="text" name="branchaddress3" id="branchaddress3" value="[% branchaddress3 |html %]" /></li>
+ <li><label for="branchaddress1">Address line 1</label><input type="text" name="branchaddress1" id="branchaddress1" value="[% branchaddress1 |html %]" /></li>
+ <li><label for="branchaddress2">Address line 2</label><input type="text" name="branchaddress2" id="branchaddress2" value="[% branchaddress2 |html %]" /></li>
+ <li><label for="branchaddress3">Address line 3</label><input type="text" name="branchaddress3" id="branchaddress3" value="[% branchaddress3 |html %]" /></li>
<li><label for="branchcity">City</label><input type="text" name="branchcity" id="branchcity" value="[% branchcity |html %]" /></li>
<li><label for="branchstate">State</label><input type="text" name="branchstate" id="branchstate" value="[% branchstate |html %]" /></li>
- <li><label for="branchzip">Zip/Postal Code</label><input type="text" name="branchzip" id="branchzip" value="[% branchzip |html %]" /></li>
+ <li><label for="branchzip">Zip/Postal code</label><input type="text" name="branchzip" id="branchzip" value="[% branchzip |html %]" /></li>
<li><label for="branchcountry">Country</label><input type="text" name="branchcountry" id="branchcountry" value="[% branchcountry |html %]" /></li>
<li><label for="branchphone">Phone</label><input type="text" name="branchphone" id="branchphone" value="[% branchphone |html %]" /></li>
<li><label for="branchfax">Fax</label><input type="text" name="branchfax" id="branchfax" value="[% branchfax |html %]" /></li>
<li><label for="branchemail">Email</label><input type="text" name="branchemail" id="branchemail" value="[% branchemail |html %]" /></li>
- <li><label for="branchurl">url</label><input type="text" name="branchurl" id="branchurl" value="[% branchurl |html %]" /></li>
+ <li><label for="branchurl">URL</label><input type="text" name="branchurl" id="branchurl" value="[% branchurl |html %]" /></li>
+ <li><label for="opac_info">OPAC info</label><textarea name="opac_info" id="opac_info">[% opac_info |html %]</textarea></li>
<li><label for="branchip">IP</label><input type="text" name="branchip" id="branchip" value="[% branchip |html %]" /> <span class="hint">Can be entered as a single IP, or a subnet such as 192.168.1.*</span></li>
<!--
<li><label for="branchprinter">Library Printer</label>
[% IF ( MESSAGE10 ) %]<div class="dialog message">Library cannot be deleted because there are items held by that library</div>[% END %]
[% IF ( MESSAGE11 ) %]<div class="dialog message">Library cannot be deleted because there are patrons registered at that library</div>[% END %]
[% IF ( branches ) %]
-<span id="pagerbranchest" class="pager">
- <form class="formpager"> <strong>page(s)</strong> :
- <img src="[% interface %]/prog/img/first.png" class="first"/>
- <img src="[% interface %]/prog/img/prev.png" class="prev"/>
- <input type="text" size="5" class="pagedisplay"/>
- <img src="[% interface %]/prog/img/next.png" class="next"/>
- <img src="[% interface %]/prog/img/last.png" class="last"/>
- , entries/page :
- <select class="pagesize">
- <option selected="selected" value="10">10</option>
- <option value="20">20</option>
- <option value="30">30</option>
- <option value="40">40</option>
- <option value="50">50</option>
- <option value="100">100</option>
- </select>
- </form>
-</span>
+<div id="pagerbranchest">
+[% INCLUDE 'table-pager.inc' perpage='10' %]
+</div>
<table id="branchest">
<thead><tr>
<th>Name</th>
<br /><a href="mailto:[% branche.branchemail %]">[% branche.branchemail |html %]</a>[% END %]
[% IF ( branche.branchurl ) %]
<br /><a href="[% branche.branchurl %]">[% branche.branchurl |html %]</a>[% END %]
+ [% IF ( branche.opac_info ) %]
+ <br />OPAC Info: <div>[% branche.opac_info %]</div>[% END %]
[% IF ( branche.branchnotes ) %]
<br />Notes: [% branche.branchnotes |html %][% END %]
[% END %]
[% IF ( branchcategories ) %]
[% FOREACH branchcategorie IN branchcategories %]
- <h3>Group(s): [% IF ( branchcategorie.properties ) %]Properties[% ELSE %][% IF ( branchcategorie.searchdomain ) %]Search Domain[% END %][% END %]</h3>
+ <h3>Group(s): [% IF ( branchcategorie.properties ) %]Properties[% ELSE %][% IF ( branchcategorie.searchdomain ) %]Search domain[% END %][% END %]</h3>
<table>
<tr>
<th>Name</th>
<td><a href="[% catloo.action %]?op=delete_category&categorycode=[% catloo.categorycode |url %]">Delete</a>
</td>
</tr>
- [% END %][% ELSE %]<tr><td colspan="5">No [% IF ( branchcategorie.properties ) %]Properties[% ELSIF ( branchcategorie.searchdomain ) %]Search Domain[% END %] Defined</td></tr>[% END %]
+ [% END %][% ELSE %]<tr><td colspan="5">No [% IF ( branchcategorie.properties ) %]properties[% ELSIF ( branchcategorie.searchdomain ) %]search domain[% END %] defined</td></tr>[% END %]
</table>
[% END %]
[% ELSE %]
- <p>No Groups defined.</p>
+ <p>No groups defined.</p>
[% END %] <!-- NAME="branchcategories" -->
[% END %]
[% IF ( editcategory ) %]
- <h3>[% IF ( categorycode ) %]Edit Group [% categorycode %][% ELSE %]Add Group[% END %]</h3>
+ <h3>[% IF ( categorycode ) %]Edit group [% categorycode %][% ELSE %]Add group[% END %]</h3>
<form action="[% action %]" name="Aform" method="post">
<input type="hidden" name="op" value="addcategory_validate" />
[% IF ( categorycode ) %]
<input type="text" name="codedescription" id="codedescription" size="70" value="[% codedescription |html %]" />
</li>
<li>
- <label for="categorytype">Category Type: </label>
+ <label for="categorytype">Category type: </label>
<select id="categorytype" name="categorytype">
[% FOREACH categorytyp IN categorytype %]
[% IF ( categorytyp.selected ) %]