Lines 2-9
Link Here
|
2 |
[% USE Koha %] |
2 |
[% USE Koha %] |
3 |
[% USE KohaDates %] |
3 |
[% USE KohaDates %] |
4 |
[% USE Price %] |
4 |
[% USE Price %] |
|
|
5 |
|
5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
|
|
|
8 |
[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/mainpage.pl">[% END %] |
9 |
[% INCLUDE 'installer-doc-head-close.inc' %] |
7 |
[% INCLUDE 'calendar.inc' %] |
10 |
[% INCLUDE 'calendar.inc' %] |
8 |
[% INCLUDE 'datatables.inc' %] |
11 |
[% INCLUDE 'datatables.inc' %] |
9 |
|
12 |
|
Lines 18-197
Link Here
|
18 |
var MSG_ONE_ENROLLMENTPERIOD = ("Please choose an enrollment period in months OR by date."); |
21 |
var MSG_ONE_ENROLLMENTPERIOD = ("Please choose an enrollment period in months OR by date."); |
19 |
</script> |
22 |
</script> |
20 |
<script type="text/javascript" src="[% themelang %]/js/categories.js"></script> |
23 |
<script type="text/javascript" src="[% themelang %]/js/categories.js"></script> |
21 |
<style type="text/css">#enrolmentmessage.hint { display : none; }</style> |
|
|
22 |
|
24 |
|
23 |
</head> |
25 |
</head> |
24 |
|
26 |
|
25 |
[% IF (addpatroncategory) %] |
27 |
<div> |
26 |
<!--Onboarding tool step 2-Create a patron category screen 1-->........ |
28 |
<h1 align="center"> Welcome to Koha</h1> |
27 |
<div id="doc3" class="yui-t2"> |
29 |
<h1 id="logo"><img alt="Koha" style="width:50%;margin:auto;display:block;align:center;" src="[% interface %]/[% theme %]/img/koha.org-logo.gif"/></h1> |
28 |
<div id="bd"> |
30 |
</div> |
29 |
<div id="yui-main"> |
31 |
|
30 |
<div class="yui-b"> |
32 |
<!--Create a patron category screen 2--> |
31 |
[% FOR m IN messages %] |
33 |
[% IF (createpatroncategory) %] |
32 |
<div class="dialog [% m.type %]"> |
34 |
|
33 |
[% SWITCH m.code %] |
35 |
<form name="createpatroncategory" method="post" action="onboarding.pl"> |
34 |
[% CASE 'error_on_insert' %] |
36 |
<input type="hidden" name="step" value="3"/> |
35 |
An error occurred when inserting this patron category. The patron category might already exist. |
37 |
<h1 align="left"> New patron category</h1> |
36 |
[% CASE 'success_on_insert' %] |
38 |
<div> |
37 |
Patron category inserted successfully. |
39 |
<p> Success: Patron category created!</p> |
38 |
[% CASE 'already_exists' %] |
40 |
<p> To add another patron category and for more settings<br> |
39 |
This patron category already exists. |
41 |
go to More->Administration->Patrons & Circulation->Patron Categories</p> |
40 |
[% CASE %] |
42 |
</div> |
41 |
[% m.code %] |
43 |
Next up:<br> |
42 |
[% END %] |
44 |
<input type="submit" value="Add a patron"> |
43 |
</div> |
45 |
</form> |
44 |
[% END %] |
46 |
|
45 |
|
47 |
[% ELSE %] |
46 |
<form id="category_form" action="/cgi-bin/koha/admin/categories.pl" method="post"> |
48 |
<h1 align="left"> New Patron Category</h2> |
|
|
49 |
|
50 |
<form id="category_form" method="post" action="onboarding.pl"> |
51 |
<fieldset class="rows"> |
47 |
<input type="hidden" name="step" value="2"/> |
52 |
<input type="hidden" name="step" value="2"/> |
48 |
<input type="hidden" name="op" value="add_validate" /> |
53 |
<input type="hidden" name="op" value="add_validate" /> |
49 |
<input type="hidden" name="op" value="addpatroncategory"/> |
54 |
<input type="hidden" name="createpatroncategory" value="createpatroncategory"/> |
50 |
|
55 |
<ol> |
51 |
<h1 align="left"> New Patron Category</h2> |
56 |
<li> |
52 |
<div style="border-width:5px;"> |
57 |
<label for="categorycode" class="required">Category code: </label> |
53 |
<fieldset class="rows"> |
58 |
<input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" required="required" /> |
54 |
<ol> |
59 |
<span class="required">Required</span> |
55 |
<li> |
60 |
</li> |
56 |
<label for="categorycode" class="required">Category code: </label> |
61 |
|
57 |
<input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" re quir ed="required" /> |
62 |
<li> |
58 |
<span class="required">Required</span> |
63 |
<label for="description" class="required">Description: </label> |
59 |
</li> |
64 |
<input type="text" name="description" id="description" size="40" maxlength="80" class="required" required="required" value="[% category.description |html %]" /> |
60 |
|
65 |
<span class="required">Required</span> |
61 |
<li> |
66 |
</li> |
62 |
<label for="description" class="required">Description: </label> |
67 |
|
63 |
<input type="text" name="description" id="description" size="40" maxlength="80" class="required" requ ired="re quired" value="[% category.description |html %]" /> |
68 |
<li> |
64 |
<span class="required">Required</span> |
69 |
<label for="overduenoticerequired">Overdue notice required: </label> |
65 |
</li> |
70 |
<select name="overduenoticerequired" id="overduenoticerequired"> |
66 |
|
71 |
[% IF category.overduenoticerequired %] |
67 |
<li> |
72 |
<option value="0">No</option> |
68 |
<label for="overduenoticerequired">Overdue notice required: </label> |
73 |
<option value="1" selected="selected">Yes</option> |
69 |
<select name="overduenoticerequired" id="overduenoticerequired"> |
74 |
[% ELSE %] |
70 |
[% IF category.overduenoticerequired %] |
75 |
<option value="0" selected="selected">No</option> |
71 |
<option value="0">No</option> |
76 |
<option value="1">Yes</option> |
72 |
<option value="1" selected="selected">Yes</option> |
77 |
[% END %] |
73 |
[% ELSE %] |
78 |
</select> |
74 |
<option value="0" selected="selected">No</option> |
79 |
</li> |
75 |
<option value="1">Yes</option> |
80 |
|
76 |
[% END %] |
81 |
<li> |
77 |
</select> |
82 |
<label for="category_type" class="required">Category type: </label> |
78 |
</li> |
83 |
<select name="category_type" id="category_type"> |
79 |
|
84 |
[% UNLESS category %] |
80 |
<li> |
|
|
81 |
<label for="category_type" class="required">Category type: </label> |
82 |
<select name="category_type" id="category_type"> |
83 |
[% UNLESS category %] |
84 |
<option value="" selected="selected">Select a category type</option> |
85 |
<option value="" selected="selected">Select a category type</option> |
85 |
[% ELSE %] |
86 |
[% ELSE %] |
86 |
<option value="">Select a category type</option> |
87 |
<option value="">Select a category type</option> |
87 |
[% END %] |
88 |
[% END %] |
88 |
|
89 |
|
89 |
[% IF category and category.category_type == 'A' %] |
90 |
[% IF category and category.category_type == 'A' %] |
90 |
<option value="A" selected="selected">Adult</ option> |
91 |
<option value="A" selected="selected">Adult</ option> |
91 |
[% ELSE %] |
92 |
[% ELSE %] |
92 |
<option value="A">Adult</option> |
93 |
<option value="A">Adult</option> |
93 |
[% END %] |
94 |
[% END %] |
94 |
|
95 |
|
95 |
[% IF category and category.category_type == 'C' %] |
96 |
[% IF category and category.category_type == 'C' %] |
96 |
<option value="C" selected="selected">Child</ option> |
97 |
<option value="C" selected="selected">Child</ option> |
97 |
[% ELSE %] |
98 |
[% ELSE %] |
98 |
<option value="C">Child</option>[% END %] |
99 |
<option value="C">Child</option> |
|
|
100 |
[% END %] |
99 |
|
101 |
|
100 |
[% IF category and category.category_type == 'S' %] |
102 |
[% IF category and category.category_type == 'S' %] |
101 |
<option value="S" selected="selected">Staff</option> |
103 |
<option value="S" selected="selected">Staff</option> |
102 |
[% ELSE %] |
104 |
[% ELSE %] |
103 |
<option value="S">Staff</option> |
105 |
<option value="S">Staff</option> |
104 |
[% END %] |
106 |
[% END %] |
105 |
|
107 |
|
106 |
[% IF category and category.category_type == 'I' %] |
108 |
[% IF category and category.category_type == 'I' %] |
107 |
<option value="I" selected="selected">Organization</option> |
109 |
<option value="I" selected="selected">Organization</option> |
108 |
[% ELSE %] |
110 |
[% ELSE %] |
109 |
<option value="I">Organization</option> |
111 |
<option value="I">Organization</option> |
110 |
[% END %] |
112 |
[% END %] |
111 |
|
113 |
|
112 |
[% IF category and category.category_type == 'P' %] |
114 |
[% IF category and category.category_type == 'P' %] |
113 |
<option value="P" selected="selected">Professional</option> |
115 |
<option value="P" selected="selected">Professional</option> |
114 |
[% ELSE %] |
116 |
[% ELSE %] |
115 |
<option value="P">Professional</option> |
117 |
<option value="P">Professional</option> |
116 |
[% END %] |
118 |
[% END %] |
117 |
|
119 |
|
118 |
[% IF category and category.category_type == 'X' %] |
120 |
[% IF category and category.category_type == 'X' %] |
119 |
<option value="X" selected="selected">Statistical</option> |
121 |
<option value="X" selected="selected">Statistical</option> |
120 |
[% ELSE %] |
122 |
[% ELSE %] |
121 |
<option value="X">Statistical</option> |
123 |
<option value="X">Statistical</option> |
122 |
[% END %] |
124 |
[% END %] |
123 |
</select> |
125 |
</select> |
124 |
<span class="required">Required</span> |
126 |
<span class="required">Required</span> |
125 |
</li> |
127 |
</li> |
126 |
|
128 |
|
127 |
<li> |
129 |
<li> |
128 |
<label for="default_privacy">Default privacy: </label> |
130 |
<label for="default_privacy">Default privacy: </label> |
129 |
<select id="default_privacy" name="default_privacy"> |
131 |
<select id="default_privacy" name="default_privacy" required="required"> |
130 |
[% SET default_privacy = 'default' %] |
132 |
[% SET default_privacy = 'default' %] |
131 |
|
133 |
|
132 |
[% IF category %] |
134 |
[% IF category %] |
133 |
[% SET default_privacy = category.default_privacy %] |
135 |
[% SET default_privacy = category.default_privacy %] |
134 |
[% END %] |
136 |
[% END %] |
135 |
|
137 |
|
136 |
[% SWITCH default_privacy %] |
138 |
[% SWITCH default_privacy %] |
137 |
[% CASE 'forever' %] |
139 |
[% CASE 'forever' %] |
138 |
<option value="default">Default</option> |
140 |
<option value="default">Default</option> |
139 |
<option value="never">Never</option> |
141 |
<option value="never">Never</option> |
140 |
<option value="forever" selected="selected">Forever</option> |
142 |
<option value="forever" selected="selected">Forever</option> |
141 |
[% CASE 'never' %] |
143 |
[% CASE 'never' %] |
142 |
<option value="default">Default</option> |
144 |
<option value="default">Default</option> |
143 |
<option value="never" selected="selected">Never</option> |
145 |
<option value="never" selected="selected">Never</option> |
144 |
<option value="forever">Forever</option> |
146 |
<option value="forever">Forever</option> |
145 |
[% CASE %] |
147 |
[% CASE %] |
146 |
<option value="default" selected="selected">Default</option> |
148 |
<option value="default" selected="selected">Default</option> |
147 |
<option value="never">Never</option> |
149 |
<option value="never">Never</option> |
148 |
<option value="forever">Forever</option> |
150 |
<option value="forever">Forever</option> |
149 |
[% END %] |
151 |
[% END %] |
150 |
</select> |
152 |
</select> |
151 |
<span>Controls how long a patrons checkout history is kept for new patrons of this category. "Never" anonymizes checkouts on return, and "Forever" keeps a patron's checkout history indefinitely. When set to "Default", the amount of history kept is controlled by the cronjob <i>batch_anonymise.pl</i> which should be set up by your system administrator.</span> |
153 |
<p>Controls how long a patrons checkout history is kept for new patrons of this category. "Never" anonymizes checkouts on return, and "Forever" keeps a patron's checkout history indefinitely. When set to "Default", the amount of history kept is controlled by the cronjob <i>batch_anonymise.pl</i> which should be set up by your system administrator.</p> |
152 |
</li> |
154 |
</li> |
153 |
|
155 |
|
154 |
<li> |
156 |
<span class="label">Enrollment period: </span> |
155 |
<span class="label">Enrollment period: </span> |
157 |
<fieldset> |
156 |
<fieldset> |
158 |
<legend>Choose one</legend> |
157 |
<legend>Choose one</legend> |
159 |
<ol> |
158 |
<ol> |
160 |
<li> |
159 |
<li> |
161 |
<label for="enrolmentperiod" style="width:6em;">In months: </label> |
160 |
<label for="enrolmentperiod" style="width:6em;">In months: </label> |
162 |
<input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperio d" size="3" maxlength="1" value="[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %]" /> months |
161 |
<input type="text" class="enrollmentperiod" name="enrolmentperiod" id="enrolmentperio d" size="3" maxlength="3" value="[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %]" /> months |
163 |
</li> |
162 |
</li> |
164 |
<li> |
163 |
<li> |
165 |
<label for="enrolmentperioddate" style="width:6em;">Until date: </label> |
164 |
<label for="enrolmentperioddate" style="width:6em;">Until date: </label> |
166 |
<input type="text" class="enrollmentperiod" name="enrolmentperioddate" id="enrolmentp erioddate" value="[% category.enrolmentperioddate | $KohaDates %]" /> |
165 |
<input type="text" class="enrollmentperiod" name="enrolmentperioddate" id="enrolmentp erioddate" value="[% category.enrolmentperioddate | $KohaDates %]" /> |
167 |
</li> |
166 |
</li> |
168 |
</ol> |
167 |
</ol> |
169 |
</fieldset> |
168 |
</fieldset> |
170 |
<br> |
169 |
</li> |
171 |
<input type="submit" class="action" value="Create Patron Category" /> |
170 |
|
172 |
</form> |
171 |
<fieldset class="action"> |
173 |
[% END %] |
172 |
<input type="submit" value="Create Patron Category" /> |
174 |
|
173 |
</fieldset> |
175 |
|
174 |
</form> |
176 |
<!--Onboarding tool step 2-Create a patron category screen 1 |
175 |
[% END %] |
177 |
<div id="doc3" class="yui-t2"> |
176 |
|
178 |
<div id="bd"> |
177 |
[% IF (addpatroncategory) %] |
179 |
<div id="yui-main"> |
178 |
[% IF (categorycode) %] |
180 |
<div class="yui-b"> |
179 |
<form name="createpatroncategory" method="post" action="onboarding.pl">... |
181 |
[% FOR m IN messages %] |
180 |
<input type="hidden" name="op" value="addpatron"/> |
182 |
<div class="dialog [% m.type %]"> |
181 |
<h1 align="left"> New patron category</h1> |
183 |
[% SWITCH m.code %] |
182 |
<div style="border-width:5px;">. |
184 |
[% CASE 'error_on_insert' %] |
183 |
<p> Success: Patron category created!</p> |
185 |
An error occurred when inserting this patron category. The patron category might already exist. |
184 |
<p> To add another patron category and for more settings<br> |
186 |
[% CASE 'success_on_insert' %] |
185 |
go to More->Administration->Patrons & Circulation->Patron Categories</p> |
187 |
Patron category inserted successfully. |
186 |
</div> |
188 |
[% CASE 'already_exists' %] |
187 |
Next up: |
189 |
This patron category already exists. |
188 |
<input type="submit" value="Add a patron"> |
190 |
[% CASE %] |
189 |
|
191 |
[% m.code %] |
190 |
[% ELSE %] |
|
|
191 |
<p> Patron category was not successfully created</p> |
192 |
[% END %] |
192 |
[% END %] |
193 |
[% END %] |
193 |
</div> |
194 |
|
194 |
[% END %] |
|
|
195 |
</body>--> |
195 |
|
196 |
|
196 |
|
197 |
|
197 |
|
198 |
|