Addressing bug 1782
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / authorised_values.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo; Authorized Values <!-- TMPL_IF name="add_form" --> &rsaquo; <!-- TMPL_IF name="action_modify" -->Modify authorised value<!-- /TMPL_IF -->
3            <!-- TMPL_IF name="action_add_value" --> &rsaquo;  New authorised value<!-- /TMPL_IF -->
4            <!-- TMPL_IF name="action_add_category" --> &rsaquo; New category<!-- /TMPL_IF --><!-- /TMPL_IF -->
5 <!-- TMPL_IF name="delete_confirm" --> &rsaquo; Confirm Deletion<!-- /TMPL_IF -->
6 <!-- TMPL_IF name="else" -->Authorized values<!-- /TMPL_IF --></title>
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
8 </head>
9 <body>
10 <!-- TMPL_INCLUDE NAME="header.inc" -->
11 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
12
13 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <!-- TMPL_IF name="add_form" --> <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized Values</a> &rsaquo; <!-- TMPL_IF name="action_modify" -->Modify authorised value<!-- /TMPL_IF -->
14            <!-- TMPL_IF name="action_add_value" -->New authorised value<!-- /TMPL_IF -->
15            <!-- TMPL_IF name="action_add_category" -->New category<!-- /TMPL_IF --><!-- /TMPL_IF -->
16 <!-- TMPL_IF name="delete_confirm" --> <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized Values</a> &rsaquo; Confirm Deletion<!-- /TMPL_IF -->
17 <!-- TMPL_IF name="else" -->Authorized values<!-- /TMPL_IF --></div>
18
19 <div id="doc3" class="yui-t2">
20    
21    <div id="bd">
22         <div id="yui-main">
23         <div class="yui-b">
24
25 <!-- TMPL_IF name="add_form" -->
26         <h1>
27            <!-- TMPL_IF name="action_modify" -->Modify authorised value<!-- /TMPL_IF -->
28            <!-- TMPL_IF name="action_add_value" -->New authorised value<!-- /TMPL_IF -->
29            <!-- TMPL_IF name="action_add_category" -->New category<!-- /TMPL_IF -->
30         </h1>
31         <form action="<!-- TMPL_VAR name="script_name" -->" name="Aform" method="post">
32         <input type="hidden" name="op" value="add_validate" />
33         <fieldset class="rows"><ol>
34         <li>
35                          <!-- TMPL_IF name="action_add_category" --><label for="category">Category</label>
36                 <input type="text" name="category"  id="category" size="16" maxlength="16" /> 
37                          <!-- TMPL_ELSE --><span class="label">Category</span>
38                 <input type="hidden" name="category" value="<!-- TMPL_VAR NAME='category' -->" />        <!-- TMPL_VAR NAME='category' -->
39                          <!-- /TMPL_IF -->
40         </li>
41         <li>
42             <label for="authorised_value">Authorized value</label>
43      <!-- TMPL_IF name="action_modify" --><input type="hidden" id="id" name="id" value="<!-- TMPL_VAR name="id" -->" /><!-- /TMPL_IF -->
44             <input type="text" id="authorised_value" name="authorised_value" value="<!-- TMPL_VAR name="authorised_value" -->" />
45         </li>
46         <li>
47             <label for="lib">Description</label>
48             <input type="text" name="lib" id="lib" value="<!-- TMPL_VAR name="lib" -->" />
49         </li>
50         <li>
51             <label for="lib">Icon</label>
52             <ul>
53   <!-- TMPL_LOOP NAME="imagesets" -->
54   <li>Icons from collection <b><!-- TMPL_VAR name="imagesetname" --></b>:</li>
55   <!-- TMPL_LOOP NAME="images" -->
56                         <li style="float: none; display: inline; clear : none; width: auto;">
57             <label> <!-- TMPL_IF NAME="StaffImageUrl" -->
58               <img src="<!-- TMPL_VAR name="StaffImageUrl" -->" alt="<!-- TMPL_VAR name="StaffImageUrl" -->" title="<!-- TMPL_VAR name="StaffImageUrl" -->" />
59         <!-- TMPL_ELSE -->
60         <!-- /TMPL_IF -->
61     <!-- TMPL_IF name="checked" -->
62               <input type="radio" name="imageurl" value="<!-- TMPL_VAR name="KohaImage" -->" checked="checked" />
63     <!-- TMPL_ELSE -->
64               <!-- TMPL_IF NAME="KohaImage" --> <!-- to delete the radio button if there is no image after -->
65               <input type="radio" name="imageurl" value="<!-- TMPL_VAR name="KohaImage" -->" />
66               <!-- /TMPL_IF -->
67     <!-- /TMPL_IF -->
68             </label>
69                         </li>
70   <!-- /TMPL_LOOP -->
71   <!-- /TMPL_LOOP -->
72   </ul>
73
74         
75         </ol></fieldset>
76        <fieldset class="action"> <input type="hidden" name="id" value="<!-- TMPL_VAR name="id" -->" />
77         <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=<!-- TMPL_VAR NAME="category" -->">Cancel</a></fieldset>
78     </form>
79 <!-- /TMPL_IF -->
80
81
82 <!-- TMPL_IF name="delete_confirm" -->
83         <div class="dialog alert">
84 <h3>Confirm Deletion</h3>
85 <table>
86         <tr>
87                 <th>Category</th>
88                 <th>Variable</th>
89                 <th>Value</th>
90         </tr>
91         <tr>
92                 <td><!-- TMPL_VAR name="searchfield" --></td>
93         <td><!-- TMPL_VAR name="Tvalue" --></td>
94         <td><!-- TMPL_VAR name="Tlib" --></td></tr>
95         </table>
96         <form action="<!-- TMPL_VAR name=" script_name " -->" method="post">
97                 <input type="hidden" name="op" value="delete_confirmed" />
98                 <input type="hidden" name="id" value="<!-- TMPL_VAR name="id" -->" />
99                 <input type="hidden" name="searchfield" value="<!-- TMPL_VAR name="searchfield" -->" /><fieldset class="action"><input type="submit" value="Yes, Delete" class="approve" /></form>
100 <form action="<!-- TMPL_VAR name=" script_name " -->" method="get"><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><input type="submit" value="No, Do Not Delete" class="deny" /></form>
101 </div>
102 <!-- /TMPL_IF -->
103
104 <!-- TMPL_IF name="else" -->
105
106 <div id="toolbar">
107         <script type="text/javascript">
108         //<![CDATA[
109
110         // prepare DOM for YUI Toolbar
111
112          $(document).ready(function() {
113             yuiToolbar();
114                 $('#category').find("input:submit").hide();
115                 $('#searchfield').change(function() {
116                 $('#category').submit();
117                 });
118          });
119
120         // YUI Toolbar Functions
121
122         function yuiToolbar() {
123             new YAHOO.widget.Button("addauth");
124             new YAHOO.widget.Button("addcat");
125         }
126
127         //]]>
128         </script>
129         <ul class="toolbar">
130          <li><a id="addauth" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=<!-- TMPL_VAR NAME="category" -->">New Authorized value for <!-- TMPL_VAR name="category" --></a></li>
131     <li><a id="addcat" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New Category</a></li>
132 </ul></div>
133
134 <h1>Authorized values</h1>
135 <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>
136 <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,
137 the subfield is not entered through a free field, but though a list of authorized values</p>
138 <!-- TMPL_IF name="duplicate_category" -->
139 <div>
140 <span class="problem">Could not add value &quot;<!-- TMPL_VAR name="duplicate_value" -->&quot; for category 
141     &quot;<!-- TMPL_VAR name="duplicate_category" -->&quot; &mdash; value already present.
142 </span>
143 </div>
144 <!-- /TMPL_IF -->
145 <form action="/cgi-bin/koha/admin/authorised_values.pl" method="post" id="category"><label for="searchfield">Show Category: </label><!-- TMPL_VAR name="tab_list" --> <input type="submit" value="Submit" /></form>
146 <!-- TMPL_IF EXPR="category eq 'Bsort1'" -->
147     <p>Bsort1 is an authorised value attached to patrons, that can be used for stats purposes</p>
148 <!-- /TMPL_IF -->
149 <!-- TMPL_IF EXPR="category eq 'Bsort2'" -->
150     <p>Bsort2 is an authorised value attached to patrons, that can be used for stats purposes</p>
151 <!-- /TMPL_IF -->
152 <!-- TMPL_IF EXPR="category eq 'Asort1'" -->
153     <p>Asort1 is an authorised value attached to acquisitions, that can be used for stats purposes</p>
154 <!-- /TMPL_IF -->
155 <!-- TMPL_IF EXPR="category eq 'Asort2'" -->
156     <p>Asort2 is an authorised value attached to acquisitions, that can be used for stats purposes</p>
157 <!-- /TMPL_IF -->
158 <!-- TMPL_IF EXPR="category eq 'SUGGEST'" -->
159     <p>The list of patron suggestion reject or accept reasons</p>
160 <!-- /TMPL_IF -->
161 <!-- TMPL_IF EXPR="category eq 'DAMAGED'" -->
162     <p>The list of status to describe a damaged item</p>
163 <!-- /TMPL_IF -->
164 <!-- TMPL_IF EXPR="category eq 'LOST'" -->
165     <p>The list of status to describe a lost item</p>
166 <!-- /TMPL_IF -->
167 <table>
168 <tr>
169         <th>Category</th>
170         <th>Authorized value</th>
171         <th>Description</th>
172         <th>Icon</th>
173         <th>Edit</th>
174         <th>Delete</th>
175         </tr>
176 <!-- TMPL_LOOP name="loop" -->
177 <tr>
178         <td><!-- TMPL_VAR name="category" --></td>
179         <td><!-- TMPL_VAR name="authorised_value" --></td>
180         <td><!-- TMPL_VAR name="lib" --></td>
181         <td><img src="<!-- TMPL_VAR name="imageurl" -->" alt=""/></td>
182         <td><a href="<!-- TMPL_VAR name="edit" -->">Edit</a></td>
183         <td><a href="<!-- TMPL_VAR name="delete" -->">Delete</a></td>
184 </tr>
185 <!-- /TMPL_LOOP -->
186 </table>
187
188 <!-- TMPL_IF NAME="isprevpage" -->
189 <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
190 <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="prevpage" -->" /><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
191         <input type="submit" value="&lt;&lt; Previous" /></form>
192 <!-- /TMPL_IF --> 
193
194 <!-- TMPL_IF NAME="nextpage" -->
195 <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
196 <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextpage" -->" /><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
197         <input type="submit" value="Next Page &gt;&gt;" /></form>
198 <!-- /TMPL_IF -->
199
200 <!-- /TMPL_IF -->
201
202 </div>
203 </div>
204 <div class="yui-b">
205 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
206 </div>
207 </div>
208 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->