<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha › Administration › Authorized Values <!-- TMPL_IF name="add_form" --> › <!-- TMPL_IF name="action_modify" -->Modify authorised value<!-- /TMPL_IF -->
- <!-- TMPL_IF name="action_add_value" -->Add authorised value<!-- /TMPL_IF -->
- <!-- TMPL_IF name="action_add_category" -->Add category<!-- /TMPL_IF --><!-- /TMPL_IF -->
-<!-- TMPL_IF name="delete_confirm" -->Confirm Deletion<!-- /TMPL_IF -->
-<!-- TMPL_IF name="else" -->Authorized values admin<!-- /TMPL_IF --></title>
+ <!-- TMPL_IF name="action_add_value" --> › New authorised value<!-- /TMPL_IF -->
+ <!-- TMPL_IF name="action_add_category" --> › New category<!-- /TMPL_IF --><!-- /TMPL_IF -->
+<!-- TMPL_IF name="delete_confirm" --> › Confirm Deletion<!-- /TMPL_IF -->
+<!-- TMPL_IF name="else" -->Authorized values<!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body>
<!-- TMPL_INCLUDE NAME="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> › <!-- TMPL_IF name="add_form" --> <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized Values</a> › <!-- TMPL_IF name="action_modify" -->Modify authorised value<!-- /TMPL_IF -->
- <!-- TMPL_IF name="action_add_value" -->Add authorised value<!-- /TMPL_IF -->
- <!-- TMPL_IF name="action_add_category" -->Add category<!-- /TMPL_IF --><!-- /TMPL_IF -->
+ <!-- TMPL_IF name="action_add_value" -->New authorised value<!-- /TMPL_IF -->
+ <!-- TMPL_IF name="action_add_category" -->New category<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF name="delete_confirm" --> <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized Values</a> › Confirm Deletion<!-- /TMPL_IF -->
-<!-- TMPL_IF name="else" -->Authorized values admin<!-- /TMPL_IF --></div>
+<!-- TMPL_IF name="else" -->Authorized values<!-- /TMPL_IF --></div>
<div id="doc3" class="yui-t2">
<!-- TMPL_IF name="add_form" -->
<h1>
<!-- TMPL_IF name="action_modify" -->Modify authorised value<!-- /TMPL_IF -->
- <!-- TMPL_IF name="action_add_value" -->Add authorised value<!-- /TMPL_IF -->
- <!-- TMPL_IF name="action_add_category" -->Add category<!-- /TMPL_IF -->
+ <!-- TMPL_IF name="action_add_value" -->New authorised value<!-- /TMPL_IF -->
+ <!-- TMPL_IF name="action_add_category" -->New category<!-- /TMPL_IF -->
</h1>
<form action="<!-- TMPL_VAR name="script_name" -->" name="Aform" method="post">
<input type="hidden" name="op" value="add_validate" />
- <table>
- <tr>
- <th><label for="category">Category</label></th>
- <td><!-- TMPL_VAR name="category" --></td>
- </tr>
- <tr>
- <th><label for="authorised_value">Authorized value</label></th>
- <td><input type="text" id="authorised_value" name="authorised_value" value="<!-- TMPL_VAR name="authorised_value" -->" /></td>
- </tr>
- <tr>
- <th><label for="lib">Description</label></th>
- <td><input type="text" name="lib" id="lib" value="<!-- TMPL_VAR name="lib" -->" /></td>
- </tr>
- </table>
+ <fieldset class="rows"><ol>
+ <li>
+ <!-- TMPL_IF name="action_add_category" --><label for="category">Category</label>
+ <input type="text" name="category" id="category" size="16" maxlength="16" />
+ <!-- TMPL_ELSE --><span class="label">Category</span>
+ <input type="hidden" name="category" value="<!-- TMPL_VAR NAME='category' -->" /> <!-- TMPL_VAR NAME='category' -->
+ <!-- /TMPL_IF -->
+ </li>
+ <li>
+ <label for="authorised_value">Authorized value</label>
+ <input type="text" id="authorised_value" name="authorised_value" value="<!-- TMPL_VAR name="authorised_value" -->" />
+ </li>
+ <li>
+ <label for="lib">Description</label>
+ <input type="text" name="lib" id="lib" value="<!-- TMPL_VAR name="lib" -->" />
+ </li>
+ </ol></fieldset>
<input type="hidden" name="id" value="<!-- TMPL_VAR name="id" -->" />
<input type="submit" value="Save" />
</form>
- <form class="inline" action="/cgi-bin/koha/admin/authorised_values.pl" method="get"><input type="submit" value="Cancel and Return to Authorized Values" /></form>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="delete_confirm" -->
-<!-- -->
-<h3>Confirm Deletion</h3>
+ <form action="<!-- TMPL_VAR name=" script_name " -->" method="post">
+<fieldset>
+<legend>Confirm Deletion</legend>
<table>
<tr>
- <td>Variable</td>
- <td>Description</td>
- <td><!-- TMPL_VAR name="searchfield" --></td>
+ <th>Category</th>
+ <th>Variable</th>
+ <th>Value</th>
</tr>
- <tr><td>Value</td><td><!-- TMPL_VAR name="Tvalue" --></td><td> </td></tr>
+ <tr>
+ <td><!-- TMPL_VAR name="searchfield" --></td>
+ <td><!-- TMPL_VAR name="Tvalue" --></td>
+ <td><!-- TMPL_VAR name="Tlib" --></td></tr>
</table>
- <form action="<!-- TMPL_VAR name=" script_name " -->" method="post">
<input type="hidden" name="op" value="delete_confirmed" />
<input type="hidden" name="id" value="<!-- TMPL_VAR name="id" -->" />
- <input type="hidden" name="searchfield" value="<!-- TMPL_VAR name="searchfield" -->" /><input type="submit" value="Confirm Deletion" /></form> <form class="inline" action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" value="Do Not Delete" /></form>
+ <input type="hidden" name="searchfield" value="<!-- TMPL_VAR name="searchfield" -->" /><fieldset class="action"><input type="submit" value="Yes, Delete" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl">Cancel</a></fieldset></fieldset></form>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="else" -->
-<h1>Authorized values admin</h1>
+<div id="toolbar">
+ <script type="text/javascript">
+ //<![CDATA[
+
+ // prepare DOM for YUI Toolbar
+
+ $(document).ready(function() {
+ yuiToolbar();
+ });
+
+ // YUI Toolbar Functions
+
+ function yuiToolbar() {
+ new YAHOO.widget.Button("addauth");
+ new YAHOO.widget.Button("addcat");
+ }
+
+ //]]>
+ </script>
+ <ul class="toolbar">
+ <li><a id="addauth" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=<!-- TMPL_VAR NAME="category" -->">New Authorized value for <!-- TMPL_VAR name="category" --></a></li>
+ <li><a id="addcat" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New Category</a></li>
+</ul></div>
+
+<h1>Authorized values</h1>
<p>This table is used in MARC definition. You can define as many categories as you want, and as many authorized values as you want in each category.</p>
<p>When you define the MARC subfield structure, you can link a subfield to a authorized-value category. When the user ask for adding of modifying a biblio,
the subfield is not entered through a free field, but though a list of authorized values</p>
+<!-- TMPL_IF name="duplicate_category" -->
+<div>
+<span class="problem">Could not add value "<!-- TMPL_VAR name="duplicate_value" -->" for category
+ "<!-- TMPL_VAR name="duplicate_category" -->" — value already present.
+</span>
+</div>
+<!-- /TMPL_IF -->
<form action="/cgi-bin/koha/admin/authorised_values.pl" method="post"><label for="searchfield">Show Category: </label><!-- TMPL_VAR name="tab_list" --> <input type="submit" value="Submit" /></form>
<table>
<tr>
<input type="submit" value="<< Previous Page" /></form>
<!-- /TMPL_IF -->
-<div id="action">
- <a href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=<!-- TMPL_VAR NAME="category" -->">Add Authorized value for <!-- TMPL_VAR name="category" --></a>
- <a href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">Add New Category</a>
-</div>
-
<!-- TMPL_IF NAME="nextpage" -->
<form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextpage" -->" /><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
<input type="submit" value="Next Page >>" /></form>
<!-- /TMPL_IF -->
+<div id="action">
+ <a href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=<!-- TMPL_VAR NAME="category" -->">Add Authorized value for <!-- TMPL_VAR name="category" --></a>
+ <a href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">Add New Category</a>
+</div>
+
<!-- /TMPL_IF -->
</div>