|
Lines 57-293
Link Here
|
| 57 |
[% Asset.js('js/i18n.js') | $raw %] |
57 |
[% Asset.js('js/i18n.js') | $raw %] |
| 58 |
</head> |
58 |
</head> |
| 59 |
<body id="sco_main" class="sco"> |
59 |
<body id="sco_main" class="sco"> |
| 60 |
[% INCLUDE 'masthead-sco.inc' %] |
60 |
<div id="wrapper"> |
|
|
61 |
[% INCLUDE 'masthead-sco.inc' %] |
| 61 |
|
62 |
|
| 62 |
<div class="main"> |
63 |
<div class="main"> |
| 63 |
[% IF ( display_patron_image ) %] |
64 |
[% IF ( display_patron_image ) %] |
| 64 |
[% SET main_div_class = 'col-10 order-first order-md-first order-lg-2' %] |
65 |
[% SET main_div_class = 'col-10 order-first order-md-first order-lg-2' %] |
| 65 |
[% ELSE %] |
66 |
[% ELSE %] |
| 66 |
[% SET main_div_class = 'col order-first order-md-first order-lg-2' %] |
67 |
[% SET main_div_class = 'col order-first order-md-first order-lg-2' %] |
| 67 |
[% END %] |
68 |
[% END %] |
| 68 |
|
|
|
| 69 |
[% UNLESS ( hide_main ) %] |
| 70 |
[% IF ( validuser ) %] |
| 71 |
<div class="container-fluid"> |
| 72 |
<div class="row"> |
| 73 |
<div class="[% main_div_class | html %]"> |
| 74 |
<div id="masthead"><h1>[% LibraryName | html %] Self checkout system</h1></div> |
| 75 |
|
| 76 |
[% PROCESS display_errors %] |
| 77 |
|
| 78 |
<div class="alert alert-info">You are logged in as [% borrowername | html %].</div> |
| 79 |
[% INCLUDE 'opac-note.inc' sco="true" %] |
| 80 |
[% IF patron_has_hold_fee %] |
| 81 |
<div class="alert alert-warning">A hold fee was charged to your account for collecting this item.</div> |
| 82 |
[% END %] |
| 83 |
|
69 |
|
| 84 |
<div id="newcheckout" class="sco_entry"> |
70 |
[% UNLESS ( hide_main ) %] |
| 85 |
<form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl"> |
71 |
[% IF ( validuser ) %] |
| 86 |
[% INCLUDE 'csrf-token.inc' %] |
72 |
<div class="container-fluid"> |
| 87 |
<legend |
73 |
<div class="row"> |
| 88 |
><h2> |
74 |
<div class="[% main_div_class | html %]"> |
| 89 |
[% IF ( Koha.Preference('SCOAllowCheckin') ) %] |
75 |
<div id="masthead"><h1>[% LibraryName | html %] Self checkout system</h1></div> |
| 90 |
<span>Check out, return, or renew an item:</span> |
76 |
|
| 91 |
[% ELSE %] |
77 |
[% PROCESS display_errors %] |
| 92 |
<span>Check out or renew an item:</span> |
78 |
|
| 93 |
[% END %] |
79 |
<div class="alert alert-info">You are logged in as [% borrowername | html %].</div> |
| 94 |
</h2></legend |
80 |
[% INCLUDE 'opac-note.inc' sco="true" %] |
| 95 |
> |
81 |
[% IF patron_has_hold_fee %] |
| 96 |
<div class="row"> |
82 |
<div class="alert alert-warning">A hold fee was charged to your account for collecting this item.</div> |
| 97 |
<div class="col"> |
83 |
[% END %] |
| 98 |
<label for="barcode">Scan a new item or enter its barcode[% IF batch_checkouts_allowed %](or for <b>multiple checkouts only,</b> enter a barcode list, one barcode per line)[% END %]:</label> |
84 |
|
| 99 |
</div> |
85 |
<div id="newcheckout" class="sco_entry"> |
| 100 |
<div class="col-3"> |
86 |
<form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl"> |
| 101 |
[% IF batch_checkouts_allowed %] |
87 |
[% INCLUDE 'csrf-token.inc' %] |
| 102 |
<textarea id="barcode" name="barcode" rows="10" cols="30" class="focus form-control"></textarea> |
88 |
<legend |
| 103 |
[% ELSE %] |
89 |
><h2> |
| 104 |
<input id="barcode" name="barcode" size="20" type="text" class="focus form-control" autocomplete="off" /> |
90 |
[% IF ( Koha.Preference('SCOAllowCheckin') ) %] |
| 105 |
[% END %] |
91 |
<span>Check out, return, or renew an item:</span> |
| 106 |
</div> |
92 |
[% ELSE %] |
| 107 |
<div class="col-auto"> |
93 |
<span>Check out or renew an item:</span> |
| 108 |
<button type="submit" class="btn btn-primary">Submit</button> |
94 |
[% END %] |
| 109 |
</div> |
95 |
</h2></legend |
| 110 |
<div class="col ml-auto"> |
96 |
> |
| 111 |
<button type="button" id="logout_form" class="btn btn-info"><i class="fa fa-check" aria-hidden="true"></i> Finish</button> |
97 |
<div class="row"> |
| 112 |
<input type="hidden" name="op" value="cud-checkout" /> |
98 |
<div class="col"> |
| 113 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
99 |
<label for="barcode">Scan a new item or enter its barcode[% IF batch_checkouts_allowed %](or for <b>multiple checkouts only,</b> enter a barcode list, one barcode per line)[% END %]:</label> |
| 114 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
100 |
</div> |
| 115 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
101 |
<div class="col-3"> |
|
|
102 |
[% IF batch_checkouts_allowed %] |
| 103 |
<textarea id="barcode" name="barcode" rows="10" cols="30" class="focus form-control"></textarea> |
| 104 |
[% ELSE %] |
| 105 |
<input id="barcode" name="barcode" size="20" type="text" class="focus form-control" autocomplete="off" /> |
| 106 |
[% END %] |
| 107 |
</div> |
| 108 |
<div class="col-auto"> |
| 109 |
<button type="submit" class="btn btn-primary">Submit</button> |
| 110 |
</div> |
| 111 |
<div class="col ml-auto"> |
| 112 |
<button type="button" id="logout_form" class="btn btn-info"><i class="fa fa-check" aria-hidden="true"></i> Finish</button> |
| 113 |
<input type="hidden" name="op" value="cud-checkout" /> |
| 114 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
| 115 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
| 116 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
| 117 |
</div> |
| 116 |
</div> |
118 |
</div> |
| 117 |
</div> |
119 |
<!-- /.row --> |
| 118 |
<!-- /.row --> |
120 |
</form> |
| 119 |
</form> |
121 |
<!-- /#scan_form --> |
| 120 |
<!-- /#scan_form --> |
122 |
</div> |
|
|
123 |
<!-- / #newcheckout --> |
| 121 |
</div> |
124 |
</div> |
| 122 |
<!-- / #newcheckout --> |
125 |
<!-- / .span12/12 --> |
|
|
126 |
[% IF ( display_patron_image ) %] |
| 127 |
<div class="col-lg-2"> |
| 128 |
<img src="/cgi-bin/koha/sco/sco-patron-image.pl" alt="" /> |
| 129 |
</div> |
| 130 |
[% END %] |
| 123 |
</div> |
131 |
</div> |
| 124 |
<!-- / .span12/12 --> |
132 |
<!-- / .row --> |
| 125 |
[% IF ( display_patron_image ) %] |
|
|
| 126 |
<div class="col-lg-2"> |
| 127 |
<img src="/cgi-bin/koha/sco/sco-patron-image.pl" alt="" /> |
| 128 |
</div> |
| 129 |
[% END %] |
| 130 |
</div> |
133 |
</div> |
| 131 |
<!-- / .row --> |
134 |
<!-- / .container-fluid --> |
| 132 |
</div> |
135 |
|
| 133 |
<!-- / .container-fluid --> |
136 |
<div class="container-fluid"> |
| 134 |
|
137 |
<div class="row"> |
| 135 |
<div class="container-fluid"> |
138 |
<div class="col order-first order-md-first order-lg-2"> |
| 136 |
<div class="row"> |
139 |
[% WRAPPER tabs %] |
| 137 |
<div class="col order-first order-md-first order-lg-2"> |
140 |
[% WRAPPER tabs_nav %] |
| 138 |
[% WRAPPER tabs %] |
141 |
[% WRAPPER tab_item tabname= "checkouts" bt_active= 1 %] |
| 139 |
[% WRAPPER tabs_nav %] |
142 |
<span>Checkouts ([% issues_count | html %])</span> |
| 140 |
[% WRAPPER tab_item tabname= "checkouts" bt_active= 1 %] |
|
|
| 141 |
<span>Checkouts ([% issues_count | html %])</span> |
| 142 |
[% END %] |
| 143 |
[% WRAPPER tab_item tabname= "holds" %] |
| 144 |
[% IF waiting_holds_count %] |
| 145 |
<i class="fa fa-exclamation-circle" aria-hidden="true"></i> |
| 146 |
[% END %] |
143 |
[% END %] |
| 147 |
<span>Holds</span> ([% HOLDS.count | html %]) |
144 |
[% WRAPPER tab_item tabname= "holds" %] |
| 148 |
[% END %] |
145 |
[% IF waiting_holds_count %] |
| 149 |
[% WRAPPER tab_item tabname= "account" %] |
146 |
<i class="fa fa-exclamation-circle" aria-hidden="true"></i> |
| 150 |
<span>Charges ([% total | $Price %])</span> |
147 |
[% END %] |
| 151 |
[% END %] |
148 |
<span>Holds</span> ([% HOLDS.count | html %]) |
| 152 |
[% END # /WRAPPER tabs_nav %] |
149 |
[% END %] |
| 153 |
|
150 |
[% WRAPPER tab_item tabname= "account" %] |
| 154 |
[% WRAPPER tab_panels %] |
151 |
<span>Charges ([% total | $Price %])</span> |
| 155 |
[% WRAPPER tab_panel tabname="checkouts" bt_active= 1 %] |
152 |
[% END %] |
| 156 |
<div id="checkouts-tab" class="tab-pane show active" aria-labelledby="checkouts"> |
153 |
[% END # /WRAPPER tabs_nav %] |
| 157 |
<div id="borrowerdetails"> |
154 |
|
| 158 |
[% IF ( new_issue ) %] |
155 |
[% WRAPPER tab_panels %] |
| 159 |
<div class="lastchecked"> |
156 |
[% WRAPPER tab_panel tabname="checkouts" bt_active= 1 %] |
| 160 |
<p> |
157 |
<div id="checkouts-tab" class="tab-pane show active" aria-labelledby="checkouts"> |
| 161 |
<strong>Checked out: </strong> |
158 |
<div id="borrowerdetails"> |
| 162 |
[% new_issue.item.biblio.title | html %] ([% new_issue.item.barcode | html %]). |
159 |
[% IF ( new_issue ) %] |
| 163 |
[% IF new_issue.item.is_bundle %] |
160 |
<div class="lastchecked"> |
| 164 |
[% SET bundle_items_count = new_issue.item.bundle_items.count %] |
161 |
<p> |
| 165 |
[% tnx('Bundle of {count} item', 'Bundle of {count} items', bundle_items_count, { count = bundle_items_count }) | html %]. |
162 |
<strong>Checked out: </strong> |
| 166 |
[% END %] |
163 |
[% new_issue.item.biblio.title | html %] ([% new_issue.item.barcode | html %]). |
| 167 |
Due on [% new_issue.date_due | $KohaDates as_due_date => 1 %] |
164 |
[% IF new_issue.item.is_bundle %] |
| 168 |
</p> |
165 |
[% SET bundle_items_count = new_issue.item.bundle_items.count %] |
| 169 |
</div> |
166 |
[% tnx('Bundle of {count} item', 'Bundle of {count} items', bundle_items_count, { count = bundle_items_count }) | html %]. |
| 170 |
[% END %] |
167 |
[% END %] |
| 171 |
[% IF ( issues_count ) %] |
168 |
Due on [% new_issue.date_due | $KohaDates as_due_date => 1 %] |
| 172 |
[% IF ( Koha.Preference('SCOLoadCheckoutsByDefault') || load_checkouts ) %] |
169 |
</p> |
| 173 |
<table id="loanTable" class="table table-bordered table-striped"> |
170 |
</div> |
| 174 |
<caption>Checkouts for [% borrowername | html %] <span class="count">([% issues_count | html %] total)</span></caption> |
171 |
[% END %] |
| 175 |
<!-- ISSUES TABLE ROWS --> |
172 |
[% IF ( issues_count ) %] |
| 176 |
<thead> |
173 |
[% IF ( Koha.Preference('SCOLoadCheckoutsByDefault') || load_checkouts ) %] |
| 177 |
<tr> |
174 |
<table id="loanTable" class="table table-bordered table-striped"> |
| 178 |
<th class="noshow">Checked out on</th> |
175 |
<caption>Checkouts for [% borrowername | html %] <span class="count">([% issues_count | html %] total)</span></caption> |
| 179 |
<th class="all anti-the">Title</th> |
176 |
<!-- ISSUES TABLE ROWS --> |
| 180 |
<th>Call number</th> |
177 |
<thead> |
| 181 |
<th class="psort">Due</th> |
|
|
| 182 |
<th class="all nosort">Renew</th> |
| 183 |
[% UNLESS ( nofines ) %] |
| 184 |
<th>Fines</th> |
| 185 |
[% END %] |
| 186 |
<th></th> |
| 187 |
</tr> |
| 188 |
</thead> |
| 189 |
<tbody> |
| 190 |
[% FOREACH ISSUE IN ISSUES %] |
| 191 |
<tr> |
178 |
<tr> |
| 192 |
<td>[% ISSUE.issuedate | html %]</td> |
179 |
<th class="noshow">Checked out on</th> |
| 193 |
<td> |
180 |
<th class="all anti-the">Title</th> |
| 194 |
[% UNLESS ( noitemlinks ) %] |
181 |
<th>Call number</th> |
| 195 |
<a href="/cgi-bin/koha/opac-detail.pl?bib=[% ISSUE. biblionumber | uri %]">[% ISSUE.title | html %]</a> |
182 |
<th class="psort">Due</th> |
| 196 |
[% ELSE %] |
183 |
<th class="all nosort">Renew</th> |
| 197 |
<strong>[% ISSUE.title | html %]</strong> |
184 |
[% UNLESS ( nofines ) %] |
| 198 |
[% END %] |
185 |
<th>Fines</th> |
| 199 |
[% IF ( newissues.match(ISSUE.barcode)) %] |
|
|
| 200 |
<span class="badge text-bg-info">NEW</span> |
| 201 |
[% END %] |
| 202 |
<span class="item-details">[% ISSUE.author | html %]</span> |
| 203 |
([% ISSUE.barcode | html %]) |
| 204 |
</td> |
| 205 |
<td>[% ISSUE.itemcallnumber | html %]</td> |
| 206 |
[% IF ( ISSUE.overdue ) %] |
| 207 |
<td class="overdue" data-order="[% ISSUE.date_due | html %]"> [% ISSUE.date_due | $KohaDates as_due_date => 1 %] </td> |
| 208 |
[% ELSE %] |
| 209 |
<td data-order="[% ISSUE.date_due | html %]"> [% ISSUE.date_due | $KohaDates as_due_date => 1 %] </td> |
| 210 |
[% END %] |
186 |
[% END %] |
| 211 |
<td> |
187 |
<th></th> |
| 212 |
<form action="/cgi-bin/koha/sco/sco-main.pl" method="post"> |
188 |
</tr> |
| 213 |
[% INCLUDE 'csrf-token.inc' %] |
189 |
</thead> |
| 214 |
<legend class="sr-only">Issue renews</legend> |
190 |
<tbody> |
| 215 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
191 |
[% FOREACH ISSUE IN ISSUES %] |
| 216 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
192 |
<tr> |
| 217 |
<input type="hidden" name="barcode" value="[% ISSUE.barcode | html %]" /> |
193 |
<td>[% ISSUE.issuedate | html %]</td> |
| 218 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
194 |
<td> |
| 219 |
[% IF ISSUE.can_be_renewed %] |
195 |
[% UNLESS ( noitemlinks ) %] |
| 220 |
<input type="hidden" name="op" value="cud-renew" /> |
196 |
<a href="/cgi-bin/koha/opac-detail.pl?bib=[% ISSUE. biblionumber | uri %]">[% ISSUE.title | html %]</a> |
| 221 |
<input type="hidden" name="confirmed" value="1" /> |
|
|
| 222 |
[% UNLESS ( ISSUE.renew ) %] |
| 223 |
<input type="submit" value="Renew item" name="confirm " class="btn btn-primary btn-sm renew" /> |
| 224 |
[% ELSE %] |
| 225 |
<input type="submit" value="Renew item" class="btn btn-primary btn-sm renew" /> |
| 226 |
[% END %] |
| 227 |
[% ELSE %] |
197 |
[% ELSE %] |
| 228 |
[% IF ISSUE.renew_error == 'onsite_checkout' %] |
198 |
<strong>[% ISSUE.title | html %]</strong> |
| 229 |
<span>This is a on-site checkout, it cannot be renewed.</span> |
199 |
[% END %] |
| 230 |
[% ELSIF ISSUE.renew_error == 'too_unseen' %] |
200 |
[% IF ( newissues.match(ISSUE.barcode)) %] |
| 231 |
<span>You have renewed this item the maximum number of consecutive times without it being seen by the library.</span> |
201 |
<span class="badge text-bg-info">NEW</span> |
| 232 |
[% ELSIF ISSUE.renew_error == 'too_soon' %] |
202 |
[% END %] |
| 233 |
<span>This item cannot yet be renewed.</span> |
203 |
<span class="item-details">[% ISSUE.author | html %]</span> |
|
|
204 |
([% ISSUE.barcode | html %]) |
| 205 |
</td> |
| 206 |
<td>[% ISSUE.itemcallnumber | html %]</td> |
| 207 |
[% IF ( ISSUE.overdue ) %] |
| 208 |
<td class="overdue" data-order="[% ISSUE.date_due | html %]"> [% ISSUE.date_due | $KohaDates as_due_date => 1 %] </td> |
| 209 |
[% ELSE %] |
| 210 |
<td data-order="[% ISSUE.date_due | html %]"> [% ISSUE.date_due | $KohaDates as_due_date => 1 %] </td> |
| 211 |
[% END %] |
| 212 |
<td> |
| 213 |
<form action="/cgi-bin/koha/sco/sco-main.pl" method="post"> |
| 214 |
[% INCLUDE 'csrf-token.inc' %] |
| 215 |
<legend class="sr-only">Issue renews</legend> |
| 216 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
| 217 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
| 218 |
<input type="hidden" name="barcode" value="[% ISSUE.barcode | html %]" /> |
| 219 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
| 220 |
[% IF ISSUE.can_be_renewed %] |
| 221 |
<input type="hidden" name="op" value="cud-renew" /> |
| 222 |
<input type="hidden" name="confirmed" value="1" /> |
| 223 |
[% UNLESS ( ISSUE.renew ) %] |
| 224 |
<input type="submit" value="Renew item" name="confirm " class="btn btn-primary btn-sm renew" /> |
| 225 |
[% ELSE %] |
| 226 |
<input type="submit" value="Renew item" class="btn btn-primary btn-sm renew" /> |
| 227 |
[% END %] |
| 234 |
[% ELSE %] |
228 |
[% ELSE %] |
| 235 |
<span>No renewals allowed</span> |
229 |
[% IF ISSUE.renew_error == 'onsite_checkout' %] |
|
|
230 |
<span>This is a on-site checkout, it cannot be renewed.</span> |
| 231 |
[% ELSIF ISSUE.renew_error == 'too_unseen' %] |
| 232 |
<span>You have renewed this item the maximum number of consecutive times without it being seen by the library.</span> |
| 233 |
[% ELSIF ISSUE.renew_error == 'too_soon' %] |
| 234 |
<span>This item cannot yet be renewed.</span> |
| 235 |
[% ELSE %] |
| 236 |
<span>No renewals allowed</span> |
| 237 |
[% END %] |
| 238 |
[% IF Koha.Preference('SCOAllowCheckin') %] |
| 239 |
<div> |
| 240 |
<input type="submit" value="Check in item" name="confirm" class="btn btn-info btn-sm return" /> |
| 241 |
<input type="hidden" name="op" value="cud-returnbook" /> |
| 242 |
<input type="hidden" name="confirmed" value="" /> |
| 243 |
</div> |
| 244 |
[% END %] |
| 236 |
[% END %] |
245 |
[% END %] |
| 237 |
[% IF Koha.Preference('SCOAllowCheckin') %] |
246 |
[% IF ISSUE.auto_renew %] |
| 238 |
<div> |
247 |
<br /><span>This item is scheduled for automatic renewal</span> |
| 239 |
<input type="submit" value="Check in item" name="confirm" class="btn btn-info btn-sm return" /> |
|
|
| 240 |
<input type="hidden" name="op" value="cud-returnbook" /> |
| 241 |
<input type="hidden" name="confirmed" value="" /> |
| 242 |
</div> |
| 243 |
[% END %] |
248 |
[% END %] |
| 244 |
[% END %] |
249 |
</form> |
| 245 |
[% IF ISSUE.auto_renew %] |
250 |
</td> |
| 246 |
<br /><span>This item is scheduled for automatic renewal</span> |
251 |
[% UNLESS ( nofines ) %] |
| 247 |
[% END %] |
252 |
<td> [% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %] </td> |
| 248 |
</form> |
253 |
[% END %] |
| 249 |
</td> |
254 |
<td></td> |
| 250 |
[% UNLESS ( nofines ) %] |
255 |
</tr> |
| 251 |
<td> [% IF ( ISSUE.charges ) %]Yes[% ELSE %]No[% END %] </td> |
256 |
[% END # / FOREACH ISSUE %] |
| 252 |
[% END %] |
257 |
</tbody> |
| 253 |
<td></td> |
258 |
</table> |
| 254 |
</tr> |
259 |
[% ELSE %] |
| 255 |
[% END # / FOREACH ISSUE %] |
260 |
<a class="btn btn-secondary" href="?load_checkouts=1#scan_form"><i class="fa fa-book" aria-hidden="true"></i> Show your checkouts</a> |
| 256 |
</tbody> |
261 |
[% END # / IF ( Koha.preference('SCOLoadCheckoutsByDefault') || load_checkouts ) %] |
| 257 |
</table> |
|
|
| 258 |
[% ELSE %] |
262 |
[% ELSE %] |
| 259 |
<a class="btn btn-secondary" href="?load_checkouts=1#scan_form"><i class="fa fa-book" aria-hidden="true"></i> Show your checkouts</a> |
263 |
<h3>You currently have nothing checked out.</h3> |
| 260 |
[% END # / IF ( Koha.preference('SCOLoadCheckoutsByDefault') || load_checkouts ) %] |
264 |
[% END # / IF issues_count %] |
| 261 |
[% ELSE %] |
265 |
</div> |
| 262 |
<h3>You currently have nothing checked out.</h3> |
266 |
<!-- / #borrowerdetails --> |
| 263 |
[% END # / IF issues_count %] |
|
|
| 264 |
</div> |
267 |
</div> |
| 265 |
<!-- / #borrowerdetails --> |
268 |
[% END # /tab_panel %] |
| 266 |
</div> |
269 |
[% WRAPPER tab_panel tabname="holds" %] |
| 267 |
[% END # /tab_panel %] |
270 |
[% IF HOLDS.count > 0 %] |
| 268 |
[% WRAPPER tab_panel tabname="holds" %] |
271 |
[% PROCESS 'holds-table.inc' HOLDS = HOLDS, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds, onlyinfo = 'true' %] |
| 269 |
[% IF HOLDS.count > 0 %] |
272 |
[% ELSE %] |
| 270 |
[% PROCESS 'holds-table.inc' HOLDS = HOLDS, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds, onlyinfo = 'true' %] |
273 |
<h3>You currently have no pending holds.</h3> |
| 271 |
[% ELSE %] |
274 |
[% END %] |
| 272 |
<h3>You currently have no pending holds.</h3> |
275 |
[% END # /tab_panel %] |
| 273 |
[% END %] |
276 |
[% WRAPPER tab_panel tabname="account" %] |
| 274 |
[% END # /tab_panel %] |
277 |
[% PROCESS 'account-table.inc' %] |
| 275 |
[% WRAPPER tab_panel tabname="account" %] |
278 |
[% END # /tab_panel %] |
| 276 |
[% PROCESS 'account-table.inc' %] |
279 |
[% END # /WRAPPER tab_panels %] |
| 277 |
[% END # /tab_panel %] |
280 |
[% END # /WRAPPER tabs %] |
| 278 |
[% END # /WRAPPER tab_panels %] |
281 |
|
| 279 |
[% END # /WRAPPER tabs %] |
282 |
[% IF ( SCOMainUserBlock ) %] |
| 280 |
|
283 |
<div id="scomainuserblock"> [% PROCESS koha_news_block news => SCOMainUserBlock %] </div> |
| 281 |
[% IF ( SCOMainUserBlock ) %] |
284 |
[% END %] |
| 282 |
<div id="scomainuserblock"> [% PROCESS koha_news_block news => SCOMainUserBlock %] </div> |
285 |
</div> |
| 283 |
[% END %] |
286 |
<!-- / .span12 --> |
| 284 |
</div> |
287 |
</div> |
| 285 |
<!-- / .span12 --> |
288 |
<!-- / .row --> |
| 286 |
</div> |
289 |
</div> |
| 287 |
<!-- / .row --> |
290 |
<!-- / .container-fluid --> |
| 288 |
</div> |
291 |
[% ELSE # IF validuser %] |
| 289 |
<!-- / .container-fluid --> |
292 |
<div class="container-fluid"> |
| 290 |
[% ELSE # IF validuser %] |
293 |
<div class="row"> |
|
|
294 |
<div class="[% main_div_class | html %]"> |
| 295 |
<div id="masthead"><h1>[% LibraryName | html %] Self checkout system</h1></div> |
| 296 |
|
| 297 |
[% PROCESS display_errors %] |
| 298 |
|
| 299 |
[% IF patronid && nouser %] |
| 300 |
<div class="alert alert-warning"> |
| 301 |
<h3>Sorry</h3> |
| 302 |
<p>The userid <strong>[% patronid | html %]</strong> was not found in the database. Please try again.</p> |
| 303 |
</div> |
| 304 |
[% END %] |
| 305 |
|
| 306 |
<div class="sco_entry"> |
| 307 |
<form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post"> |
| 308 |
[% INCLUDE 'csrf-token.inc' %] |
| 309 |
<fieldset> |
| 310 |
<legend>Log in to your account</legend> |
| 311 |
<div class="row"> |
| 312 |
<div class="col-md-6"> |
| 313 |
[% IF ( Koha.Preference('SelfCheckoutByLogin') ) %] |
| 314 |
<div class="row"> |
| 315 |
<div class="col-md-12"> [% PROCESS login_label for="patronlogin" %] </div> |
| 316 |
<div class="col-md-12"> |
| 317 |
<input type="text" id="patronlogin" class="form-control focus noEnterSubmit" size="20" name="patronlogin" autocomplete="off" /> |
| 318 |
</div> |
| 319 |
<div class="col-md-12"> |
| 320 |
<label for="patronpw">Password:</label> |
| 321 |
</div> |
| 322 |
<div class="col-md-12"> |
| 323 |
<input type="password" id="patronpw" class="form-control" size="20" name="patronpw" autocomplete="off" /> |
| 324 |
</div> |
| 325 |
<div class="col-md-12"> |
| 326 |
<button type="submit" class="btn btn-primary">Log in</button> |
| 327 |
</div> |
| 328 |
</div> |
| 329 |
<!-- /.row --> |
| 330 |
[% ELSE %] |
| 331 |
<div class="row"> |
| 332 |
<div class="col-md-12"> |
| 333 |
<label for="patronid">Please enter your card number:</label> |
| 334 |
</div> |
| 335 |
<div class="col-md-12"> |
| 336 |
<input type="text" id="patronid" class="form-control focus" size="20" name="patronid" autocomplete="off" /> |
| 337 |
</div> |
| 338 |
<div class="col-md-12"> |
| 339 |
<button type="submit" class="btn btn-primary">Submit</button> |
| 340 |
</div> |
| 341 |
</div> |
| 342 |
<!-- /.row --> |
| 343 |
[% END %] |
| 344 |
</div> |
| 345 |
<!-- /.col-md-6 --> |
| 346 |
</div> |
| 347 |
<!-- /.row --> |
| 348 |
[% FOREACH INPUT IN INPUTS %] |
| 349 |
<input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" /> |
| 350 |
[% END %] |
| 351 |
<input type="hidden" name="op" value="cud-login" /> |
| 352 |
</fieldset> |
| 353 |
</form> |
| 354 |
<!-- /#mainform --> |
| 355 |
</div> |
| 356 |
<!-- / .sco_entry --> |
| 357 |
[% IF ( SCOMainUserBlock ) %] |
| 358 |
<div id="scomainuserblock"> [% PROCESS koha_news_block news => SCOMainUserBlock %] </div> |
| 359 |
[% END %] |
| 360 |
</div> |
| 361 |
<!-- / .span12 --> |
| 362 |
</div> |
| 363 |
<!-- / .row --> |
| 364 |
</div> |
| 365 |
<!-- / .container-fluid --> |
| 366 |
[% END # / IF validuser %] |
| 367 |
[% ELSE # / UNLESS ( hide_main %] |
| 291 |
<div class="container-fluid"> |
368 |
<div class="container-fluid"> |
| 292 |
<div class="row"> |
369 |
<div class="row"> |
| 293 |
<div class="[% main_div_class | html %]"> |
370 |
<div class="[% main_div_class | html %]"> |
|
Lines 295-358
Link Here
|
| 295 |
|
372 |
|
| 296 |
[% PROCESS display_errors %] |
373 |
[% PROCESS display_errors %] |
| 297 |
|
374 |
|
| 298 |
[% IF patronid && nouser %] |
|
|
| 299 |
<div class="alert alert-warning"> |
| 300 |
<h3>Sorry</h3> |
| 301 |
<p>The userid <strong>[% patronid | html %]</strong> was not found in the database. Please try again.</p> |
| 302 |
</div> |
| 303 |
[% END %] |
| 304 |
|
| 305 |
<div class="sco_entry"> |
| 306 |
<form id="mainform" action="/cgi-bin/koha/sco/sco-main.pl" name="mainform" method="post"> |
| 307 |
[% INCLUDE 'csrf-token.inc' %] |
| 308 |
<fieldset> |
| 309 |
<legend>Log in to your account</legend> |
| 310 |
<div class="row"> |
| 311 |
<div class="col-md-6"> |
| 312 |
[% IF ( Koha.Preference('SelfCheckoutByLogin') ) %] |
| 313 |
<div class="row"> |
| 314 |
<div class="col-md-12"> [% PROCESS login_label for="patronlogin" %] </div> |
| 315 |
<div class="col-md-12"> |
| 316 |
<input type="text" id="patronlogin" class="form-control focus noEnterSubmit" size="20" name="patronlogin" autocomplete="off" /> |
| 317 |
</div> |
| 318 |
<div class="col-md-12"> |
| 319 |
<label for="patronpw">Password:</label> |
| 320 |
</div> |
| 321 |
<div class="col-md-12"> |
| 322 |
<input type="password" id="patronpw" class="form-control" size="20" name="patronpw" autocomplete="off" /> |
| 323 |
</div> |
| 324 |
<div class="col-md-12"> |
| 325 |
<button type="submit" class="btn btn-primary">Log in</button> |
| 326 |
</div> |
| 327 |
</div> |
| 328 |
<!-- /.row --> |
| 329 |
[% ELSE %] |
| 330 |
<div class="row"> |
| 331 |
<div class="col-md-12"> |
| 332 |
<label for="patronid">Please enter your card number:</label> |
| 333 |
</div> |
| 334 |
<div class="col-md-12"> |
| 335 |
<input type="text" id="patronid" class="form-control focus" size="20" name="patronid" autocomplete="off" /> |
| 336 |
</div> |
| 337 |
<div class="col-md-12"> |
| 338 |
<button type="submit" class="btn btn-primary">Submit</button> |
| 339 |
</div> |
| 340 |
</div> |
| 341 |
<!-- /.row --> |
| 342 |
[% END %] |
| 343 |
</div> |
| 344 |
<!-- /.col-md-6 --> |
| 345 |
</div> |
| 346 |
<!-- /.row --> |
| 347 |
[% FOREACH INPUT IN INPUTS %] |
| 348 |
<input type="hidden" name="[% INPUT.name | html %]" value="[% INPUT.value | html %]" /> |
| 349 |
[% END %] |
| 350 |
<input type="hidden" name="op" value="cud-login" /> |
| 351 |
</fieldset> |
| 352 |
</form> |
| 353 |
<!-- /#mainform --> |
| 354 |
</div> |
| 355 |
<!-- / .sco_entry --> |
| 356 |
[% IF ( SCOMainUserBlock ) %] |
375 |
[% IF ( SCOMainUserBlock ) %] |
| 357 |
<div id="scomainuserblock"> [% PROCESS koha_news_block news => SCOMainUserBlock %] </div> |
376 |
<div id="scomainuserblock"> [% PROCESS koha_news_block news => SCOMainUserBlock %] </div> |
| 358 |
[% END %] |
377 |
[% END %] |
|
Lines 362-716
Link Here
|
| 362 |
<!-- / .row --> |
381 |
<!-- / .row --> |
| 363 |
</div> |
382 |
</div> |
| 364 |
<!-- / .container-fluid --> |
383 |
<!-- / .container-fluid --> |
| 365 |
[% END # / IF validuser %] |
384 |
[% END # / UNLESS ( hide_main %] |
| 366 |
[% ELSE # / UNLESS ( hide_main %] |
385 |
</div> |
| 367 |
<div class="container-fluid"> |
386 |
<!-- / .main --> |
| 368 |
<div class="row"> |
387 |
<span id="audio-alert"></span> |
| 369 |
<div class="[% main_div_class | html %]"> |
388 |
|
| 370 |
<div id="masthead"><h1>[% LibraryName | html %] Self checkout system</h1></div> |
389 |
[% INCLUDE 'opac-bottom.inc' %] |
| 371 |
|
390 |
[% BLOCK jsinclude %] |
| 372 |
[% PROCESS display_errors %] |
391 |
[% INCLUDE 'datatables.inc' %] |
|
|
392 |
<script> |
| 393 |
function mungeHistory() { |
| 394 |
// prevent back button from allowing form resubmission |
| 395 |
if (history && history.pushState) { |
| 396 |
history.replaceState(null, document.title, window.location.href); |
| 397 |
} |
| 398 |
} |
| 399 |
var mainTimeout; |
| 400 |
function sco_init() { |
| 401 |
mainTimeout = setTimeout(function() { |
| 402 |
location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
| 403 |
}, [% SelfCheckTimeout | html %]); |
| 404 |
} |
| 405 |
function dofocus() { // named function req'd for body onload event by some FF and IE7 security models |
| 406 |
// alert("dofocus called"); |
| 407 |
$(".focus:last").select(); |
| 408 |
} |
| 409 |
var slip_re = /slip/; |
| 410 |
function printx_window(print_type) { |
| 411 |
var handler = print_type.match(slip_re) ? "printslip" : "moremember"; |
| 373 |
|
412 |
|
| 374 |
[% IF ( SCOMainUserBlock ) %] |
413 |
return false; |
| 375 |
<div id="scomainuserblock"> [% PROCESS koha_news_block news => SCOMainUserBlock %] </div> |
|
|
| 376 |
[% END %] |
| 377 |
</div> |
| 378 |
<!-- / .span12 --> |
| 379 |
</div> |
| 380 |
<!-- / .row --> |
| 381 |
</div> |
| 382 |
<!-- / .container-fluid --> |
| 383 |
[% END # / UNLESS ( hide_main %] |
| 384 |
</div> |
| 385 |
<!-- / .main --> |
| 386 |
<span id="audio-alert"></span> |
| 387 |
|
| 388 |
[% INCLUDE 'opac-bottom.inc' %] |
| 389 |
[% BLOCK jsinclude %] |
| 390 |
[% INCLUDE 'datatables.inc' %] |
| 391 |
<script> |
| 392 |
function mungeHistory() { |
| 393 |
// prevent back button from allowing form resubmission |
| 394 |
if (history && history.pushState) { |
| 395 |
history.replaceState(null, document.title, window.location.href); |
| 396 |
} |
414 |
} |
| 397 |
} |
415 |
function checkout_confirm(patronid) { |
| 398 |
var mainTimeout; |
416 |
var barcode = $("#barcode").val(); |
| 399 |
function sco_init() { |
417 |
// alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'"); |
| 400 |
mainTimeout = setTimeout(function() { |
418 |
if (! barcode) { dofocus(); return false; } // no barcode |
| 401 |
location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
419 |
if (barcode == "__KOHA_NEW_CIRC__") { // magic barcode |
| 402 |
}, [% SelfCheckTimeout | html %]); |
420 |
window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
| 403 |
} |
421 |
return false; |
| 404 |
function dofocus() { // named function req'd for body onload event by some FF and IE7 security models |
422 |
} |
| 405 |
// alert("dofocus called"); |
423 |
return true; |
| 406 |
$(".focus:last").select(); |
|
|
| 407 |
} |
| 408 |
var slip_re = /slip/; |
| 409 |
function printx_window(print_type) { |
| 410 |
var handler = print_type.match(slip_re) ? "printslip" : "moremember"; |
| 411 |
|
| 412 |
return false; |
| 413 |
} |
| 414 |
function checkout_confirm(patronid) { |
| 415 |
var barcode = $("#barcode").val(); |
| 416 |
// alert("checkout_confirm('" + patronid + "') called for barcode '" + barcode + "'"); |
| 417 |
if (! barcode) { dofocus(); return false; } // no barcode |
| 418 |
if (barcode == "__KOHA_NEW_CIRC__") { // magic barcode |
| 419 |
window.location.href='/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
| 420 |
return false; |
| 421 |
} |
424 |
} |
| 422 |
return true; |
425 |
[% IF Koha.Preference('AudioAlerts') %] |
| 423 |
} |
426 |
var AUDIO_ALERTS = JSON.parse( "[% To.json(AudioAlerts.AudioAlerts) | $raw %]" ); |
| 424 |
[% IF Koha.Preference('AudioAlerts') %] |
427 |
$( document ).ready(function() { |
| 425 |
var AUDIO_ALERTS = JSON.parse( "[% To.json(AudioAlerts.AudioAlerts) | $raw %]" ); |
428 |
if ( AUDIO_ALERTS ) { |
| 426 |
$( document ).ready(function() { |
429 |
for ( var k in AUDIO_ALERTS ) { |
| 427 |
if ( AUDIO_ALERTS ) { |
430 |
var alert = AUDIO_ALERTS[k]; |
| 428 |
for ( var k in AUDIO_ALERTS ) { |
431 |
if ( $( alert.selector ).length ) { |
| 429 |
var alert = AUDIO_ALERTS[k]; |
432 |
playSound( alert.sound ); |
| 430 |
if ( $( alert.selector ).length ) { |
433 |
break; |
| 431 |
playSound( alert.sound ); |
434 |
} |
| 432 |
break; |
|
|
| 433 |
} |
435 |
} |
| 434 |
} |
436 |
} |
|
|
437 |
}); |
| 438 |
function playSound( sound ) { |
| 439 |
if (!(sound.indexOf("http://") === 0 || sound.indexOf("https://") === 0)) { |
| 440 |
sound = '[% interface | html %]' + '/bootstrap/sound/' + sound; |
| 441 |
document.getElementById("audio-alert").innerHTML = '<audio src="' + sound + '" autoplay="autoplay" autobuffer="autobuffer"></audio>'; |
| 442 |
} |
| 435 |
} |
443 |
} |
| 436 |
}); |
444 |
[% END %] |
| 437 |
function playSound( sound ) { |
|
|
| 438 |
if (!(sound.indexOf("http://") === 0 || sound.indexOf("https://") === 0)) { |
| 439 |
sound = '[% interface | html %]' + '/bootstrap/sound/' + sound; |
| 440 |
document.getElementById("audio-alert").innerHTML = '<audio src="' + sound + '" autoplay="autoplay" autobuffer="autobuffer"></audio>'; |
| 441 |
} |
| 442 |
} |
| 443 |
[% END %] |
| 444 |
|
445 |
|
| 445 |
$( window ).on( "load", function() { |
446 |
$( window ).on( "load", function() { |
| 446 |
dofocus(); |
447 |
dofocus(); |
| 447 |
}); |
448 |
}); |
| 448 |
|
449 |
|
| 449 |
$( window ).on( "unload", function() { |
450 |
$( window ).on( "unload", function() { |
| 450 |
mungeHistory(); |
451 |
mungeHistory(); |
| 451 |
}); |
452 |
}); |
| 452 |
|
453 |
|
| 453 |
$(document).ready(function() { |
454 |
$(document).ready(function() { |
| 454 |
dofocus(); |
455 |
dofocus(); |
| 455 |
[% IF ( patronid ) %]sco_init();[% END %] |
456 |
[% IF ( patronid ) %]sco_init();[% END %] |
| 456 |
|
457 |
|
| 457 |
var dTables = $("#loanTable, #holdst, #finestable"); |
458 |
var dTables = $("#loanTable, #holdst, #finestable"); |
| 458 |
dTables.each(function(){ |
459 |
dTables.each(function(){ |
| 459 |
var thIndex = $(this).find("th.psort").index(); |
460 |
var thIndex = $(this).find("th.psort").index(); |
| 460 |
$(this).kohaTable({ |
461 |
$(this).kohaTable({ |
| 461 |
sorting: [[thIndex, "asc"]], |
462 |
sorting: [[thIndex, "asc"]], |
| 462 |
dom: '<"top"<"table_entries"><"table_controls"f>>t<"clear">', |
463 |
dom: '<"top"<"table_entries"><"table_controls"f>>t<"clear">', |
| 463 |
columnDefs: [ |
464 |
columnDefs: [ |
| 464 |
{ targets: ["nosort"], orderable: false, searchable: false }, |
465 |
{ targets: ["nosort"], orderable: false, searchable: false }, |
| 465 |
{ targets: ["noshow"], visible: false, searchable: false }, |
466 |
{ targets: ["noshow"], visible: false, searchable: false }, |
| 466 |
{ type: "anti-the", targets: ["anti-the"] }, |
467 |
{ type: "anti-the", targets: ["anti-the"] }, |
| 467 |
{ visible: false, targets: ["hidden"] }, |
468 |
{ visible: false, targets: ["hidden"] }, |
| 468 |
{ className: "dtr-control", orderable: false, targets: -1 }, |
469 |
{ className: "dtr-control", orderable: false, targets: -1 }, |
| 469 |
], |
470 |
], |
| 470 |
language: { |
471 |
language: { |
| 471 |
search: "_INPUT_", |
472 |
search: "_INPUT_", |
| 472 |
searchPlaceholder: _("Search"), |
473 |
searchPlaceholder: _("Search"), |
| 473 |
}, |
474 |
}, |
| 474 |
responsive: { |
475 |
responsive: { |
| 475 |
details: { |
476 |
details: { |
| 476 |
type: "column", |
477 |
type: "column", |
| 477 |
target: -1, |
478 |
target: -1, |
|
|
479 |
}, |
| 478 |
}, |
480 |
}, |
| 479 |
}, |
481 |
}); |
| 480 |
}); |
482 |
}); |
| 481 |
}); |
|
|
| 482 |
|
483 |
|
| 483 |
$('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (event) { |
484 |
$('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (event) { |
| 484 |
dTables.DataTable().responsive.recalc(); |
485 |
dTables.DataTable().responsive.recalc(); |
| 485 |
} ); |
486 |
} ); |
| 486 |
|
487 |
|
| 487 |
$("#logout_form").on("click", function(e){ |
488 |
$("#logout_form").on("click", function(e){ |
| 488 |
e.preventDefault(e); |
489 |
e.preventDefault(e); |
| 489 |
clearTimeout(mainTimeout); |
490 |
clearTimeout(mainTimeout); |
| 490 |
[% IF Koha.Preference('SelfCheckReceiptPrompt') %] |
491 |
[% IF Koha.Preference('SelfCheckReceiptPrompt') %] |
| 491 |
var confirmStart = Date.now(); |
492 |
var confirmStart = Date.now(); |
| 492 |
confirmModal("", _("Would you like to print a receipt?"), _("Print receipt and end session"), _("End session"), function(result) { |
493 |
confirmModal("", _("Would you like to print a receipt?"), _("Print receipt and end session"), _("End session"), function(result) { |
| 493 |
if ( result && (Date.now() - confirmStart) < [% SelfCheckTimeout | html %] ) { |
494 |
if ( result && (Date.now() - confirmStart) < [% SelfCheckTimeout | html %] ) { |
| 494 |
var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip"); |
495 |
var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip"); |
| 495 |
location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
496 |
location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
| 496 |
} else { |
497 |
} else { |
| 497 |
location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
498 |
location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
| 498 |
} |
499 |
} |
| 499 |
}) |
500 |
}) |
| 500 |
sco_init(); |
501 |
sco_init(); |
| 501 |
[% ELSE %] |
502 |
[% ELSE %] |
| 502 |
location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
503 |
location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; |
| 503 |
[% END %] |
504 |
[% END %] |
| 504 |
|
505 |
|
| 505 |
return true; |
506 |
return true; |
| 506 |
}); |
507 |
}); |
| 507 |
|
508 |
|
| 508 |
$("#scan_form").on("submit", function(){ |
509 |
$("#scan_form").on("submit", function(){ |
| 509 |
return checkout_confirm('[% patronid | html %]'); |
510 |
return checkout_confirm('[% patronid | html %]'); |
| 510 |
}); |
511 |
}); |
| 511 |
}); |
512 |
}); |
| 512 |
</script> |
|
|
| 513 |
[% IF ( Koha.Preference('SCOUserJS') ) %] |
| 514 |
<script> |
| 515 |
[% Koha.Preference('SCOUserJS') | $raw %] |
| 516 |
</script> |
513 |
</script> |
|
|
514 |
[% IF ( Koha.Preference('SCOUserJS') ) %] |
| 515 |
<script> |
| 516 |
[% Koha.Preference('SCOUserJS') | $raw %] |
| 517 |
</script> |
| 518 |
[% END %] |
| 517 |
[% END %] |
519 |
[% END %] |
| 518 |
[% END %] |
|
|
| 519 |
|
520 |
|
| 520 |
[% BLOCK display_errors %] |
521 |
[% BLOCK display_errors %] |
| 521 |
[% FOREACH item IN impossible %] |
522 |
[% FOREACH item IN impossible %] |
| 522 |
<!-- We tried to issue, but failed. --> |
523 |
<!-- We tried to issue, but failed. --> |
| 523 |
<div class="alert alert-warning"> |
524 |
<div class="alert alert-warning"> |
| 524 |
<span class="sco-alert-warning noissue"></span> |
525 |
<span class="sco-alert-warning noissue"></span> |
| 525 |
<h2>Item cannot be checked out.</h2> |
526 |
<h2>Item cannot be checked out.</h2> |
| 526 |
<p>Sorry, this item cannot be checked out at this station.</p> |
527 |
<p>Sorry, this item cannot be checked out at this station.</p> |
| 527 |
[% IF ( item.title ) %] |
528 |
[% IF ( item.title ) %] |
| 528 |
<p>Title: <em>[% item.title | html %]</em> </p> |
529 |
<p>Title: <em>[% item.title | html %]</em> </p> |
| 529 |
[% END %] |
530 |
[% END %] |
| 530 |
|
531 |
|
| 531 |
<p> |
532 |
<p> |
| 532 |
[% IF ( item.circ_error_UNKNOWN_BARCODE ) %] |
533 |
[% IF ( item.circ_error_UNKNOWN_BARCODE ) %] |
| 533 |
<span id="ce_unknown_barcode">The system does not recognize this barcode.</span> |
534 |
<span id="ce_unknown_barcode">The system does not recognize this barcode.</span> |
| 534 |
[% ELSIF ( item.circ_error_max_loans_allowed ) %] |
535 |
[% ELSIF ( item.circ_error_max_loans_allowed ) %] |
| 535 |
<span id="ce_max_loans_allowed">You have reached the maximum limit of items checked out.</span> |
536 |
<span id="ce_max_loans_allowed">You have reached the maximum limit of items checked out.</span> |
| 536 |
[% ELSIF ( item.circ_error_ISSUED_TO_ANOTHER ) %] |
537 |
[% ELSIF ( item.circ_error_ISSUED_TO_ANOTHER ) %] |
| 537 |
<span id="ce_issued_to_another">This item is checked out to someone else.</span> |
538 |
<span id="ce_issued_to_another">This item is checked out to someone else.</span> |
| 538 |
[% ELSIF ( item.circ_error_NO_MORE_RENEWALS ) %] |
539 |
[% ELSIF ( item.circ_error_NO_MORE_RENEWALS ) %] |
| 539 |
<span id="ce_no_more_renewals">You cannot renew this item again.</span> |
540 |
<span id="ce_no_more_renewals">You cannot renew this item again.</span> |
| 540 |
[% ELSIF ( item.circ_error_NOT_FOR_LOAN ) %] |
541 |
[% ELSIF ( item.circ_error_NOT_FOR_LOAN ) %] |
| 541 |
<span id="ce_not_for_loan">This item is not for loan.</span> |
542 |
<span id="ce_not_for_loan">This item is not for loan.</span> |
| 542 |
[% ELSIF ( item.circ_error_DEBT ) %] |
543 |
[% ELSIF ( item.circ_error_DEBT ) %] |
| 543 |
<span id="ce_too_much_debt">You owe the library [% item.DEBT | $Price with_symbol => 1 %] and cannot check out.</span> |
544 |
<span id="ce_too_much_debt">You owe the library [% item.DEBT | $Price with_symbol => 1 %] and cannot check out.</span> |
| 544 |
[% ELSIF ( item.circ_error_WTHDRAWN ) %] |
545 |
[% ELSIF ( item.circ_error_WTHDRAWN ) %] |
| 545 |
<span id="ce_wthdrawn">This item has been withdrawn from the collection.</span> |
546 |
<span id="ce_wthdrawn">This item has been withdrawn from the collection.</span> |
| 546 |
[% ELSIF ( item.circ_error_RESTRICTED ) %] |
547 |
[% ELSIF ( item.circ_error_RESTRICTED ) %] |
| 547 |
<span id="ce_restricted">This item is restricted.</span> |
548 |
<span id="ce_restricted">This item is restricted.</span> |
| 548 |
[% ELSIF ( item.circ_error_RESERVED ) %] |
549 |
[% ELSIF ( item.circ_error_RESERVED ) %] |
| 549 |
<span id="ce_reserved">This item is on hold for another patron.</span> |
550 |
<span id="ce_reserved">This item is on hold for another patron.</span> |
| 550 |
[% ELSIF ( item.circ_error_ITEMNOTSAMEBRANCH ) %] |
551 |
[% ELSIF ( item.circ_error_ITEMNOTSAMEBRANCH ) %] |
| 551 |
<span id="ce_itemnotsamebranch">This item belongs to another library.</span> |
552 |
<span id="ce_itemnotsamebranch">This item belongs to another library.</span> |
| 552 |
[% ELSIF ( item.circ_error_EXPIRED ) %] |
553 |
[% ELSIF ( item.circ_error_EXPIRED ) %] |
| 553 |
<span id="ce_expired">Your account has expired.</span> |
554 |
<span id="ce_expired">Your account has expired.</span> |
| 554 |
[% ELSIF ( item.circ_error_DEBARRED ) %] |
555 |
[% ELSIF ( item.circ_error_DEBARRED ) %] |
| 555 |
<span id="ce_debarred">Your account has been suspended.</span> |
556 |
<span id="ce_debarred">Your account has been suspended.</span> |
| 556 |
[% ELSIF ( item.circ_error_CARD_LOST ) %] |
557 |
[% ELSIF ( item.circ_error_CARD_LOST ) %] |
| 557 |
<span id="ce_card_lost">This library card has been declared lost.</span> |
558 |
<span id="ce_card_lost">This library card has been declared lost.</span> |
| 558 |
[% ELSIF ( item.circ_error_GNA ) %] |
559 |
[% ELSIF ( item.circ_error_GNA ) %] |
| 559 |
<span id="ce_gna">Your contact information seems to be incomplete.</span> |
560 |
<span id="ce_gna">Your contact information seems to be incomplete.</span> |
| 560 |
[% ELSIF ( item.circ_error_INVALID_DATE ) %] |
561 |
[% ELSIF ( item.circ_error_INVALID_DATE ) %] |
| 561 |
<span id="ce_invalid_date">Due date is not valid.</span> |
562 |
<span id="ce_invalid_date">Due date is not valid.</span> |
| 562 |
[% ELSIF ( item.circ_error_ADDITIONAL_MATERIALS ) %] |
563 |
[% ELSIF ( item.circ_error_ADDITIONAL_MATERIALS ) %] |
| 563 |
<span id="ce_addtional_materials">Item must be checked out at a circulation desk.</span> |
564 |
<span id="ce_addtional_materials">Item must be checked out at a circulation desk.</span> |
|
|
565 |
[% END %] |
| 566 |
<span id="ce_see_staff">Please see a member of the library staff.</span> |
| 567 |
</p> |
| 568 |
|
| 569 |
[% IF ( item.returnitem && Koha.Preference('SCOAllowCheckin') ) %] |
| 570 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post"> |
| 571 |
[% INCLUDE 'csrf-token.inc' %] |
| 572 |
<legend class="sr-only">Return</legend> |
| 573 |
<input type="hidden" name="op" value="cud-returnbook" /> |
| 574 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
| 575 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
| 576 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
| 577 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
| 578 |
<button type="submit" name="returnbook" class="btn btn-primary"><i class="fa fa-undo" aria-hidden="true"></i> Return this item</button> |
| 579 |
</form> |
| 564 |
[% END %] |
580 |
[% END %] |
| 565 |
<span id="ce_see_staff">Please see a member of the library staff.</span> |
581 |
|
| 566 |
</p> |
582 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="get"> |
| 567 |
|
583 |
<legend class="sr-only">Error</legend> |
| 568 |
[% IF ( item.returnitem && Koha.Preference('SCOAllowCheckin') ) %] |
584 |
<input type="hidden" name="op" value="" /> |
| 569 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="post"> |
|
|
| 570 |
[% INCLUDE 'csrf-token.inc' %] |
| 571 |
<legend class="sr-only">Return</legend> |
| 572 |
<input type="hidden" name="op" value="cud-returnbook" /> |
| 573 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
585 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
| 574 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
586 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
| 575 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
587 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
| 576 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
588 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
| 577 |
<button type="submit" name="returnbook" class="btn btn-primary"><i class="fa fa-undo" aria-hidden="true"></i> Return this item</button> |
589 |
<input type="submit" name="confirm" value="Return to account summary" class="btn btn-info back focus" /> |
| 578 |
</form> |
590 |
</form> |
| 579 |
[% END %] |
591 |
</div> |
|
|
592 |
<!-- / .alert --> |
| 593 |
[% END # / FOREACH impossible %] |
| 594 |
|
| 595 |
[% FOREACH c IN confirm %] |
| 596 |
<!-- We need to confirm the issue.. --> |
| 597 |
<div class="alert alert-warning" |
| 598 |
><h2>Please confirm the checkout:</h2> |
| 599 |
<span class="sco-alert-warning confirm"></span> |
| 600 |
[% IF ( c.confirm_renew_issue ) %] |
| 601 |
<p>This item is already checked out to you: <b>[% c.confirm | html %]</b> <i>([% c.barcode | html %])</i></p> |
| 602 |
[% END %] |
| 580 |
|
603 |
|
| 581 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="errorForm" class="inline" method="get"> |
604 |
[% IF ( c.renew && Koha.Preference('SCOAllowCheckin') ) %] |
| 582 |
<legend class="sr-only">Error</legend> |
605 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> |
| 583 |
<input type="hidden" name="op" value="" /> |
606 |
[% INCLUDE 'csrf-token.inc' %] |
| 584 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
607 |
<legend class="sr-only">Return</legend> |
| 585 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
608 |
<input type="hidden" name="op" value="cud-returnbook" /> |
| 586 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
609 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
| 587 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
610 |
<input type="hidden" name="barcode" value="[% c.barcode | html %]" /> |
| 588 |
<input type="submit" name="confirm" value="Return to account summary" class="btn btn-info back focus" /> |
611 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
| 589 |
</form> |
612 |
<input type="hidden" name="confirmed" value="" /> |
| 590 |
</div> |
613 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
| 591 |
<!-- / .alert --> |
614 |
<button type="submit" name="returnbook" class="btn btn-primary"><i class="fa fa-undo" aria-hidden="true"></i> Return this item</button> |
| 592 |
[% END # / FOREACH impossible %] |
615 |
</form> |
| 593 |
|
616 |
[% END %] |
| 594 |
[% FOREACH c IN confirm %] |
|
|
| 595 |
<!-- We need to confirm the issue.. --> |
| 596 |
<div class="alert alert-warning" |
| 597 |
><h2>Please confirm the checkout:</h2> |
| 598 |
<span class="sco-alert-warning confirm"></span> |
| 599 |
[% IF ( c.confirm_renew_issue ) %] |
| 600 |
<p>This item is already checked out to you: <b>[% c.confirm | html %]</b> <i>([% c.barcode | html %])</i></p> |
| 601 |
[% END %] |
| 602 |
|
617 |
|
| 603 |
[% IF ( c.renew && Koha.Preference('SCOAllowCheckin') ) %] |
618 |
[% UNLESS ( c.renew ) %] |
| 604 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> |
619 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> |
| 605 |
[% INCLUDE 'csrf-token.inc' %] |
620 |
[% INCLUDE 'csrf-token.inc' %] |
| 606 |
<legend class="sr-only">Return</legend> |
621 |
<legend class="sr-only">Renew</legend> |
| 607 |
<input type="hidden" name="op" value="cud-returnbook" /> |
622 |
<input type="hidden" name="op" value="cud-renew" /> |
| 608 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
623 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
| 609 |
<input type="hidden" name="barcode" value="[% c.barcode | html %]" /> |
624 |
<input type="hidden" name="barcode" value="[% c.barcode | html %]" /> |
| 610 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
625 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
| 611 |
<input type="hidden" name="confirmed" value="" /> |
626 |
<input type="hidden" name="confirmed" value="1" /> |
| 612 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
627 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
| 613 |
<button type="submit" name="returnbook" class="btn btn-primary"><i class="fa fa-undo" aria-hidden="true"></i> Return this item</button> |
628 |
<button type="submit" name="confirm" class="btn btn-primary"><i class="fa-solid fa-rotate" aria-hidden="true"></i> Renew item</button> |
| 614 |
</form> |
629 |
</form> |
| 615 |
[% END %] |
630 |
[% ELSE %] |
|
|
631 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> |
| 632 |
[% INCLUDE 'csrf-token.inc' %] |
| 633 |
<legend class="sr-only">Renew</legend> |
| 634 |
<input type="hidden" name="op" value="cud-renew" /> |
| 635 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
| 636 |
<input type="hidden" name="barcode" value="[% c.barcode | html %]" /> |
| 637 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
| 638 |
<input type="hidden" name="confirmed" value="1" /> |
| 639 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
| 640 |
<button type="submit" class="btn btn-primary"><i class="fa-solid fa-rotate" aria-hidden="true"></i> Renew item</button> |
| 641 |
</form> |
| 642 |
[% END %] |
| 616 |
|
643 |
|
| 617 |
[% UNLESS ( c.renew ) %] |
644 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="get"> |
| 618 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> |
645 |
<legend class="sr-only">Cancel</legend> |
| 619 |
[% INCLUDE 'csrf-token.inc' %] |
646 |
<input type="hidden" name="op" value="" /> |
| 620 |
<legend class="sr-only">Renew</legend> |
|
|
| 621 |
<input type="hidden" name="op" value="cud-renew" /> |
| 622 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
647 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
| 623 |
<input type="hidden" name="barcode" value="[% c.barcode | html %]" /> |
|
|
| 624 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
648 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
| 625 |
<input type="hidden" name="confirmed" value="1" /> |
|
|
| 626 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
649 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
| 627 |
<button type="submit" name="confirm" class="btn btn-primary"><i class="fa-solid fa-rotate" aria-hidden="true"></i> Renew item</button> |
650 |
<button type="submit" class="btn btn-primary"><i class="fa fa-cancel" aria-hidden="true"></i> Cancel</button> |
| 628 |
</form> |
651 |
</form> |
| 629 |
[% ELSE %] |
652 |
</div> |
| 630 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> |
653 |
[% END # / FOREACH confirm %] |
| 631 |
[% INCLUDE 'csrf-token.inc' %] |
654 |
|
| 632 |
<legend class="sr-only">Renew</legend> |
655 |
[% IF ( nopermission ) %] |
| 633 |
<input type="hidden" name="op" value="cud-renew" /> |
656 |
<!-- This is what is displayed if user doesn't have permission --> |
| 634 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
657 |
<div class="alert alert-warning"> |
| 635 |
<input type="hidden" name="barcode" value="[% c.barcode | html %]" /> |
658 |
<span class="sco-alert-warning nopermission"></span> |
| 636 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
659 |
<h2>Access denied</h2> |
| 637 |
<input type="hidden" name="confirmed" value="1" /> |
660 |
<p>Sorry, this self-checkout station has lost authentication. Please contact the administrator to resolve this problem.</p> |
| 638 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
661 |
</div> |
| 639 |
<button type="submit" class="btn btn-primary"><i class="fa-solid fa-rotate" aria-hidden="true"></i> Renew item</button> |
662 |
[% END %] |
| 640 |
</form> |
|
|
| 641 |
[% END %] |
| 642 |
|
| 643 |
<form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="get"> |
| 644 |
<legend class="sr-only">Cancel</legend> |
| 645 |
<input type="hidden" name="op" value="" /> |
| 646 |
<input type="hidden" name="patronid" value="[% patronid | html %]" /> |
| 647 |
<input type="hidden" name="load_checkouts" value="[% load_checkouts | html %]" /> |
| 648 |
<input type="hidden" name="newissues" value="[% newissues | html %]" /> |
| 649 |
<button type="submit" class="btn btn-primary"><i class="fa fa-cancel" aria-hidden="true"></i> Cancel</button> |
| 650 |
</form> |
| 651 |
</div> |
| 652 |
[% END # / FOREACH confirm %] |
| 653 |
|
| 654 |
[% IF ( nopermission ) %] |
| 655 |
<!-- This is what is displayed if user doesn't have permission --> |
| 656 |
<div class="alert alert-warning"> |
| 657 |
<span class="sco-alert-warning nopermission"></span> |
| 658 |
<h2>Access denied</h2> |
| 659 |
<p>Sorry, this self-checkout station has lost authentication. Please contact the administrator to resolve this problem.</p> |
| 660 |
</div> |
| 661 |
[% END %] |
| 662 |
|
663 |
|
| 663 |
[% IF ( different_ip ) %] |
664 |
[% IF ( different_ip ) %] |
| 664 |
<!-- This is what is displayed if user doesn't have permission --> |
665 |
<!-- This is what is displayed if user doesn't have permission --> |
| 665 |
<div class="alert alert-warning"> |
666 |
<div class="alert alert-warning"> |
| 666 |
<span class="sco-alert-warning sessionlost"></span> |
667 |
<span class="sco-alert-warning sessionlost"></span> |
| 667 |
<h2>Session lost</h2> |
668 |
<h2>Session lost</h2> |
| 668 |
<p>You are accessing self-checkout from a different IP address! please log in again.</p> |
669 |
<p>You are accessing self-checkout from a different IP address! please log in again.</p> |
| 669 |
</div> |
670 |
</div> |
| 670 |
[% END %] |
671 |
[% END %] |
| 671 |
|
672 |
|
| 672 |
[% IF ( invalid_username_or_password ) %] |
673 |
[% IF ( invalid_username_or_password ) %] |
| 673 |
<!-- This is what is displayed if user doesn't have permission --> |
674 |
<!-- This is what is displayed if user doesn't have permission --> |
| 674 |
<div class="alert alert-warning"> |
675 |
<div class="alert alert-warning"> |
| 675 |
<span class="sco-alert-warning notfound"></span> |
676 |
<span class="sco-alert-warning notfound"></span> |
| 676 |
<h2>Record not found</h2> |
677 |
<h2>Record not found</h2> |
| 677 |
<p>Your userid was not found in the database. Please try again.</p> |
678 |
<p>Your userid was not found in the database. Please try again.</p> |
| 678 |
</div> |
679 |
</div> |
| 679 |
[% END %] |
680 |
[% END %] |
| 680 |
|
681 |
|
| 681 |
[% IF ( issued ) %] |
682 |
[% IF ( issued ) %] |
| 682 |
[% IF batch_checkouts_allowed %] |
683 |
[% IF batch_checkouts_allowed %] |
| 683 |
[% FOREACH barcode IN newissues.split(',') %] |
684 |
[% FOREACH barcode IN newissues.split(',') %] |
|
|
685 |
<span class="sco-alert-success issue"></span> |
| 686 |
<div class="alert alert-info"> |
| 687 |
<p>Item checked out <i>([% barcode | html %])</i></p> |
| 688 |
</div> |
| 689 |
[% END %] |
| 690 |
[% ELSE %] |
| 684 |
<span class="sco-alert-success issue"></span> |
691 |
<span class="sco-alert-success issue"></span> |
| 685 |
<div class="alert alert-info"> |
692 |
<div class="alert alert-info"> |
| 686 |
<p>Item checked out <i>([% barcode | html %])</i></p> |
693 |
<p>Item checked out <i>([% newissues.split(',').last | html %])</i></p> |
| 687 |
</div> |
694 |
</div> |
| 688 |
[% END %] |
695 |
[% END %] |
| 689 |
[% ELSE %] |
696 |
[% ELSIF ( renewed ) %] |
| 690 |
<span class="sco-alert-success issue"></span> |
697 |
<span class="sco-alert-success renew"></span> |
| 691 |
<div class="alert alert-info"> |
698 |
<div class="alert alert-info"> |
| 692 |
<p>Item checked out <i>([% newissues.split(',').last | html %])</i></p> |
699 |
<p>Item renewed <i>([% barcode | html %])</i></p> |
|
|
700 |
</div> |
| 701 |
[% ELSIF ( renewed == 0) %] |
| 702 |
<span class="sco-alert-warning renew"></span> |
| 703 |
<div class="alert alert-info"> |
| 704 |
<p>Item not renewed</p> |
| 705 |
</div> |
| 706 |
[% ELSIF ( returned == 0 ) %] |
| 707 |
<span class="sco-alert-warning return"></span> |
| 708 |
<div class="alert alert-info"> |
| 709 |
<p>Item not checked in: please see circulation staff for assistance</p> |
| 710 |
</div> |
| 711 |
[% ELSIF ( returned == 1 ) %] |
| 712 |
<span class="sco-alert-success return"></span> |
| 713 |
<div class="alert alert-info"> |
| 714 |
<p>Item checked in <i>([% barcode | html %])</i></p> |
| 693 |
</div> |
715 |
</div> |
| 694 |
[% END %] |
716 |
[% END %] |
| 695 |
[% ELSIF ( renewed ) %] |
|
|
| 696 |
<span class="sco-alert-success renew"></span> |
| 697 |
<div class="alert alert-info"> |
| 698 |
<p>Item renewed <i>([% barcode | html %])</i></p> |
| 699 |
</div> |
| 700 |
[% ELSIF ( renewed == 0) %] |
| 701 |
<span class="sco-alert-warning renew"></span> |
| 702 |
<div class="alert alert-info"> |
| 703 |
<p>Item not renewed</p> |
| 704 |
</div> |
| 705 |
[% ELSIF ( returned == 0 ) %] |
| 706 |
<span class="sco-alert-warning return"></span> |
| 707 |
<div class="alert alert-info"> |
| 708 |
<p>Item not checked in: please see circulation staff for assistance</p> |
| 709 |
</div> |
| 710 |
[% ELSIF ( returned == 1 ) %] |
| 711 |
<span class="sco-alert-success return"></span> |
| 712 |
<div class="alert alert-info"> |
| 713 |
<p>Item checked in <i>([% barcode | html %])</i></p> |
| 714 |
</div> |
| 715 |
[% END %] |
717 |
[% END %] |
| 716 |
[% END %] |
718 |
</div> |
| 717 |
- |
|
|