Lines 1-5
Link Here
|
|
|
1 |
[% USE Koha %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Web installer › Create a new item type </title> |
3 |
<title>Koha › Web installer › Create Koha administrator patron</title> |
3 |
[% INCLUDE 'installer-doc-head-close.inc' %] |
4 |
[% INCLUDE 'installer-doc-head-close.inc' %] |
4 |
</head> |
5 |
</head> |
5 |
|
6 |
|
Lines 8-46
Link Here
|
8 |
<div class="row"> |
9 |
<div class="row"> |
9 |
<div id="onboarding-step4" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2"> |
10 |
<div id="onboarding-step4" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2"> |
10 |
<h1 id="logo"><a href="#">Koha</a></h1> |
11 |
<h1 id="logo"><a href="#">Koha</a></h1> |
11 |
<h2>Web installer › Create a new item type </h2> |
12 |
<h2>Web installer › Create Koha administrator patron</h2> |
12 |
|
13 |
|
13 |
[% INCLUDE 'onboarding_messages.inc' %] |
14 |
[% INCLUDE 'onboarding_messages.inc' %] |
14 |
|
15 |
|
15 |
<!--Create a item type screen 1--> |
16 |
<p> |
16 |
|
17 |
Now we will create a patron with superlibrarian permissions. Log in with this to access Koha as a staff member with all permissions. |
17 |
<p> Item types are used to group related items. Examples of item types might be books, CDs, or DVDs.</p> |
18 |
</p> |
18 |
<p> When adding to your institution's catalog you will create an item of a particular item type.</p> |
19 |
<form name="createpatron" id="createpatron" method="post" action="onboarding.pl"> |
19 |
<p> Importantl: Item types are what you apply circulation rules to. Circulation rules govern how your institution will lend its items: Checkout length, renewal policy, hold policy, etc. For example a circulation rule applied to the DVD item type may enforce a payment of $1.00 for checking out any DVD.</p> |
|
|
20 |
|
21 |
<form id="createitemform" method="post" action="onboarding.pl"> |
22 |
<fieldset class="rows"> |
20 |
<fieldset class="rows"> |
23 |
<input type="hidden" name="step" value="4" /> |
21 |
<input type="hidden" name="step" value="4" /> |
24 |
<input type="hidden" name="op" value="add_validate_itemtype" /> |
22 |
<input type="hidden" name="op" value="add_validate_patron" /> |
|
|
23 |
<h3>Administrator identity</h3> |
25 |
<ol> |
24 |
<ol> |
26 |
<li> |
25 |
<li> |
27 |
<label for="itemtype" class="required">Item type code: </label> |
26 |
<label for="surname" class="required">Surname: </label> |
28 |
<input type="text" name="itemtype" pattern="[0-9A-Za-z]{1,10}" id="itemtype" size="10" maxlength="10" class="required" required="required" value="[% itemtype.itemtype | html %]" /> |
27 |
<input type="text" id="surname" name="surname" value="[% surname | html %]" class="required" required="required" /> |
|
|
28 |
<span class="required">Required</span> |
29 |
</li> |
30 |
<li> |
31 |
<label for="firstname" class="required">First name: </label> |
32 |
<input type="text" name="firstname" id="firstname" size="20" value="[% firstname | html %]" class="required" required="required"> |
29 |
<span class="required">Required</span> |
33 |
<span class="required">Required</span> |
30 |
</li> |
34 |
</li> |
|
|
35 |
</ol> |
31 |
|
36 |
|
|
|
37 |
<ol> |
32 |
<li> |
38 |
<li> |
33 |
<label for="description" class="required">Description: </label> |
39 |
<label for="cardnumber" class="required">Card number: </label> |
34 |
<input type="text" name="description" id="description" size="42" value="[% itemtype.description | html %]" class="required" required="required"> |
40 |
[% IF patrons && patrons > 1 %] |
|
|
41 |
<input type="text" id="cardnumber" class="noEnterSubmit valid" name="cardnumber" value="[% newcardnumber | html %]" class="required" required="required"> |
42 |
[% ELSE %] |
43 |
<input type="text" id="cardnumber" name="cardnumber" value="[% cardnumber | html %]" class="required" required="required"> |
44 |
[% END %] |
35 |
<span class="required">Required</span> |
45 |
<span class="required">Required</span> |
36 |
</li> |
46 |
</li> |
|
|
47 |
<li> |
48 |
|
49 |
<!--require a foreach loop to get all the values for the library that the user has either imported (in web installer) or created in the first step of this onboarding tool--> |
50 |
<label for="libraries" class="required"> Library: </label> |
51 |
<select name="libraries" size="1" id="libraries"> |
52 |
[% FOREACH library IN libraries %] |
53 |
<option value="[% library.branchcode | html %]"> [% library.branchname | html %] </option> |
54 |
[% END %] |
55 |
</select> |
56 |
<span class="required"> Required</span> |
57 |
</li> |
58 |
<li> |
59 |
<label for="categorycode_entry" class="required"> Patron category</label> |
60 |
<select id="categorycode_entry" name="categorycode_entry"> |
61 |
[% FOREACH category IN categories %] |
62 |
<option value = "[% category.categorycode | html %]">[% category.description | html %]</option> |
63 |
[% END %] |
64 |
</select> |
65 |
<span class="required">Required</span><br><br> |
66 |
<b>Note:</b> If you installed sample patron categories please select the "Staff" option in the patron categories dropdown box. |
67 |
</li> |
37 |
</ol> |
68 |
</ol> |
38 |
|
69 |
|
39 |
<p> To create another item type later and for more settings go to: |
70 |
<h3>Administrator account permissions</h3> |
40 |
<span class="breadcrumbs"> Administration › Item types </span> |
71 |
<ol> |
|
|
72 |
<li> |
73 |
<input type="hidden" name="newflags" value="1" /> |
74 |
<input type="hidden" class="flag parent" id="flag-0" name="flag" value="superlibrarian" /> |
75 |
<code> superlibrarian</code> |
76 |
</li> |
77 |
</ol> |
78 |
|
79 |
<h3>Administrator login</h3> |
80 |
<ol> |
81 |
<li> |
82 |
<label for="userid" class="required">Username: </label> |
83 |
<input type="text" name="userid" id ="userid" size="20" value="[% userid | html %]" class="required" required="required" /> |
84 |
<span class="required">Required</span> |
85 |
</li> |
86 |
<li> |
87 |
<label for="password" class="required">Password: </label> |
88 |
<input type="password" name="password" id="password" size="20" value="[% member.password | html %]" class="required" required="required"> |
89 |
<span class="required">Required</span> |
90 |
</li> |
91 |
<li> |
92 |
<label for="password2" class="required">Confirm password: </label> |
93 |
<input type="password" id="password2" name="password2" size="20" value="" class="required" required="required"> |
94 |
<span class="required">Required</span> |
95 |
</li> |
96 |
</ol> |
97 |
<p> |
98 |
To create another patron, go to: |
99 |
<span class="breadcrumbs">Patrons › New patron</span> |
100 |
</p> |
101 |
<p> |
102 |
To edit patron permissions, go to: |
103 |
<span class="breadcrumbs">More › Set permissions</span> |
41 |
</p> |
104 |
</p> |
42 |
<input type="submit" class="btn btn-primary" value="Submit" /> |
|
|
43 |
</fieldset> |
105 |
</fieldset> |
|
|
106 |
|
107 |
<input type="submit" class="btn btn-primary" value="Submit" /> |
44 |
</form> |
108 |
</form> |
45 |
</div> <!-- / #onboarding-step4 --> |
109 |
</div> <!-- / #onboarding-step4 --> |
46 |
</div> <!-- / .row --> |
110 |
</div> <!-- / .row --> |
Lines 50-55
Link Here
|
50 |
[% INCLUDE 'validator-strings.inc' %] |
114 |
[% INCLUDE 'validator-strings.inc' %] |
51 |
[% INCLUDE 'installer-strings.inc' %] |
115 |
[% INCLUDE 'installer-strings.inc' %] |
52 |
<script src="[% interface | html %]/[% theme | html %]/js/onboarding.js"></script> |
116 |
<script src="[% interface | html %]/[% theme | html %]/js/onboarding.js"></script> |
|
|
117 |
[% PROCESS 'password_check.inc' %] |
118 |
[% PROCESS 'add_password_check' new_password => 'password' %] |
53 |
[% END %] |
119 |
[% END %] |
54 |
|
120 |
|
55 |
[% INCLUDE 'installer-intranet-bottom.inc' %] |
121 |
[% INCLUDE 'installer-intranet-bottom.inc' %] |
|
|
122 |
|