3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Add a patron category › Web installer › Koha</title>
5 [%# The following if statement checks if the categories variable handed to this template %]
6 [%# by onboarding.pl has data in it. If the categories variable does have data %]
7 [%# in it this means that the user has previously imported sample patron category %]
8 [%# data and so we do not need to show them the create patron category screen 1, %]
9 [%#instead we can display a screen with ubtton redirecting the user to step 3 %]
10 [% IF (categories && categories.count > 1 ) %]
11 <meta http-equiv="refresh" content="0; url=/cgi-bin/koha/installer/onboarding.pl?step=3">
13 [% INCLUDE 'installer-doc-head-close.inc' %]
16 <body id="installer" class="installer">
17 <div class="container-fluid">
19 <div id="onboarding-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
20 <div id="logo"><a href="#">Koha</a></div>
22 <h1>Web installer › Create a patron category</h1>
24 [% INCLUDE 'onboarding_messages.inc' %]
28 <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Installation</li>
29 <li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Onboarding
31 <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Create a library</li>
32 <li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Create a patron category</li>
33 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Create Koha administrator patron</li>
34 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Create a new item type</li>
35 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Create a new circulation rule</li>
41 <p> The patron category you create will be used by the <span class="bg-info">administrator account</span>.</p>
43 <form id="category_form" method="post" action="onboarding.pl">
44 <fieldset class="rows">
45 <input type="hidden" name="step" value="2" />
46 <input type="hidden" name="op" value="add_validate_category" />
49 <label for="categorycode" class="required">Category code: </label>
50 <input type="text" pattern="[0-9A-Za-z]{1,10}" id="categorycode" name="categorycode" value="[% category.categorycode | html %]" size="10" maxlength="10" class="required" required="required" />
51 <span class="required">Required</span>
55 <label for="description" class="required">Description: </label>
56 <input type="text" id="description" name="description" size="40" maxlength="80" class="required" required="required" value="[% category.description | html %]" />
57 <span class="required">Required</span>
61 <label for="overduenoticerequired">Overdue notice required: </label>
62 <select name="overduenoticerequired" id="overduenoticerequired">
63 [% IF category.overduenoticerequired %]
64 <option value="0">No</option>
65 <option value="1" selected="selected">Yes</option>
67 <option value="0" selected="selected">No</option>
68 <option value="1">Yes</option>
74 <span class="label">Category type: </span>
75 <input type="hidden" name="category_type" value="S" />
80 <label for="default_privacy">Default privacy: </label>
81 <select id="default_privacy" name="default_privacy" required="required">
82 [% SET default_privacy = 'default' %]
85 [% SET default_privacy = category.default_privacy %]
88 [% SWITCH default_privacy %]
90 <option value="default">Default</option>
91 <option value="never">Never</option>
92 <option value="forever" selected="selected">Forever</option>
94 <option value="default">Default</option>
95 <option value="never" selected="selected">Never</option>
96 <option value="forever">Forever</option>
98 <option value="default" selected="selected">Default</option>
99 <option value="never">Never</option>
100 <option value="forever">Forever</option>
104 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 <code>batch_anonymise.pl</code> which should be set up by your system administrator.
108 <span class="label">Enrolment period: </span>
109 <fieldset class="rows">
112 <span class="label"></span><strong>Choose one</strong>
115 <label for="enrolmentperiod">In months: </label>
116 [% IF category.enrolmentperiod %]
117 <input type="text" inputmode="numeric" pattern="[0-9]*" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" value="[% category.enrolmentperiod | html %]" />
119 <input type="text" inputmode="numeric" pattern="[0-9]*" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" value="" />
123 <label for="enrolmentperioddate">Until date: </label>
124 <input type="text" class="enrolmentperioddate" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
125 <div class="hint">[% INCLUDE 'date-format.inc' dateformat = Koha.Preference('dateformat') %]</div>
133 To add another patron category and for more settings go to:
134 <span class="breadcrumbs"> Administration <strong>›</strong> Patron categories</span>
137 <input type="submit" class="btn btn-primary" value="Submit" />
140 </div> <!-- / #onboarding-step2 -->
141 </div> <!-- / .row -->
142 </div><!-- / .container-fluid -->
144 [% MACRO jsinclude BLOCK %]
145 [% INCLUDE 'validator-strings.inc' %]
146 [% INCLUDE 'installer-strings.inc' %]
147 <script src="[% interface | html %]/[% theme | html %]/js/onboarding.js"></script>
150 [% INCLUDE 'installer-intranet-bottom.inc' %]