4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Create Koha administrator patron › Web installer › Koha</title>
6 [% INCLUDE 'installer-doc-head-close.inc' %]
9 <body id="installer" class="installer">
10 <div class="container-fluid">
12 <div id="onboarding-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
13 <div id="logo"><a href="#">Koha</a></div>
14 <h1>Web installer › Create Koha administrator patron</h1>
16 [% INCLUDE 'onboarding_messages.inc' %]
20 <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Installation</li>
21 <li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Onboarding
23 <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Create a library</li>
24 <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Create a patron category</li>
25 <li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Create Koha administrator patron</li>
26 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Create a new item type</li>
27 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Create a new circulation rule</li>
34 Now we will create a patron with superlibrarian permissions. Log in with this to access Koha as a staff member with all permissions.
36 <form name="createpatron" id="createpatron" method="post" action="onboarding.pl">
37 <fieldset class="rows">
38 <input type="hidden" name="step" value="3" />
39 <input type="hidden" name="op" value="add_validate_patron" />
40 <h3>Administrator identity</h3>
43 <label for="surname" class="required">Surname: </label>
44 <input type="text" id="surname" name="surname" value="[% surname | html %]" class="required" required="required" />
45 <span class="required">Required</span>
48 <label for="firstname" class="required">First name: </label>
49 <input type="text" name="firstname" id="firstname" size="20" value="[% firstname | html %]" class="required" required="required">
50 <span class="required">Required</span>
56 <label for="cardnumber" class="required">Card number: </label>
57 [% IF patrons && patrons > 1 %]
58 <input type="text" id="cardnumber" class="noEnterSubmit valid" name="cardnumber" value="[% newcardnumber | html %]" class="required" required="required">
60 <input type="text" id="cardnumber" name="cardnumber" value="[% cardnumber | html %]" class="required" required="required">
62 <span class="required">Required</span>
66 <!--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-->
67 <label for="libraries" class="required"> Library: </label>
68 <select name="libraries" id="libraries">
69 [% FOREACH library IN libraries %]
70 <option value="[% library.branchcode | html %]"> [% library.branchname | html %] </option>
73 <span class="required"> Required</span>
76 <label for="categorycode_entry" class="required"> Patron category</label>
77 <select id="categorycode_entry" name="categorycode_entry">
78 [% FOREACH category IN categories %]
79 <option value = "[% category.categorycode | html %]" data-pwd-length="[% category.effective_min_password_length | html %]" data-pwd-strong="[% category.effective_require_strong_password | html %]">[% category.description | html %]</option>
82 <span class="required">Required</span><br><br>
83 <strong>Note:</strong> If you installed sample patron categories please select the "Staff" option in the patron categories dropdown box.
87 <h3>Administrator account permissions</h3>
90 <input type="hidden" name="newflags" value="1" />
91 <input type="hidden" class="flag parent" id="flag-0" name="flag" value="superlibrarian" />
92 <code> superlibrarian</code>
96 <h3>Administrator login</h3>
99 <label for="userid" class="required">Username: </label>
100 <input type="text" name="userid" id ="userid" size="20" value="[% userid | html %]" class="required" required="required" />
101 <span class="required">Required</span>
104 <label for="password" class="required">Password: </label>
105 <input type="password" name="password" id="password" size="20" value="[% member.password | html %]" class="required" required="required">
106 <span class="required">Required</span>
109 <label for="password2" class="required">Confirm password: </label>
110 <input type="password" id="password2" name="password2" size="20" value="" class="required" required="required">
111 <span class="required">Required</span>
115 To create another patron, go to:
116 <span class="breadcrumbs">Patrons › New patron</span>
119 To edit patron permissions, go to:
120 <span class="breadcrumbs">More › Set permissions</span>
124 <input type="submit" class="btn btn-primary" value="Submit" />
126 </div> <!-- / #onboarding-step3 -->
127 </div> <!-- / .row -->
128 </div><!-- / .container-fluid -->
130 [% MACRO jsinclude BLOCK %]
131 [% INCLUDE 'validator-strings.inc' %]
132 [% INCLUDE 'installer-strings.inc' %]
133 [% Asset.js("js/onboarding.js") | $raw %]
134 [% PROCESS 'password_check.inc' new_password => 'password', category_selector => '#categorycode_entry', RequireStrongPassword => Koha.Preference('RequireStrongPassword') %]
137 [% INCLUDE 'installer-intranet-bottom.inc' %]