Merge branch 'translation' of git://git.workbuffer.org/git/koha into master
[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 authorized value<!-- /TMPL_IF -->
3            <!-- TMPL_IF name="action_add_value" --> &rsaquo;  New authorized 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 <script type="text/JavaScript" language="JavaScript">
9 //<![CDATA[
10      $(document).ready(function() {
11         $('#icons > ul').tabs();
12      });
13 //]]>
14 </script>
15 <style type="text/css">
16         fieldset.rows div.toptabs li { clear:none;margin-right:.5em;padding-bottom:0;width:auto; }
17         fieldset.rows div.toptabs .ui-tabs-nav li.ui-tabs-selected {background-color : transparent; }
18         fieldset.rows .ui-tabs-panel { margin-right : 10px; margin-left : 10px;margin-bottom:10px;}
19 </style>
20 </head>
21 <body>
22 <!-- TMPL_INCLUDE NAME="header.inc" -->
23 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
24
25 <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 authorized value<!-- /TMPL_IF -->
26            <!-- TMPL_IF name="action_add_value" -->New authorized value<!-- /TMPL_IF -->
27            <!-- TMPL_IF name="action_add_category" -->New category<!-- /TMPL_IF --><!-- /TMPL_IF -->
28 <!-- TMPL_IF name="delete_confirm" --> <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized Values</a> &rsaquo; Confirm Deletion<!-- /TMPL_IF -->
29 <!-- TMPL_IF name="else" -->Authorized values<!-- /TMPL_IF --></div>
30
31 <div id="doc3" class="yui-t2">
32    
33    <div id="bd">
34         <div id="yui-main">
35         <div class="yui-b">
36
37 <!-- TMPL_IF name="add_form" -->
38         <h1>
39            <!-- TMPL_IF name="action_modify" -->Modify authorized value<!-- /TMPL_IF -->
40            <!-- TMPL_IF name="action_add_value" -->New authorized value<!-- /TMPL_IF -->
41            <!-- TMPL_IF name="action_add_category" -->New category<!-- /TMPL_IF -->
42         </h1>
43         <form action="<!-- TMPL_VAR name="script_name" -->" name="Aform" method="post">
44         <input type="hidden" name="op" value="add_validate" />
45     <input type="hidden" name="offset" value="<!-- TMPL_VAR name="offset" -->" />
46         <fieldset class="rows"><ol>
47         <li>
48                          <!-- TMPL_IF name="action_add_category" --><label for="category">Category</label>
49                 <input type="text" name="category"  id="category" size="16" maxlength="16" /> 
50                          <!-- TMPL_ELSE --><span class="label">Category</span>
51                 <input type="hidden" name="category" value="<!-- TMPL_VAR NAME='category' -->" />        <!-- TMPL_VAR NAME='category' -->
52                          <!-- /TMPL_IF -->
53         </li>
54         <li>
55             <label for="authorised_value">Authorized value</label>
56      <!-- TMPL_IF name="action_modify" --><input type="hidden" id="id" name="id" value="<!-- TMPL_VAR name="id" -->" /><!-- /TMPL_IF -->
57             <input type="text" id="authorised_value" name="authorised_value" value="<!-- TMPL_VAR name="authorised_value" -->" />
58         </li>
59         <li>
60             <label for="lib">Description</label>
61             <input type="text" name="lib" id="lib" value="<!-- TMPL_VAR name="lib" -->" />
62         </li>
63         <li>
64             <label for="lib_opac">Description (OPAC)</label>
65             <input type="text" name="lib_opac" id="lib_opac" value="<!-- TMPL_VAR name="lib_opac" -->" />
66         </li>
67                 </ol>
68                 <div id="icons" class="toptabs">
69                 <h5 style="margin-left:10px;">Choose an Icon:</h5>
70                         <ul>
71                                         <li><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=<!-- TMPL_VAR NAME="category" -->#none">None</a></li>
72                                   <!-- TMPL_LOOP NAME="imagesets" -->
73                                         <li><a href="/cgi-bin/koha/admin/authorised_values.pl?op=add_form&amp;category=<!-- TMPL_VAR NAME="category" -->#<!-- TMPL_VAR NAME="imagesetname" -->"><!-- TMPL_VAR name="imagesetname" --></a></li>
74                                   <!-- /TMPL_LOOP -->
75                         </ul>
76                 </div>
77   <div id="none"><ul>
78   <li><label for="noimage">No image: </label><input type="radio" name="imageurl" id="noimage" value="removeImage" /></li>
79   </ul>
80   <br class="clear" /></div>
81   <!-- TMPL_LOOP NAME="imagesets" -->
82   <div id="<!-- TMPL_VAR NAME="imagesetname" -->"><ul>
83   <!-- TMPL_LOOP NAME="images" -->
84                         <li style="float: none; display: inline; clear : none; width: auto;">
85             <label> <!-- TMPL_IF NAME="StaffImageUrl" -->
86               <img src="<!-- TMPL_VAR name="StaffImageUrl" -->" alt="<!-- TMPL_VAR name="StaffImageUrl" -->" title="<!-- TMPL_VAR name="StaffImageUrl" -->" />
87         <!-- TMPL_ELSE -->
88         <!-- /TMPL_IF -->
89     <!-- TMPL_IF name="checked" -->
90               <input type="radio" name="imageurl" value="<!-- TMPL_VAR name="KohaImage" -->" checked="checked" />
91     <!-- TMPL_ELSE -->
92               <!-- TMPL_IF NAME="KohaImage" --> <!-- to delete the radio button if there is no image after -->
93               <input type="radio" name="imageurl" value="<!-- TMPL_VAR name="KohaImage" -->" />
94               <!-- /TMPL_IF -->
95     <!-- /TMPL_IF -->
96             </label>
97                         </li>
98   <!-- /TMPL_LOOP --></ul>
99   <br class="clear" />
100   </div>
101   <!-- /TMPL_LOOP -->
102   
103         </fieldset>
104        <fieldset class="action"> <input type="hidden" name="id" value="<!-- TMPL_VAR name="id" -->" />
105         <input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/authorised_values.pl?searchfield=<!-- TMPL_VAR NAME="category" -->">Cancel</a></fieldset>
106     </form>
107 <!-- /TMPL_IF -->
108
109
110 <!-- TMPL_IF name="delete_confirm" -->
111         <div class="dialog alert">
112 <h3>Confirm Deletion</h3>
113 <table>
114         <tr>
115                 <th>Category</th>
116                 <th>Value</th>
117                 <th>Description</th>
118                 <th>Description (OPAC)</th>
119         </tr>
120         <tr>
121             <td><!-- TMPL_VAR name="searchfield" --></td>
122             <td><!-- TMPL_VAR name="Tvalue" --></td>
123             <td><!-- TMPL_VAR name="Tlib" --></td>
124             <td><!-- TMPL_VAR name="Tlib_opac" --></td>
125         </tr>
126         </table>
127         <form action="<!-- TMPL_VAR name=" script_name " -->" method="post">
128                 <input type="hidden" name="op" value="delete_confirmed" />
129                 <input type="hidden" name="id" value="<!-- TMPL_VAR name="id" -->" />
130                 <input type="hidden" name="searchfield" value="<!-- TMPL_VAR name="searchfield" -->" /><fieldset class="action"><input type="submit" value="Yes, Delete" class="approve" /></form>
131 <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>
132 </div>
133 <!-- /TMPL_IF -->
134
135 <!-- TMPL_IF name="else" -->
136
137 <div id="toolbar">
138         <script type="text/javascript">
139         //<![CDATA[
140
141         // prepare DOM for YUI Toolbar
142
143          $(document).ready(function() {
144             yuiToolbar();
145                 $('#category').find("input:submit").hide();
146                 $('#searchfield').change(function() {
147                 $('#category').submit();
148                 });
149          });
150
151         // YUI Toolbar Functions
152
153         function yuiToolbar() {
154             new YAHOO.widget.Button("addauth");
155             new YAHOO.widget.Button("addcat");
156         }
157
158         //]]>
159         </script>
160         <ul class="toolbar">
161          <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>
162     <li><a id="addcat" href= "/cgi-bin/koha/admin/authorised_values.pl?op=add_form">New Category</a></li>
163 </ul></div>
164
165 <h1>Authorized values</h1>
166 <p>These values can be used in many pull down menus throughout the Koha system. You can define as many categories as you want, and as many authorized values as you want in each category.</p>
167
168 <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>
169
170 <!-- TMPL_IF name="duplicate_category" -->
171 <div>
172 <span class="problem">Could not add value &quot;<!-- TMPL_VAR name="duplicate_value" -->&quot; for category 
173     &quot;<!-- TMPL_VAR name="duplicate_category" -->&quot; &mdash; value already present.
174 </span>
175 </div>
176 <!-- /TMPL_IF -->
177 <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>
178 <!-- TMPL_IF EXPR="category eq 'Bsort1'" -->
179     <p>An authorized value attached to patrons, that can be used for stats purposes</p>
180 <!-- /TMPL_IF -->
181 <!-- TMPL_IF EXPR="category eq 'Bsort2'" -->
182     <p>An authorized value attached to patrons, that can be used for stats purposes</p>
183 <!-- /TMPL_IF -->
184 <!-- TMPL_IF EXPR="category eq 'Asort1'" -->
185     <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
186 <!-- /TMPL_IF -->
187 <!-- TMPL_IF EXPR="category eq 'Asort2'" -->
188     <p>An authorized value attached to acquisitions, that can be used for stats purposes</p>
189 <!-- /TMPL_IF -->
190 <!-- TMPL_IF EXPR="category eq 'SUGGEST'" -->
191     <p>Reasons to reject or accept patron suggestions</p>
192 <!-- /TMPL_IF -->
193 <!-- TMPL_IF EXPR="category eq 'DAMAGED'" -->
194     <p>Statuses to describe a damaged item</p>
195 <!-- /TMPL_IF -->
196 <!-- TMPL_IF EXPR="category eq 'LOST'" -->
197    <p>Statuses to describe a lost item</p>
198 <!-- /TMPL_IF -->
199 <!-- TMPL_IF EXPR="category eq 'MANUAL_INV'" -->
200     <p>Additional values for manual invoice types</p>
201 <!-- /TMPL_IF -->
202 <!-- TMPL_IF EXPR="category eq 'BOR_NOTES'" -->
203     <p>Values for custom patron notes</p>
204 <!-- /TMPL_IF -->
205 <!-- TMPL_IF EXPR="category eq 'LOC'" -->
206     <p>Values for shelving locations</p>
207 <!-- /TMPL_IF -->
208 <!-- TMPL_IF EXPR="category eq 'CCODE'" -->
209     <p>Values for collection codes</p>
210  <!-- /TMPL_IF -->
211  <!-- TMPL_IF EXPR="category eq 'NOT_LOAN'" -->
212     <p>Statuses to describe why an item is not for loan</p>
213  <!-- /TMPL_IF -->
214 <table>
215 <caption>Authorized values for category <!-- TMPL_VAR name="category" --> :</caption>
216 <tr>
217         <th>Authorized value</th>
218         <th>Description</th>
219         <th>Description (OPAC)</th>
220         <th>Icon</th>
221         <th>Edit</th>
222         <th>Delete</th>
223         </tr>
224 <!-- TMPL_LOOP name="loop" -->
225 <!-- TMPL_UNLESS name="__odd__" -->
226 <tr class="highlight">
227 <!-- TMPL_ELSE -->
228 <tr>
229 <!-- /TMPL_UNLESS -->
230         <td><!-- TMPL_VAR name="authorised_value" --></td>
231         <td><!-- TMPL_VAR name="lib" --></td>
232         <td><!-- TMPL_VAR name="lib_opac" --></td>
233         <td><!-- TMPL_IF NAME="imageurl" --><img src="<!-- TMPL_VAR name="imageurl" -->" alt=""/><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td>
234         <td><a href="<!-- TMPL_VAR name="edit" -->">Edit</a></td>
235         <td><a href="<!-- TMPL_VAR name="delete" -->">Delete</a></td>
236 </tr>
237 <!-- /TMPL_LOOP -->
238 </table>
239
240 <!-- TMPL_IF NAME="isprevpage" -->
241 <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
242 <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="prevpage" -->" /><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
243         <input type="submit" value="&lt;&lt; Previous" /></form>
244 <!-- /TMPL_IF --> 
245
246 <!-- TMPL_IF NAME="nextpage" -->
247 <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
248 <input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextpage" -->" /><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
249         <input type="submit" value="Next Page &gt;&gt;" /></form>
250 <!-- /TMPL_IF -->
251
252 <!-- /TMPL_IF -->
253
254 </div>
255 </div>
256 <div class="yui-b">
257 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
258 </div>
259 </div>
260 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->