Lines 1-7
Link Here
|
|
|
1 |
[% PROCESS 'i18n.inc' %] |
1 |
[% USE Asset %] |
2 |
[% USE Asset %] |
2 |
[% SET footerjs = 1 %] |
3 |
[% SET footerjs = 1 %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
<title>Koha › Circulation › Offline circulation file upload</title> |
5 |
<title>[% t('Koha › Circulation › Offline circulation file upload') %]</title> |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
</head> |
7 |
</head> |
7 |
|
8 |
|
Lines 9-49
Link Here
|
9 |
[% INCLUDE 'header.inc' %] |
10 |
[% INCLUDE 'header.inc' %] |
10 |
[% INCLUDE 'circ-search.inc' %] |
11 |
[% INCLUDE 'circ-search.inc' %] |
11 |
|
12 |
|
12 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › [% IF ( transactions_loaded ) %] <a href="/cgi-bin/koha/offline_circ/process_koc.pl">Offline circulation file upload</a> › Results[% ELSE %] Offline circulation file upload[% END %]</div> |
13 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">[% t('Circulation') %]</a> › [% IF ( transactions_loaded ) %] <a href="/cgi-bin/koha/offline_circ/process_koc.pl">[% t('Offline circulation file upload') %]</a> [% t('› Results') %][% ELSE %] [% t('Offline circulation file upload') %][% END %]</div> |
13 |
|
14 |
|
14 |
<div class="main container-fluid"> |
15 |
<div class="main container-fluid"> |
15 |
<div class="row"> |
16 |
<div class="row"> |
16 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
17 |
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> |
17 |
|
18 |
|
18 |
[% IF ( transactions_loaded ) %] |
19 |
[% IF ( transactions_loaded ) %] |
19 |
<h2>Koha offline circulation</h2> |
20 |
<h2>[% t('Koha offline circulation') %]</h2> |
20 |
<p>Your data was processed. Here are the results:</p> |
21 |
<p>[% t('Your data was processed. Here are the results:') %]</p> |
21 |
[% FOREACH message IN messages %] |
22 |
[% FOREACH message IN messages %] |
22 |
[% IF ( message.message ) %] |
23 |
[% IF ( message.message ) %] |
23 |
<div class="dialog alert"> |
24 |
<div class="dialog alert"> |
24 |
[% IF ( message.ERROR_file_version ) %]<p>Warning: This file is version [% message.upload_version %], but I only know how to import version [% message.current_version %]. I'll try my best.</p>[% END %] |
25 |
[% IF ( message.ERROR_file_version ) %]<p>[% t('Warning: This file is version') %] [% message.upload_version %][% t(', but I only know how to import version') %] [% message.current_version %][% t('. I\'ll try my best.') %]</p>[% END %] |
25 |
</div> |
26 |
</div> |
26 |
[% END %] |
27 |
[% END %] |
27 |
[% IF ( message.ERROR_no_borrower_from_item ) %]<p>Warning: Unable to determine patron from item barcode ([% message.badbarcode %]). Cannot check in.</p>[% END %] |
28 |
[% IF ( message.ERROR_no_borrower_from_item ) %]<p>[% t('Warning: Unable to determine patron from item barcode (') %][% message.badbarcode %][% t('). Cannot check in.') %]</p>[% END %] |
28 |
[% IF ( message.issue ) %]<p>Checked out <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %]) to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] |
29 |
[% IF ( message.issue ) %]<p>[% t('Checked out') %] <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %][% t(') to') %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] |
29 |
[% IF ( message.renew ) %]<p>Renewed <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %]) for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] |
30 |
[% IF ( message.renew ) %]<p>[% t('Renewed') %] <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %][% t(') for') %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] |
30 |
[% IF ( message.return ) %]<p>Checked in <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %]) from <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] |
31 |
[% IF ( message.return ) %]<p>[% t('Checked in') %] <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% message.biblionumber %]">[% message.title |html %]</a> ([% message.barcode %][% t(') from') %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] |
31 |
[% IF ( message.payment ) %]<p>Accepted payment ([% message.amount %]) from <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] |
32 |
[% IF ( message.payment ) %]<p>[% t('Accepted payment (') %][% message.amount %][% t(') from') %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% message.borrowernumber %]">[% message.firstname %] [% message.surname %]</a> ([% message.cardnumber %]): [% message.datetime %]</p>[% END %] |
32 |
[% END %] |
33 |
[% END %] |
33 |
[% ELSE %] |
34 |
[% ELSE %] |
34 |
<h2>Upload offline circulation data</h2> |
35 |
<h2>[% t('Upload offline circulation data') %]</h2> |
35 |
|
36 |
|
36 |
<div id="fileuploadform"> |
37 |
<div id="fileuploadform"> |
37 |
<form method="post" action="/cgi-bin/koha/offline_circ/process_koc.pl" enctype="multipart/form-data" class="validated"> |
38 |
<form method="post" action="/cgi-bin/koha/offline_circ/process_koc.pl" enctype="multipart/form-data" class="validated"> |
38 |
<fieldset class="brief"> |
39 |
<fieldset class="brief"> |
39 |
<ol><li><label for="fileToUpload">Choose .koc file: </label> |
40 |
<ol><li><label for="fileToUpload">[% t('Choose .koc file:') %] </label> |
40 |
<input class="required" required="required" type="file" id="fileToUpload" size="50" name="fileToUpload" /> |
41 |
<input class="required" required="required" type="file" id="fileToUpload" size="50" name="fileToUpload" /> |
41 |
<span class="required">Required</span> |
42 |
<span class="required">[% t('Required') %]</span> |
42 |
</li></ol> |
43 |
</li></ol> |
43 |
<fieldset class="action"><input type="button" class="submit" value="Upload file" id="upload_file" /></fieldset> |
44 |
<fieldset class="action"><input type="button" class="submit" value="Upload file" id="upload_file" /></fieldset> |
44 |
</fieldset> |
45 |
</fieldset> |
45 |
</form> |
46 |
</form> |
46 |
<div id="fileuploadstatus" class="progress_panel" style="display:none">Upload progress: <progress id="fileuploadprogress" max="100" value="0"></progress> <span class="fileuploadpercent">0</span>%</div> |
47 |
<div id="fileuploadstatus" class="progress_panel" style="display:none">[% t('Upload progress:') %] <progress id="fileuploadprogress" max="100" value="0"></progress> <span class="fileuploadpercent">[% t('0') %]</span>%</div> |
47 |
<div id="fileuploadfailed" style="display:none"></div> |
48 |
<div id="fileuploadfailed" style="display:none"></div> |
48 |
</div> |
49 |
</div> |
49 |
|
50 |
|
Lines 58-64
Link Here
|
58 |
<input type="hidden" name="completedJobID" id="completedJobID" value="" /> |
59 |
<input type="hidden" name="completedJobID" id="completedJobID" value="" /> |
59 |
<!-- <input type="submit" value="Apply directly" id="mainformsubmit" /> --> |
60 |
<!-- <input type="submit" value="Apply directly" id="mainformsubmit" /> --> |
60 |
<!-- FIXME: Job freezes when submitted, disabling button as a temporary mitigation --> |
61 |
<!-- FIXME: Job freezes when submitted, disabling button as a temporary mitigation --> |
61 |
<div id="jobstatus" style="display:none">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div> |
62 |
<div id="jobstatus" style="display:none">[% t('Job progress:') %] <div id="jobprogress"></div> <span id="jobprogresspercent">[% t('0') %]</span>%</div> |
62 |
<div id="jobfailed" style="display:none"></div> |
63 |
<div id="jobfailed" style="display:none"></div> |
63 |
</form> |
64 |
</form> |
64 |
[% END %] |
65 |
[% END %] |
65 |
- |
|
|