4bc47cbb4181e277b9a15596beb20af7cbf7752f
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / smart-rules.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo; Issuing Rules</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <script type="text/javascript">
6 //<![CDATA[
7 $(document).ready(function() {
8         $('#selectlibrary').find("input:submit").hide();
9         $('#branch').change(function() {
10                 $('#selectlibrary').submit();
11         });
12 });
13 //]]>
14 </script>
15
16 </head>
17 <body>
18 <!-- TMPL_INCLUDE NAME="header.inc" -->
19 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
20
21 <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;  Issuing Rules</div>
22
23 <div id="doc3" class="yui-t1">
24
25 <div id="bd">
26     <div id="yui-main">
27     <div class="yui-b">
28     <h1 class="parameters">
29         <!-- TMPL_IF NAME="humanbranch" -->
30             Defining issuing rules for "<!-- TMPL_VAR NAME="humanbranch" -->"
31         <!-- TMPL_ELSE -->
32             Defining default issuing rules
33         <!-- /TMPL_IF -->
34     </h1>
35     <div class="help">
36         <p>The rules are applied from most specific to less specific, using the first found in this order:</p>
37         <ul>
38             <li>same branch, same borrower type, same item type</li>
39             <li>same branch, same borrower type, default item type</li>
40             <li>same branch, default borrower type, same item type</li>
41             <li>default branch, same borrower type, same item type</li>
42             <li>anything else</li>
43         </ul>
44         <p>To modify a rule, create a new one with the same borrower type and item type.</p>
45     </div>
46     <div id="bloc100">
47         <form method="get" action="/cgi-bin/koha/admin/smart-rules.pl" id="selectlibrary">
48         Select a branch :
49             <select name="branch" id="branch" style="width:20em;">
50                 <option value="*">Default</option>
51             <!-- TMPL_LOOP NAME="branchloop" -->
52                                 <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option><!-- /TMPL_IF -->
53             <!-- /TMPL_LOOP -->
54             </select>
55         </form>
56                 <br />
57                 <br />
58         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
59             <input type="hidden" name="op" value="add" />
60             <table>
61             <tr>
62                 <th>Patron Category</th>
63                 <th>Item Type</th>
64                 <th>Amount</th>
65                 <th>Grace Period</th>
66                 <th>Charging Interval</th>
67                 <th>Amoun Loanable</th>
68                 <th>Loan time</th><th>&nbsp;</th>
69             </tr>
70             <!-- TMPL_LOOP NAME="rules" -->
71                 <tr>
72                     <td><!-- TMPL_IF NAME="default_humancategorycode" -->
73                             Any
74                         <!-- TMPL_ELSE -->
75                             <!-- TMPL_VAR NAME="humancategorycode" -->
76                         <!-- /TMPL_IF -->
77                     </td>
78                     <td><!-- TMPL_IF NAME="default_humanitemtype" -->
79                             Any
80                         <!-- TMPL_ELSE -->
81                             <!-- TMPL_VAR NAME="humanitemtype" -->
82                         <!-- /TMPL_IF -->
83                     </td>
84                     <td>$<!-- TMPL_VAR NAME="fine" --></td>
85                     <td><!-- TMPL_IF NAME="firstremind" --><!-- TMPL_VAR NAME="firstremind" --> day(s)<!-- /TMPL_IF --></td>
86                     <td><!-- TMPL_IF NAME="chargeperiod" --><!-- TMPL_VAR NAME="chargeperiod" --> day(s)<!-- /TMPL_IF --></td>
87                     <td><!-- TMPL_VAR NAME="maxissueqty" --></td>
88                     <td><!-- TMPL_IF NAME="issuelength" --><!-- TMPL_VAR NAME="issuelength" --> day(s)<!-- /TMPL_IF --></td>
89                     <td>
90                         <a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&amp;itemtype=<!-- TMPL_VAR NAME="itemtype" -->&amp;categorycode=<!-- TMPL_VAR NAME="categorycode" -->&amp;branch=<!-- TMPL_VAR NAME="branch" -->">Delete</a>
91                     </td>
92                 </tr>
93             <!-- /TMPL_LOOP -->
94                 <tr>
95                     <td>
96                         <select name="categorycode">
97                             <option value="*">Default</option>
98                         <!-- TMPL_LOOP NAME="categoryloop" -->
99                             <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="description" --></option>
100                         <!-- /TMPL_LOOP -->
101                         </select>
102                     </td>
103                     <td>
104                         <select name="itemtype" style="width:13em;">
105                             <option value="*">Default</option>
106                         <!-- TMPL_LOOP NAME="itemtypeloop" -->
107                             <option value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
108                         <!-- /TMPL_LOOP -->
109                         </select>
110                     </td>
111                     <td>$<input name="fine" size="4" /></td>
112                     <td><input name="firstremind" size="2" /> day(s)</td>
113                     <td><input name="chargeperiod" size="2" /> day(s)</td>
114                     <td><input name="maxissueqty" size="3" /></td>
115                     <td><input name="issuelength" size="3" /> day(s)</td>
116                     <td><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"/><input type="submit" value="Add" class="submit" /></td>
117                 </tr>
118             </table>
119         </form>
120     </div>
121 </div>
122
123 </div>
124 <div class="yui-b">
125 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
126 </div>
127 </div>
128 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->