View | Details | Raw Unified | Return to bug 20988
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/enqueue_koc.tt (-7 / +8 lines)
Lines 1-31 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Circulation &rsaquo; Add offline circulations to queue</title>
3
<title>[% t('Koha › Circulation › Add offline circulations to queue') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
<body id="ocirc_enqueue_koc" class="circ ocirc">
6
<body id="ocirc_enqueue_koc" class="circ ocirc">
6
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'circ-search.inc' %]
8
[% INCLUDE 'circ-search.inc' %]
8
9
9
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; <a href="/cgi-bin/koha/offline_circ/process_koc.pl">Add offline circulations to queue</a></div>
10
<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> › <a href="/cgi-bin/koha/offline_circ/process_koc.pl">[% t('Add offline circulations to queue') %]</a></div>
10
11
11
<div class="main container-fluid">
12
<div class="main container-fluid">
12
    <div class="row">
13
    <div class="row">
13
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
14
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
14
15
15
  <h2>Koha offline circulation</h2>
16
  <h2>[% t('Koha offline circulation') %]</h2>
16
  <p>Your file was processed.</p>
17
  <p>[% t('Your file was processed.') %]</p>
17
18
18
[% FOREACH message IN messages %]
19
[% FOREACH message IN messages %]
19
  [% IF ( message.message ) %]
20
  [% IF ( message.message ) %]
20
      [% IF ( message.ERROR_file_version ) %]
21
      [% IF ( message.ERROR_file_version ) %]
21
          <div class="dialog alert"><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>
22
          <div class="dialog alert"><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>
22
      [% END %]
23
      [% END %]
23
  [% END %]
24
  [% END %]
24
[% END %]
25
[% END %]
25
26
26
<p><a href="process_koc.pl">Upload another KOC file</a></p>
27
<p><a href="process_koc.pl">[% t('Upload another KOC file') %]</a></p>
27
28
28
<p><a href="list.pl">View pending offline circulation actions</a></p>
29
<p><a href="list.pl">[% t('View pending offline circulation actions') %]</a></p>
29
30
30
    </div>
31
    </div>
31
</div>
32
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/list.tt (-14 / +15 lines)
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 &rsaquo; Circulation &rsaquo; Offline circulation</title>
5
    <title>[% t('Koha › Circulation › Offline circulation') %]</title>
5
    [% INCLUDE "doc-head-close.inc" %]
6
    [% INCLUDE "doc-head-close.inc" %]
6
</head>
7
</head>
7
8
Lines 9-21 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> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Offline circulation</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> [% t('› Offline circulation') %]</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
        <h2>Offline circulation</h2>
19
        <h2>[% t('Offline circulation') %]</h2>
19
20
20
	    [% IF ( pending_operations ) %]
21
	    [% IF ( pending_operations ) %]
21
22
Lines 25-36 Link Here
25
	        <table id="operations">
26
	        <table id="operations">
26
	            <thead>
27
	            <thead>
27
		            <tr>
28
		            <tr>
28
		                <th>&nbsp;</th>
29
		                <th> </th>
29
			            <th>Date</th>
30
			            <th>[% t('Date') %]</th>
30
			            <th>Action</th>
31
			            <th>[% t('Action') %]</th>
31
			            <th>Barcode</th>
32
			            <th>[% t('Barcode') %]</th>
32
                                    <th>Card number</th>
33
                                    <th>[% t('Card number') %]</th>
33
                                    <th>Amount</th>
34
                                    <th>[% t('Amount') %]</th>
34
		            </tr>
35
		            </tr>
35
		        </thead>
36
		        </thead>
36
		        <tbody>
37
		        <tbody>
Lines 41-51 Link Here
41
                            <td>
42
                            <td>
42
                                [% SWITCH ( operation.action ) -%]
43
                                [% SWITCH ( operation.action ) -%]
43
                                    [%   CASE "issue" -%]
44
                                    [%   CASE "issue" -%]
44
                                        Check out
45
                                        [% t('Check out') %]
45
                                    [%   CASE "return" -%]
46
                                    [%   CASE "return" -%]
46
                                        Check in
47
                                        [% t('Check in') %]
47
                                    [%   CASE "payment" -%]
48
                                    [%   CASE "payment" -%]
48
                                        Payment
49
                                        [% t('Payment') %]
49
                                    [%   CASE # default case -%]
50
                                    [%   CASE # default case -%]
50
                                        [% operation.action %]
51
                                        [% operation.action %]
51
                                [% END -%]
52
                                [% END -%]
Lines 72-78 Link Here
72
		        </tbody>
73
		        </tbody>
73
	        </table>
74
	        </table>
74
75
75
            <p id="actions">For the selected operations:
76
            <p id="actions">[% t('For the selected operations:') %]
76
            <input type="button" id="process" value="Process" />
77
            <input type="button" id="process" value="Process" />
77
            <input type="button" id="delete" value="Delete" /></p>
78
            <input type="button" id="delete" value="Delete" /></p>
78
79
Lines 80-86 Link Here
80
81
81
        [% ELSE %]
82
        [% ELSE %]
82
83
83
            <p>There are no pending offline operations.</p>
84
            <p>[% t('There are no pending offline operations.') %]</p>
84
85
85
        [% END %]
86
        [% END %]
86
87
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt (-16 / +16 lines)
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 &rsaquo; Circulation &rsaquo; 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> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; [% IF ( transactions_loaded ) %] <a href="/cgi-bin/koha/offline_circ/process_koc.pl">Offline circulation file upload</a> &rsaquo; 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
- 

Return to bug 20988