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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt (-29 / +30 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Price %]
3
[% USE Price %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Acquisitions</title>
7
<title>[% t('Koha › Acquisitions') %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") %]
10
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") %]
Lines 13-19 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'acquisitions-search.inc' %]
15
[% INCLUDE 'acquisitions-search.inc' %]
15
16
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Acquisitions</div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> [% t('› Acquisitions') %]</div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
20
Lines 23-44 Link Here
23
24
24
[% INCLUDE 'acquisitions-toolbar.inc' %]
25
[% INCLUDE 'acquisitions-toolbar.inc' %]
25
26
26
<h1>Acquisitions</h1>
27
<h1>[% t('Acquisitions') %]</h1>
27
    [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
28
    [% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
28
    [% UNLESS ( loop_budget ) %]
29
    [% UNLESS ( loop_budget ) %]
29
        [% IF ( CAN_user_acquisition_period_manage ) %]
30
        [% IF ( CAN_user_acquisition_period_manage ) %]
30
        <div class="dialog alert"><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">You must define a budget in Administration</a></div>
31
        <div class="dialog alert"><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">[% t('You must define a budget in Administration') %]</a></div>
31
        [% ELSE %]
32
        [% ELSE %]
32
        <div class="dialog alert">Your administrator must define a budget in Administration</div>
33
        <div class="dialog alert">[% t('Your administrator must define a budget in Administration') %]</div>
33
        [% END %]
34
        [% END %]
34
    [% END %]
35
    [% END %]
35
<div class="yui-g">
36
<div class="yui-g">
36
<div class="yui-u first">
37
<div class="yui-u first">
37
<div id="acqui_acqui_home_order">
38
<div id="acqui_acqui_home_order">
38
    <fieldset>
39
    <fieldset>
39
        <legend>Manage orders</legend>
40
        <legend>[% t('Manage orders') %]</legend>
40
        <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
41
        <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
41
            <p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
42
            <p><label for="supplierpage">[% t('Vendor:') %] </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
42
            <input type="submit" value="Search" />
43
            <input type="submit" value="Search" />
43
            </p>
44
            </p>
44
        </form>
45
        </form>
Lines 50-57 Link Here
50
<div class="yui-u">
51
<div class="yui-u">
51
    <div id="acqui_acqui_home_suggestions">
52
    <div id="acqui_acqui_home_suggestions">
52
        <fieldset>
53
        <fieldset>
53
        <legend>Pending suggestions</legend>
54
        <legend>[% t('Pending suggestions') %]</legend>
54
            <p>[% suggestions_count %] suggestions waiting. <a href="/cgi-bin/koha/suggestion/suggestion.pl#ASKED">Manage suggestions</a>.</p>
55
            <p>[% suggestions_count %] [% t('suggestions waiting.') %] <a href="/cgi-bin/koha/suggestion/suggestion.pl#ASKED">[% t('Manage suggestions') %]</a>.</p>
55
        </fieldset>
56
        </fieldset>
56
    </div>
57
    </div>
57
</div>
58
</div>
Lines 61-96 Link Here
61
62
62
[% IF ( loop_budget ) %]
63
[% IF ( loop_budget ) %]
63
64
64
            <h3>All available funds[% IF LoginBranchname %] for [% LoginBranchname %][% END %]</h3>
65
            <h3>[% t('All available funds') %][% IF LoginBranchname %] [% t('for') %] [% LoginBranchname %][% END %]</h3>
65
66
66
    <div id="BudgetsAndFunds">
67
    <div id="BudgetsAndFunds">
67
    <table id="accounts">
68
    <table id="accounts">
68
        <caption>
69
        <caption>
69
          <span class="actions"><a href="#" id="expand_all">Expand all</a>
70
          <span class="actions"><a href="#" id="expand_all">[% t('Expand all') %]</a>
70
          | <a href="#" id="collapse_all">Collapse all</a>
71
          | <a href="#" id="collapse_all">[% t('Collapse all') %]</a>
71
          | <a href="#" id="hide_inactive">Hide inactive budgets</a>
72
          | <a href="#" id="hide_inactive">[% t('Hide inactive budgets') %]</a>
72
          | <a href="#" id="show_inactive">Show inactive budgets</a></span>
73
          | <a href="#" id="show_inactive">[% t('Show inactive budgets') %]</a></span>
73
        </caption>
74
        </caption>
74
75
75
        <thead>
76
        <thead>
76
        <tr>
77
        <tr>
77
            <th>Active</th>
78
            <th>[% t('Active') %]</th>
78
            <th>Budget period description</th>
79
            <th>[% t('Budget period description') %]</th>
79
            <th>Fund code</th>
80
            <th>[% t('Fund code') %]</th>
80
            <th>Fund name</th>
81
            <th>[% t('Fund name') %]</th>
81
            <th>Owner</th>
82
            <th>[% t('Owner') %]</th>
82
            <th>Library</th>
83
            <th>[% t('Library') %]</th>
83
            <th>Amount</th>
84
            <th>[% t('Amount') %]</th>
84
            <th>Ordered</th>
85
            <th>[% t('Ordered') %]</th>
85
            <th>Spent</th>
86
            <th>[% t('Spent') %]</th>
86
            <th>Total available</th>
87
            <th>[% t('Total available') %]</th>
87
        </tr>
88
        </tr>
88
        </thead>
89
        </thead>
89
        <tfoot id="funds_total">
90
        <tfoot id="funds_total">
90
        <tr>
91
        <tr>
91
            <th></th>
92
            <th></th>
92
            <th></th>
93
            <th></th>
93
            <th colspan="4">Total</th>
94
            <th colspan="4">[% t('Total') %]</th>
94
            <th class="data"></th>
95
            <th class="data"></th>
95
            <th class="data"></th>
96
            <th class="data"></th>
96
            <th class="data"></th>
97
            <th class="data"></th>
Lines 106-112 Link Here
106
            [% END %]
107
            [% END %]
107
108
108
                <td>[% loop_budge.budget_period_active %]</td>
109
                <td>[% loop_budge.budget_period_active %]</td>
109
                <td>Budget [% loop_budge.budget_period_description %] [id=[% loop_budge.budget_period_id %]][% UNLESS loop_budge.budget_period_active %] (inactive)[% END %]</td>
110
                <td>[% t('Budget') %] [% loop_budge.budget_period_description %] [% t('[id=') %][% loop_budge.budget_period_id %]][% UNLESS loop_budge.budget_period_active %] [% t('(inactive)') %][% END %]</td>
110
                <td>
111
                <td>
111
                    [% IF ( CAN_user_acquisition_budget_manage ) %]
112
                    [% IF ( CAN_user_acquisition_budget_manage ) %]
112
                        <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
113
                        <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% loop_budge.budget_period_id %]">[% loop_budge.budget_code %]</a>
Lines 118-124 Link Here
118
                <td>[% IF ( loop_budge.budget_owner ) %]
119
                <td>[% IF ( loop_budge.budget_owner ) %]
119
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner.borrowernumber %]">[% loop_budge.budget_owner.surname %], [% loop_budge.budget_owner.firstname %]</a>
120
                        <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner.borrowernumber %]">[% loop_budge.budget_owner.surname %], [% loop_budge.budget_owner.firstname %]</a>
120
                    [% ELSE %]
121
                    [% ELSE %]
121
                        &nbsp;
122
                         
122
                    [% END %]
123
                    [% END %]
123
                </td>
124
                </td>
124
                <td>[% Branches.GetName( loop_budge.budget_branchcode ) %]</td>
125
                <td>[% Branches.GetName( loop_budge.budget_branchcode ) %]</td>
Lines 130-136 Link Here
130
                    [% END %]
131
                    [% END %]
131
                </td>
132
                </td>
132
                <td class="data">
133
                <td class="data">
133
                    <a href="ordered.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">
134
                    <a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">
134
                    [% IF loop_budge.budget_parent_id %]
135
                    [% IF loop_budge.budget_parent_id %]
135
                        [% loop_budge.budget_ordered | $Price %]
136
                        [% loop_budge.budget_ordered | $Price %]
136
                    [% ELSE %]
137
                    [% ELSE %]
Lines 139-145 Link Here
139
                    </a>
140
                    </a>
140
                </td>
141
                </td>
141
                <td class="data">
142
                <td class="data">
142
                    <a href="spent.pl?fund=[% loop_budge.budget_id %]&amp;fund_code=[% loop_budge.budget_code %]">
143
                    <a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">
143
                    [% IF loop_budge.budget_parent_id %]
144
                    [% IF loop_budge.budget_parent_id %]
144
                        [% loop_budge.budget_spent | $Price %]
145
                        [% loop_budge.budget_spent | $Price %]
145
                    [% ELSE %]
146
                    [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorder.tt (-7 / +8 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE "doc-head-open.inc" %]
2
[% INCLUDE "doc-head-open.inc" %]
2
<title>Koha &rsaquo; Acquisition &rsaquo; Add order</title>
3
<title>[% t('Koha › Acquisition › Add order') %]</title>
3
[% INCLUDE "doc-head-close.inc" %]
4
[% INCLUDE "doc-head-close.inc" %]
4
</head>
5
</head>
5
6
Lines 17-33 Link Here
17
          <input type="hidden" name="confirm_budget_exceeding" value="1" />
18
          <input type="hidden" name="confirm_budget_exceeding" value="1" />
18
          <div class="dialog alert">
19
          <div class="dialog alert">
19
            [% IF (budget_exceeded) %]
20
            [% IF (budget_exceeded) %]
20
              <p>Warning! Order total amount exceeds allowed budget.</p>
21
              <p>[% t('Warning! Order total amount exceeds allowed budget.') %]</p>
21
            [% END %]
22
            [% END %]
22
            [% IF (encumbrance_exceeded) %]
23
            [% IF (encumbrance_exceeded) %]
23
              <p>Warning! You will exceed [% encumbrance %]% of your fund.</p>
24
              <p>[% t('Warning! You will exceed') %] [% encumbrance %][% t('% of your fund.') %]</p>
24
            [% END %]
25
            [% END %]
25
            [% IF (expenditure_exceeded) %]
26
            [% IF (expenditure_exceeded) %]
26
              <p>Warning! You will exceed maximum limit ([% expenditure %][% IF (currency) %] [% currency %][% END %]) for your fund.</p>
27
              <p>[% t('Warning! You will exceed maximum limit (') %][% expenditure %][% IF (currency) %] [% currency %][% END %][% t(') for your fund.') %]</p>
27
            [% END %]
28
            [% END %]
28
            <p>Do you want to confirm this order?</p>
29
            <p>[% t('Do you want to confirm this order?') %]</p>
29
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, I confirm</button>
30
            <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> [% t('Yes, I confirm') %]</button>
30
            <button type="button" class="deny" onclick="window.location.href = '[% referer %]'"><i class="fa fa-fw fa-remove"></i> No, I don't confirm</button>
31
            <button type="button" class="deny" onclick="window.location.href = '[% referer %]'"><i class="fa fa-fw fa-remove"></i> [% t('No, I don\'t confirm') %]</button>
31
          </div>
32
          </div>
32
        </form>
33
        </form>
33
      [% END %]
34
      [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-86 / +87 lines)
Lines 1-13 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Acquisitions &rsaquo; Order staged MARC records
7
<title>[% t('Koha › Acquisitions › Order staged MARC records') %]
7
[% IF ( batch_details ) %]
8
[% IF ( batch_details ) %]
8
 &rsaquo; Batch [% import_batch_id %]
9
 [% t('› Batch') %] [% import_batch_id %]
9
[% ELSE %]
10
[% ELSE %]
10
 &rsaquo; Batch list
11
 [% t('› Batch list') %]
11
[% END %]
12
[% END %]
12
</title>
13
</title>
13
[% Asset.css("css/datatables.css") %]
14
[% Asset.css("css/datatables.css") %]
Lines 18-58 Link Here
18
<body id="acq_addorderiso2709" class="acq">
19
<body id="acq_addorderiso2709" class="acq">
19
[% INCLUDE 'header.inc' %]
20
[% INCLUDE 'header.inc' %]
20
[% INCLUDE 'acquisitions-search.inc' %]
21
[% INCLUDE 'acquisitions-search.inc' %]
21
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo;  Add orders from iso2709 file</div>
22
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('Basket') %] [% basketno %]</a> ›  [% t('Add orders from iso2709 file') %]</div>
22
<div id="doc3" class="yui-t2">
23
<div id="doc3" class="yui-t2">
23
   <div id="bd">
24
   <div id="bd">
24
       <div id="yui-main">
25
       <div id="yui-main">
25
           <div class="yui-b">
26
           <div class="yui-b">
26
             [% IF ( allmatch ) %]<div class="dialog alert">
27
             [% IF ( allmatch ) %]<div class="dialog alert">
27
              <h4>No records imported</h4>
28
              <h4>[% t('No records imported') %]</h4>
28
             No record have been imported because they all match an existing record in your catalog.<br />You'll have to treat them individually.
29
             [% t('No record have been imported because they all match an existing record in your catalog.') %]<br />[% t('You\'ll have to treat them individually.') %]
29
             </div>
30
             </div>
30
             [% END %]
31
             [% END %]
31
32
32
             [% IF ( batch_details ) %]
33
             [% IF ( batch_details ) %]
33
                <h1>Add orders from [% comments %]
34
                <h1>[% t('Add orders from') %] [% comments %]
34
                    ([% file_name %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %])
35
                    ([% file_name %] [% t('staged on') %] [% upload_timestamp | $KohaDates with_hours => 1 %])
35
                </h1>
36
                </h1>
36
                <form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform">
37
                <form action="/cgi-bin/koha/acqui/addorderiso2709.pl" method="post" id="Aform">
37
                <div id="tabs" class="toptabs">
38
                <div id="tabs" class="toptabs">
38
                  <ul>
39
                  <ul>
39
                    <li><a href="#records_to_import">Select to import</a></li>
40
                    <li><a href="#records_to_import">[% t('Select to import') %]</a></li>
40
                    <li><a href="#items_info" class="items_info">Item information</a></li>
41
                    <li><a href="#items_info" class="items_info">[% t('Item information') %]</a></li>
41
                    <li><a href="#accounting_details">Default accounting details</a></li>
42
                    <li><a href="#accounting_details">[% t('Default accounting details') %]</a></li>
42
                  </ul>
43
                  </ul>
43
44
44
                  <div id="records_to_import">
45
                  <div id="records_to_import">
45
                    <div id="searchheader">
46
                    <div id="searchheader">
46
                        <div>
47
                        <div>
47
                            <span class="checkall"><a id="checkAll" href="#">Select all</a></span>
48
                            <span class="checkall"><a id="checkAll" href="#">[% t('Select all') %]</a></span>
48
                            |
49
                            |
49
                            <span class="uncheckall"><a id="unCheckAll" href="#">Clear all</a></span>
50
                            <span class="uncheckall"><a id="unCheckAll" href="#">[% t('Clear all') %]</a></span>
50
                            |
51
                            |
51
                            <span>
52
                            <span>
52
                                <label for="matcher_id">Matching:</label>
53
                                <label for="matcher_id">[% t('Matching:') %]</label>
53
                                    <select name="matcher_id" id="matcher_id">
54
                                    <select name="matcher_id" id="matcher_id">
54
                                        <option value="_TITLE_AUTHOR_">Title and author</option>
55
                                        <option value="_TITLE_AUTHOR_">[% t('Title and author') %]</option>
55
                                        <option value="">Do not look for matching records</option>
56
                                        <option value="">[% t('Do not look for matching records') %]</option>
56
                                        [% FOREACH available_matcher IN available_matchers %]
57
                                        [% FOREACH available_matcher IN available_matchers %]
57
                                            [% IF ( available_matcher.code == current_matcher_code ) %]
58
                                            [% IF ( available_matcher.code == current_matcher_code ) %]
58
                                                <option value="[% available_matcher.matcher_id %]" selected="selected">
59
                                                <option value="[% available_matcher.matcher_id %]" selected="selected">
Lines 68-80 Link Here
68
                            </span>
69
                            </span>
69
                            |
70
                            |
70
                            <span>
71
                            <span>
71
                                <label for="showallbudgets" style="float:none;width:auto;">&nbsp;Show inactive funds:</label>
72
                                <label for="showallbudgets" style="float:none;width:auto;">[% t(' Show inactive funds:') %]</label>
72
                                <input type="checkbox" id="showallbudgets" />
73
                                <input type="checkbox" id="showallbudgets" />
73
                            </span>
74
                            </span>
74
                        </div>
75
                        </div>
75
                    </div>
76
                    </div>
76
77
77
                        <input type="hidden" name="op" value="import_records"/>
78
                        <input type="hidden" name="op" value="import_records" />
78
                        <input type="hidden" name="basketno" value="[% basketno %]" />
79
                        <input type="hidden" name="basketno" value="[% basketno %]" />
79
                        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
80
                        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
80
                        <input type="hidden" name="import_batch_id" value="[%import_batch_id %]" />
81
                        <input type="hidden" name="import_batch_id" value="[%import_batch_id %]" />
Lines 88-94 Link Here
88
                              <span class="citation">[% biblio.citation %]</span>
89
                              <span class="citation">[% biblio.citation %]</span>
89
                            </label>
90
                            </label>
90
                            <span class="links" style="font-weight: normal;">
91
                            <span class="links" style="font-weight: normal;">
91
                              ( <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% biblio.import_record_id %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% biblio.import_record_id %]" class="previewData">Card</a> | <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;breedingid=[% biblio.import_record_id %]&amp;import_batch_id=[% biblio.import_batch_id %]&amp;biblionumber=[% biblio.match_biblionumber %]">Add order</a> )
92
                              ( <a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% biblio.import_record_id %]" class="previewData">[% t('MARC') %]</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% biblio.import_record_id %]" class="previewData">[% t('Card') %]</a> | <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&breedingid=[% biblio.import_record_id %]&import_batch_id=[% biblio.import_batch_id %]&biblionumber=[% biblio.match_biblionumber %]">[% t('Add order') %]</a> )
92
                            </span>
93
                            </span>
93
                          </legend>
94
                          </legend>
94
                          <div style="float:left">
95
                          <div style="float:left">
Lines 96-144 Link Here
96
                            <li class="status">
97
                            <li class="status">
97
                              <span class="match">
98
                              <span class="match">
98
                                [% IF ( biblio_lis.overlay_status == 'no_match' ) %]
99
                                [% IF ( biblio_lis.overlay_status == 'no_match' ) %]
99
                                    No match
100
                                    [% t('No match') %]
100
                                [% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %]
101
                                [% ELSIF ( biblio_lis.overlay_status == 'match_applied' ) %]
101
                                    Match applied
102
                                    [% t('Match applied') %]
102
                                [% ELSIF ( biblio_lis.overlay_status == 'auto_match' ) %]
103
                                [% ELSIF ( biblio_lis.overlay_status == 'auto_match' ) %]
103
                                    Match found
104
                                    [% t('Match found') %]
104
                                [% ELSE %]
105
                                [% ELSE %]
105
                                    [% biblio_lis.overlay_status %]
106
                                    [% biblio_lis.overlay_status %]
106
                                [% END %]
107
                                [% END %]
107
                                [% IF ( biblio.match_biblionumber ) %]
108
                                [% IF ( biblio.match_biblionumber ) %]
108
                                  Matches biblio [% biblio.match_biblionumber %] (score = [% biblio.match_score %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.match_biblionumber %]">[% biblio.match_citation %]</a>
109
                                  [% t('Matches biblio') %] [% biblio.match_biblionumber %] [% t('(score =') %] [% biblio.match_score %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.match_biblionumber %]">[% biblio.match_citation %]</a>
109
                                [% END %]
110
                                [% END %]
110
                              </span>
111
                              </span>
111
                            </li>
112
                            </li>
112
                            <li class="quantity">
113
                            <li class="quantity">
113
                                <label for="quantity_record_[% biblio.import_record_id %]" class="required">Quantity: </label>
114
                                <label for="quantity_record_[% biblio.import_record_id %]" class="required">[% t('Quantity:') %] </label>
114
                                <input id="quantity_record_[% biblio.import_record_id %]" type="text" value="[% biblio.quantity.length ? biblio.quantity : 1 %]" name="quantity" />
115
                                <input id="quantity_record_[% biblio.import_record_id %]" type="text" value="[% biblio.quantity.length ? biblio.quantity : 1 %]" name="quantity" />
115
                            </li>
116
                            </li>
116
                            <li class="price">
117
                            <li class="price">
117
                                <label for="price_record_[% biblio.import_record_id %]">Price: </label>
118
                                <label for="price_record_[% biblio.import_record_id %]">[% t('Price:') %] </label>
118
                                <input id="price_record_[% biblio.import_record_id %]" type="text" value="[% biblio.price %]" name="price" />
119
                                <input id="price_record_[% biblio.import_record_id %]" type="text" value="[% biblio.price %]" name="price" />
119
                            </li>
120
                            </li>
120
                            <li class="discount">
121
                            <li class="discount">
121
                                <label for="discount_record_[% biblio.import_record_id %]">Discount: </label>
122
                                <label for="discount_record_[% biblio.import_record_id %]">[% t('Discount:') %] </label>
122
                                <input id="discount_record_[% biblio.import_record_id %]" type="text" value="[% biblio.discount %]" name="discount" size="6" /> %
123
                                <input id="discount_record_[% biblio.import_record_id %]" type="text" value="[% biblio.discount %]" name="discount" size="6" /> %
123
                                (If empty, discount rate from vendor will be used)
124
                                [% t('(If empty, discount rate from vendor will be used)') %]
124
                            </li>
125
                            </li>
125
                            <li class="budget">
126
                            <li class="budget">
126
                                <label for="fund_record_[% biblio.import_record_id %]">Fund: </label>
127
                                <label for="fund_record_[% biblio.import_record_id %]">[% t('Fund:') %] </label>
127
                                [% IF ( close ) %]
128
                                [% IF ( close ) %]
128
                                  <input type="hidden" size="20" name="budget_id" value="[% budget_id %]" />[% Budget_name %]
129
                                  <input type="hidden" size="20" name="budget_id" value="[% budget_id %]" />[% Budget_name %]
129
                                [% ELSE %]
130
                                [% ELSE %]
130
                                  <select id="fund_record_[% biblio.import_record_id %]" size="1" name="budget_id">
131
                                  <select id="fund_record_[% biblio.import_record_id %]" size="1" name="budget_id">
131
                                    <option value="">Select a fund</option>
132
                                    <option value="">[% t('Select a fund') %]</option>
132
                                    [% FOREACH budget IN budget_loop %]
133
                                    [% FOREACH budget IN budget_loop %]
133
                                        [% IF ( budget.b_id == biblio.budget_id ) %]
134
                                        [% IF ( budget.b_id == biblio.budget_id ) %]
134
                                          [% IF budget.b_active %]
135
                                          [% IF budget.b_active %]
135
                                            <option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %]</option>
136
                                            <option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %]</option>
136
                                          [% ELSE %]
137
                                          [% ELSE %]
137
                                            <option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %] (inactive)</option>
138
                                            <option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]" selected="selected">[% budget.b_txt %] [% t('(inactive)') %]</option>
138
                                          [% END %]
139
                                          [% END %]
139
                                        [% ELSE %]
140
                                        [% ELSE %]
140
                                            [% IF budget.b_active %]<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option>
141
                                            [% IF budget.b_active %]<option value="[% budget.b_id %]" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %]</option>
141
                                            [% ELSE %]<option value="[% budget.b_id %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %] (inactive)</option>
142
                                            [% ELSE %]<option value="[% budget.b_id %]" class="b_inactive" data-sort1-authcat="[% budget.b_sort1_authcat %]" data-sort2-authcat="[% budget.b_sort2_authcat %]">[% budget.b_txt %] [% t('(inactive)') %]</option>
142
                                            [% END %]
143
                                            [% END %]
143
                                        [% END %]
144
                                        [% END %]
144
                                    [% END %]
145
                                    [% END %]
Lines 146-168 Link Here
146
                                [% END %]
147
                                [% END %]
147
                            </li>
148
                            </li>
148
                            <li class="sort1">
149
                            <li class="sort1">
149
                                <label for="sort1_record_[% biblio.import_record_id %]">Statistic 1: </label>
150
                                <label for="sort1_record_[% biblio.import_record_id %]">[% t('Statistic 1:') %] </label>
150
                                <input id="sort1_record_[% biblio.import_record_id %]" type="text" id="sort1" size="20" name="sort1" value="[% biblio.sort1 %]" />
151
                                <input id="sort1_record_[% biblio.import_record_id %]" type="text" id="sort1" size="20" name="sort1" value="[% biblio.sort1 %]" />
151
                            </li>
152
                            </li>
152
                            <li class="sort2">
153
                            <li class="sort2">
153
                                <label for="sort2_record_[% biblio.import_record_id %]">Statistic 2: </label>
154
                                <label for="sort2_record_[% biblio.import_record_id %]">[% t('Statistic 2:') %] </label>
154
                                <input id="sort2_record_[% biblio.import_record_id %]" type="text" id="sort2" size="20" name="sort2" value="[% biblio.sort2 %]" />
155
                                <input id="sort2_record_[% biblio.import_record_id %]" type="text" id="sort2" size="20" name="sort2" value="[% biblio.sort2 %]" />
155
                            </li>
156
                            </li>
156
                          </ol>
157
                          </ol>
157
                        </div>
158
                        </div>
158
                        <div style="float:right">
159
                        <div style="float:right">
159
                        [% IF biblio.item_error %]Item records could not be processed because the number of item fields was uneven.[% END %]
160
                        [% IF biblio.item_error %][% t('Item records could not be processed because the number of item fields was uneven.') %][% END %]
160
                        [% FOREACH item IN biblio.iteminfos %]
161
                        [% FOREACH item IN biblio.iteminfos %]
161
                        <fieldset>
162
                        <fieldset>
162
                        <legend>Item Record [% item.item_id %]</legend>
163
                        <legend>[% t('Item Record') %] [% item.item_id %]</legend>
163
                        <ol>
164
                        <ol>
164
                        <li>
165
                        <li>
165
                        <label for="homebranch_item_[% item.item_id %]">homebranch</label><select id="homebranch_item_[% item.item_id %]" name="homebranch_[% item.biblio_count %]">
166
                        <label for="homebranch_item_[% item.item_id %]">[% t('homebranch') %]</label><select id="homebranch_item_[% item.item_id %]" name="homebranch_[% item.biblio_count %]">
166
                        [% FOREACH l IN libraries %]
167
                        [% FOREACH l IN libraries %]
167
                          [% IF l.branchcode == item.homebranch %]
168
                          [% IF l.branchcode == item.homebranch %]
168
                            <option value="[% l.branchcode %]" selected="selected">[% l.branchname %]</option>
169
                            <option value="[% l.branchcode %]" selected="selected">[% l.branchname %]</option>
Lines 173-179 Link Here
173
                        </select>
174
                        </select>
174
                        </li>
175
                        </li>
175
176
176
                        <li><label for="holdingbranch_item_[% item.item_id %]">holdingbranch</label><select id="holdingbranch_item_[% item.item_id %]" name="holdingbranch_[% item.biblio_count %]">
177
                        <li><label for="holdingbranch_item_[% item.item_id %]">[% t('holdingbranch') %]</label><select id="holdingbranch_item_[% item.item_id %]" name="holdingbranch_[% item.biblio_count %]">
177
                        [% FOREACH l IN libraries %]
178
                        [% FOREACH l IN libraries %]
178
                          [% IF l.branchcode == item.holdingbranch %]
179
                          [% IF l.branchcode == item.holdingbranch %]
179
                            <option value="[% l.branchcode %]" selected="selected">[% l.branchname %]</option>
180
                            <option value="[% l.branchcode %]" selected="selected">[% l.branchname %]</option>
Lines 183-189 Link Here
183
                        [% END %]
184
                        [% END %]
184
                        </select>
185
                        </select>
185
                        </li>
186
                        </li>
186
                        <li><label for="itype_item_[% item.item_id %]">itype</label><select id="itype_item_[% item.item_id %]" name="itype_[% item.biblio_count %]">
187
                        <li><label for="itype_item_[% item.item_id %]">[% t('itype') %]</label><select id="itype_item_[% item.item_id %]" name="itype_[% item.biblio_count %]">
187
                        [% FOREACH itypeloo IN itypeloop %]
188
                        [% FOREACH itypeloo IN itypeloop %]
188
                          [% IF ( itypeloo.itemtype ) == ( item.itype ) %]
189
                          [% IF ( itypeloo.itemtype ) == ( item.itype ) %]
189
                            <option value="[% itypeloo.itemtype %]" selected="selected">[% itypeloo.description |html %]</option>
190
                            <option value="[% itypeloo.itemtype %]" selected="selected">[% itypeloo.description |html %]</option>
Lines 194-202 Link Here
194
                        </select>
195
                        </select>
195
                        </li>
196
                        </li>
196
197
197
                        <li><label for="nonpublic_note_item_[% item.item_id %]">nonpublic_note</label><input type="text" id="nonpublic_note_item_[% item.item_id %]" name="nonpublic_note_[% item.biblio_count %]" value="[% item.nonpublic_note %]"></li>
198
                        <li><label for="nonpublic_note_item_[% item.item_id %]">[% t('nonpublic_note') %]</label><input type="text" id="nonpublic_note_item_[% item.item_id %]" name="nonpublic_note_[% item.biblio_count %]" value="[% item.nonpublic_note %]"></li>
198
                        <li><label for="public_note_item_[% item.item_id %]">public_note</label><input type="text" id="public_note_item_[% item.item_id %]" name="public_note_[% item.biblio_count %]" value="[% item.public_note %]"></li>
199
                        <li><label for="public_note_item_[% item.item_id %]">[% t('public_note') %]</label><input type="text" id="public_note_item_[% item.item_id %]" name="public_note_[% item.biblio_count %]" value="[% item.public_note %]"></li>
199
                        <li><label for="loc_item_[% item.item_id %]">loc</label><select id="loc_item_[% item.item_id %]" name="loc_[% item.biblio_count %]">
200
                        <li><label for="loc_item_[% item.item_id %]">[% t('loc') %]</label><select id="loc_item_[% item.item_id %]" name="loc_[% item.biblio_count %]">
200
                        <option value=""> </option>
201
                        <option value=""> </option>
201
                        [% FOREACH locationloo IN locationloop %]
202
                        [% FOREACH locationloo IN locationloop %]
202
                            [% IF ( locationloo.code ) == (item.loc) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
203
                            [% IF ( locationloo.code ) == (item.loc) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
Lines 204-217 Link Here
204
                       </select>
205
                       </select>
205
                        </li>
206
                        </li>
206
207
207
                        <li><label for="ccode_item_[% item.item_id %]">ccode</label><select id="ccode_item_[% item.item_id %]" name="ccode_[% item.biblio_count %]">
208
                        <li><label for="ccode_item_[% item.item_id %]">[% t('ccode') %]</label><select id="ccode_item_[% item.item_id %]" name="ccode_[% item.biblio_count %]">
208
                        [% FOREACH ccodeloo IN ccodeloop %]
209
                        [% FOREACH ccodeloo IN ccodeloop %]
209
                            [% IF ( ccodeloo.code ) == (item.ccode) %]<option value="[% ccodeloo.code %]" selected="selected">[% ccodeloo.description %]</option>[% ELSE %]<option value="[% ccodeloo.code %]">[% ccodeloo.description %]</option>[% END %]
210
                            [% IF ( ccodeloo.code ) == (item.ccode) %]<option value="[% ccodeloo.code %]" selected="selected">[% ccodeloo.description %]</option>[% ELSE %]<option value="[% ccodeloo.code %]">[% ccodeloo.description %]</option>[% END %]
210
                        [% END %]
211
                        [% END %]
211
                        </select>
212
                        </select>
212
                        </li>
213
                        </li>
213
214
214
                        <li><label for="notforloan_item_[% item.item_id %]">notforloan</label><select id="notforloan_item_[% item.item_id %]" name="notforloan_[% item.biblio_count %]">
215
                        <li><label for="notforloan_item_[% item.item_id %]">[% t('notforloan') %]</label><select id="notforloan_item_[% item.item_id %]" name="notforloan_[% item.biblio_count %]">
215
                        [% FOREACH n IN notforloanloop %]
216
                        [% FOREACH n IN notforloanloop %]
216
                            [% IF n.code == item.notforloan %]
217
                            [% IF n.code == item.notforloan %]
217
                                <option value="[% n.code %]" selected="selected">[% n.description %]</option>
218
                                <option value="[% n.code %]" selected="selected">[% n.description %]</option>
Lines 221-230 Link Here
221
                        [% END %]
222
                        [% END %]
222
                        </select>
223
                        </select>
223
                        </li>
224
                        </li>
224
                        <li><label for="uri_item_[% item.item_id %]">uri</label><input type="text" id="uri_item_[% item.item_id %]" name="uri_[% item.biblio_count %]" value="[% item.uri %]"></li>
225
                        <li><label for="uri_item_[% item.item_id %]">[% t('uri') %]</label><input type="text" id="uri_item_[% item.item_id %]" name="uri_[% item.biblio_count %]" value="[% item.uri %]"></li>
225
                        <li><label for="copyno_item_[% item.item_id %]">copyno</label><input type="text" id="copyno_item_[% item.item_id %]" name="copyno_[% item.biblio_count %]" value="[% item.copyno %]"></li>
226
                        <li><label for="copyno_item_[% item.item_id %]">[% t('copyno') %]</label><input type="text" id="copyno_item_[% item.item_id %]" name="copyno_[% item.biblio_count %]" value="[% item.copyno %]"></li>
226
                        <li><label for="budget_code_item_[% item.item_id %]">budget_code</label><select id="budget_code_item_[% item.item_id %]" name="budget_code_[% item.biblio_count %]">
227
                        <li><label for="budget_code_item_[% item.item_id %]">[% t('budget_code') %]</label><select id="budget_code_item_[% item.item_id %]" name="budget_code_[% item.biblio_count %]">
227
                        <option value="">Select a fund</option>
228
                        <option value="">[% t('Select a fund') %]</option>
228
                        [% FOREACH budget_loo IN budget_loop %]
229
                        [% FOREACH budget_loo IN budget_loop %]
229
                            [% IF ( budget_loo.b_code ) == ( item.budget_code ) %]<option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
230
                            [% IF ( budget_loo.b_code ) == ( item.budget_code ) %]<option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option>
230
                            [% ELSE %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
231
                            [% ELSE %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option>
Lines 232-240 Link Here
232
                        [% END %]
233
                        [% END %]
233
                        </select>
234
                        </select>
234
                        </li>
235
                        </li>
235
                        <li><label for="price_item_[% item.item_id %]">price</label><input type="text" id="price_item_[% item.item_id %]" name="itemprice_[% item.biblio_count %]" value="[% item.itemprice %]"></li>
236
                        <li><label for="price_item_[% item.item_id %]">[% t('price') %]</label><input type="text" id="price_item_[% item.item_id %]" name="itemprice_[% item.biblio_count %]" value="[% item.itemprice %]"></li>
236
                        <li><label for="replacementprice_item_[% item.item_id %]">replacement price</label><input type="text" id="replacementprice_item_[% item.item_id %]" name="replacementprice_[% item.biblio_count %]" value="[% item.replacementprice %]"></li>
237
                        <li><label for="replacementprice_item_[% item.item_id %]">[% t('replacement price') %]</label><input type="text" id="replacementprice_item_[% item.item_id %]" name="replacementprice_[% item.biblio_count %]" value="[% item.replacementprice %]"></li>
237
                        <li><label for="callnumber_item_[% item.item_id %]">callnumber</label><input type="text" id="callnumber_item_[% item.item_id %]" name="itemcallnumber_[% item.biblio_count %]" value="[% item.itemcallnumber %]"></li>
238
                        <li><label for="callnumber_item_[% item.item_id %]">[% t('callnumber') %]</label><input type="text" id="callnumber_item_[% item.item_id %]" name="itemcallnumber_[% item.biblio_count %]" value="[% item.itemcallnumber %]"></li>
238
                        </ol>
239
                        </ol>
239
                        </fieldset>
240
                        </fieldset>
240
                        [% END %]
241
                        [% END %]
Lines 245-257 Link Here
245
                                <div class="modal-content">
246
                                <div class="modal-content">
246
                                <div class="modal-header">
247
                                <div class="modal-header">
247
                                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
248
                                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
248
                                    <h3 id="dataPreviewLabel">MARC preview</h3>
249
                                    <h3 id="dataPreviewLabel">[% t('MARC preview') %]</h3>
249
                                </div>
250
                                </div>
250
                                <div class="modal-body">
251
                                <div class="modal-body">
251
                                    <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
252
                                    <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> [% t('Loading') %] </div>
252
                                </div>
253
                                </div>
253
                                <div class="modal-footer">
254
                                <div class="modal-footer">
254
                                    <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
255
                                    <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
255
                                </div>
256
                                </div>
256
                                </div>
257
                                </div>
257
                                </div>
258
                                </div>
Lines 259-272 Link Here
259
                        [% END %]
260
                        [% END %]
260
                      </div>
261
                      </div>
261
                      <div id="items_info">
262
                      <div id="items_info">
262
                        <h2>Item information</h2>
263
                        <h2>[% t('Item information') %]</h2>
263
                        <p>Import all the checked items in the basket with the following parameters:</p>
264
                        <p>[% t('Import all the checked items in the basket with the following parameters:') %]</p>
264
265
265
                        [% IF ( items ) %]
266
                        [% IF ( items ) %]
266
                        <fieldset class="rows" style="float:none;">
267
                        <fieldset class="rows" style="float:none;">
267
                            <legend>Item</legend>
268
                            <legend>[% t('Item') %]</legend>
268
                            [% IF ( NoACQframework ) %]
269
                            [% IF ( NoACQframework ) %]
269
                                <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
270
                                <div class="dialog message">[% t('No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used') %]</div>
270
                            [% END %]
271
                            [% END %]
271
                            [% FOREACH item IN items %]
272
                            [% FOREACH item IN items %]
272
                            <div id="outeritemblock">
273
                            <div id="outeritemblock">
Lines 298-304 Link Here
298
                                        <input type="hidden" name="tag" value="[% iteminformatio.tag %]" />
299
                                        <input type="hidden" name="tag" value="[% iteminformatio.tag %]" />
299
                                        <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" />
300
                                        <input type="hidden" name="subfield" value="[% iteminformatio.subfield %]" />
300
                                        <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
301
                                        <input type="hidden" name="mandatory" value="[% iteminformatio.mandatory %]" />
301
                                        [% IF ( iteminformatio.mandatory ) %] <span class="required">Required</span>[% END %]
302
                                        [% IF ( iteminformatio.mandatory ) %] <span class="required">[% t('Required') %]</span>[% END %]
302
                                    </div></li>
303
                                    </div></li>
303
                                [% END %]
304
                                [% END %]
304
                                </ol>
305
                                </ol>
Lines 309-317 Link Here
309
                        [% END %] <!-- items -->
310
                        [% END %] <!-- items -->
310
                      </div>
311
                      </div>
311
                      <div id="accounting_details">
312
                      <div id="accounting_details">
312
                        <p>Import all the checked items in the basket with the following accounting details (used only if no information is filled for the item):</p>
313
                        <p>[% t('Import all the checked items in the basket with the following accounting details (used only if no information is filled for the item):') %]</p>
313
                        <fieldset class="rows" style="float:none;">
314
                        <fieldset class="rows" style="float:none;">
314
                            <legend>Accounting details</legend>
315
                            <legend>[% t('Accounting details') %]</legend>
315
                            <ol>
316
                            <ol>
316
                                <li>
317
                                <li>
317
                                    <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
318
                                    <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
Lines 319-329 Link Here
319
                                </li>
320
                                </li>
320
                                <li>
321
                                <li>
321
                                    [% IF ( close ) %]
322
                                    [% IF ( close ) %]
322
                                        <span class="label">Fund: </span>
323
                                        <span class="label">[% t('Fund:') %] </span>
323
                                        <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
324
                                        <input type="hidden" size="20" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
324
                                    [% ELSE %]
325
                                    [% ELSE %]
325
                                        <li>
326
                                        <li>
326
                                            <label for="all_currency">Currency:</label>
327
                                            <label for="all_currency">[% t('Currency:') %]</label>
327
                                            <select name="all_currency" id="all_currency">
328
                                            <select name="all_currency" id="all_currency">
328
                                            [% FOREACH currency IN currencies %]
329
                                            [% FOREACH currency IN currencies %]
329
                                                [% IF currency.currency == bookseller.listprice %]
330
                                                [% IF currency.currency == bookseller.listprice %]
Lines 335-369 Link Here
335
                                            </select>
336
                                            </select>
336
                                        </li>
337
                                        </li>
337
                                        <li>
338
                                        <li>
338
                                            <label for="all_budget_id">Fund: </label>
339
                                            <label for="all_budget_id">[% t('Fund:') %] </label>
339
                                            <select id="all_budget_id" size="1" name="all_budget_id">
340
                                            <select id="all_budget_id" size="1" name="all_budget_id">
340
                                              <option value="">Select a fund</option>
341
                                              <option value="">[% t('Select a fund') %]</option>
341
                                            [% FOREACH budget_loo IN budget_loop %]
342
                                            [% FOREACH budget_loo IN budget_loop %]
342
                                                [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option>
343
                                                [% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %]</option>
343
                                                [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %] (inactive)</option>
344
                                                [% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]">[% budget_loo.b_txt %] [% t('(inactive)') %]</option>
344
                                                [% END %]
345
                                                [% END %]
345
                                            [% END %]
346
                                            [% END %]
346
                                            </select>
347
                                            </select>
347
                                            <label for="all_showallbudgets" style="float:none;width:auto;">&nbsp;Show inactive:</label>
348
                                            <label for="all_showallbudgets" style="float:none;width:auto;">[% t(' Show inactive:') %]</label>
348
                                            <input type="checkbox" id="all_showallbudgets" />
349
                                            <input type="checkbox" id="all_showallbudgets" />
349
                                        </li>
350
                                        </li>
350
                                    [% END %]
351
                                    [% END %]
351
                                </li>
352
                                </li>
352
                                <li>
353
                                <li>
353
                                    <label for="all_order_internalnote">Internal note: </label>
354
                                    <label for="all_order_internalnote">[% t('Internal note:') %] </label>
354
                                    <textarea id="all_order_internalnote" cols="30" rows="3" name="all_order_internalnote"></textarea>
355
                                    <textarea id="all_order_internalnote" cols="30" rows="3" name="all_order_internalnote"></textarea>
355
                                </li>
356
                                </li>
356
                                <li>
357
                                <li>
357
                                    <label for="all_order_vendornote">Vendor note: </label>
358
                                    <label for="all_order_vendornote">[% t('Vendor note:') %] </label>
358
                                    <textarea id="all_order_vendornote" cols="30" rows="3" name="all_order_vendornote"></textarea>
359
                                    <textarea id="all_order_vendornote" cols="30" rows="3" name="all_order_vendornote"></textarea>
359
                                </li>
360
                                </li>
360
                                <li>
361
                                <li>
361
                                    <div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
362
                                    <div class="hint">[% t('The 2 following fields are available for your own usage. They can be useful for statistical purposes') %]</div>
362
                                    <label for="all_sort1">Statistic 1: </label>
363
                                    <label for="all_sort1">[% t('Statistic 1:') %] </label>
363
                                    <input type="text" id="all_sort1" size="20" name="all_sort1" value="" />
364
                                    <input type="text" id="all_sort1" size="20" name="all_sort1" value="" />
364
                                </li>
365
                                </li>
365
                                <li>
366
                                <li>
366
                                    <label for="all_sort2">Statistic 2: </label>
367
                                    <label for="all_sort2">[% t('Statistic 2:') %] </label>
367
                                    <input type="text" id="all_sort2" size="20" name="all_sort2" value="" />
368
                                    <input type="text" id="all_sort2" size="20" name="all_sort2" value="" />
368
                                </li>
369
                                </li>
369
                            </ol>
370
                            </ol>
Lines 372-392 Link Here
372
                      </div>
373
                      </div>
373
374
374
                      <fieldset class="action">
375
                      <fieldset class="action">
375
                          <input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>
376
                          <input type="submit" value="Save" /><a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('Cancel') %]</a>
376
                      </fieldset>
377
                      </fieldset>
377
                    </form>
378
                    </form>
378
                [% ELSE %]
379
                [% ELSE %]
379
                <div>
380
                <div>
380
                  <h1>Choose the file to add to the basket</h1>
381
                  <h1>[% t('Choose the file to add to the basket') %]</h1>
381
                  <table id="files">
382
                  <table id="files">
382
                    <thead>
383
                    <thead>
383
                      <tr>
384
                      <tr>
384
                        <th>File name</th>
385
                        <th>[% t('File name') %]</th>
385
                        <th>Comments</th>
386
                        <th>[% t('Comments') %]</th>
386
                        <th>Status</th>
387
                        <th>[% t('Status') %]</th>
387
                        <th class="title-string">Staged</th>
388
                        <th class="title-string">[% t('Staged') %]</th>
388
                        <th># Bibs</th>
389
                        <th>[% t('# Bibs') %]</th>
389
                        <th class="NoSort">&nbsp;</th>
390
                        <th class="NoSort"> </th>
390
                      </tr>
391
                      </tr>
391
                    </thead>
392
                    </thead>
392
                    <tbody>
393
                    <tbody>
Lines 396-419 Link Here
396
                        <td>[% batch_lis.comments %]</td>
397
                        <td>[% batch_lis.comments %]</td>
397
                        <td>
398
                        <td>
398
                          [% IF ( batch_lis.import_status == 'cleaned' ) %]
399
                          [% IF ( batch_lis.import_status == 'cleaned' ) %]
399
                            Cleaned
400
                            [% t('Cleaned') %]
400
                          [% ELSIF ( batch_lis.import_status == 'imported' ) %]
401
                          [% ELSIF ( batch_lis.import_status == 'imported' ) %]
401
                            Imported
402
                            [% t('Imported') %]
402
                          [% ELSIF ( batch_lis.import_status == 'importing' ) %]
403
                          [% ELSIF ( batch_lis.import_status == 'importing' ) %]
403
                            Importing
404
                            [% t('Importing') %]
404
                          [% ELSIF ( batch_lis.import_status == 'reverted' ) %]
405
                          [% ELSIF ( batch_lis.import_status == 'reverted' ) %]
405
                            Reverted
406
                            [% t('Reverted') %]
406
                          [% ELSIF ( batch_lis.import_status == 'reverting' ) %]
407
                          [% ELSIF ( batch_lis.import_status == 'reverting' ) %]
407
                            Reverting
408
                            [% t('Reverting') %]
408
                          [% ELSIF ( batch_lis.import_status == 'staged' ) %]
409
                          [% ELSIF ( batch_lis.import_status == 'staged' ) %]
409
                            Staged
410
                            [% t('Staged') %]
410
                          [% ELSE %]
411
                          [% ELSE %]
411
                            [% batch_lis.import_status %]
412
                            [% batch_lis.import_status %]
412
                          [% END %]
413
                          [% END %]
413
                        </td>
414
                        </td>
414
                        <td><span title="[% batch_lis.staged_date %]">[% batch_lis.staged_date | $KohaDates with_hours => 1 %]</span></td>
415
                        <td><span title="[% batch_lis.staged_date %]">[% batch_lis.staged_date | $KohaDates with_hours => 1 %]</span></td>
415
                        <td>[% batch_lis.num_records %]</td>
416
                        <td>[% batch_lis.num_records %]</td>
416
                        <td><a href="[% batch_lis.scriptname %]?import_batch_id=[% batch_lis.import_batch_id %]&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]">Add orders</a></td>
417
                        <td><a href="[% batch_lis.scriptname %]?import_batch_id=[% batch_lis.import_batch_id %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]">[% t('Add orders') %]</a></td>
417
                      </tr>
418
                      </tr>
418
                      [% END %]
419
                      [% END %]
419
                    </tbody>
420
                    </tbody>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt (-167 / +168 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% BLOCK csv_export %]
3
[% BLOCK csv_export %]
3
    <div class="btn-group">
4
    <div class="btn-group">
4
        <a id="exportbutton" class="btn btn-default btn-sm" href="[% script_name %]?op=export&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]"><i class="fa fa-download"></i> Export as CSV</a>
5
        <a id="exportbutton" class="btn btn-default btn-sm" href="[% script_name %]?op=export&basketno=[% basketno %]&booksellerid=[% booksellerid %]"><i class="fa fa-download"></i> [% t('Export as CSV') %]</a>
5
      <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
6
      <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></a>
6
      <ul class="dropdown-menu" id="export-csv-menu">
7
      <ul class="dropdown-menu" id="export-csv-menu">
7
          <li><a href="#">Default</a></li>
8
          <li><a href="#">[% t('Default') %]</a></li>
8
          [% IF csv_profiles %]
9
          [% IF csv_profiles %]
9
              [% FOR csv IN csv_profiles %]
10
              [% FOR csv IN csv_profiles %]
10
                <li><a href="#" data-value="[% csv.export_format_id %]">[% csv.profile %]</a></li>
11
                <li><a href="#" data-value="[% csv.export_format_id %]">[% csv.profile %]</a></li>
Lines 19-25 Link Here
19
[% USE AuthorisedValues %]
20
[% USE AuthorisedValues %]
20
[% SET footerjs = 1 %]
21
[% SET footerjs = 1 %]
21
[% INCLUDE 'doc-head-open.inc' %]
22
[% INCLUDE 'doc-head-open.inc' %]
22
<title>Koha &rsaquo; Acquisitions &rsaquo; [% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno |html %]) for [% booksellername|html %]</title>
23
<title>[% t('Koha › Acquisitions ›') %] [% UNLESS ( basketno ) %][% t('New') %] [% END %][% t('Basket') %] [% basketname|html %] ([% basketno |html %][% t(') for') %] [% booksellername|html %]</title>
23
[% Asset.css("css/datatables.css") %]
24
[% Asset.css("css/datatables.css") %]
24
[% INCLUDE 'doc-head-close.inc' %]
25
[% INCLUDE 'doc-head-close.inc' %]
25
<style type="text/css">
26
<style type="text/css">
Lines 33-42 Link Here
33
34
34
35
35
<div id="breadcrumbs">
36
<div id="breadcrumbs">
36
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
37
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
37
    <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
38
    <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> ›
38
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername|html %]</a> &rsaquo;
39
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername|html %]</a> ›
39
    [% UNLESS ( basketno ) %][% IF ( delete_confirmed ) %]Deleted [% ELSE %]New [% END %][% END %]Basket [% basketname|html %] [% IF ( basketno ) %]([% basketno |html %])[% END %] for [% booksellername|html %]
40
    [% UNLESS ( basketno ) %][% IF ( delete_confirmed ) %][% t('Deleted') %] [% ELSE %][% t('New') %] [% END %][% END %][% t('Basket') %] [% basketname|html %] [% IF ( basketno ) %]([% basketno |html %])[% END %] [% t('for') %] [% booksellername|html %]
40
</div>
41
</div>
41
42
42
<div id="doc3" class="yui-t2">
43
<div id="doc3" class="yui-t2">
Lines 45-51 Link Here
45
    <div id="yui-main">
46
    <div id="yui-main">
46
    [% IF (cannot_manage_basket) %]
47
    [% IF (cannot_manage_basket) %]
47
        <div class="yui-b">
48
        <div class="yui-b">
48
            <p class="error">You are not authorised to manage this basket.</p>
49
            <p class="error">[% t('You are not authorised to manage this basket.') %]</p>
49
        </div>
50
        </div>
50
    [% ELSE %]
51
    [% ELSE %]
51
    <div class="yui-b">
52
    <div class="yui-b">
Lines 55-81 Link Here
55
            [% UNLESS ( delete_confirmed ) %]
56
            [% UNLESS ( delete_confirmed ) %]
56
                <div id="toolbar" class="btn-toolbar">
57
                <div id="toolbar" class="btn-toolbar">
57
                    [% IF active %]
58
                    [% IF active %]
58
                        <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-default btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a></div>
59
                        <div class="btn-group"><a href="#addtoBasket" role="button" class="btn btn-default btn-sm" data-toggle="modal"><i class="fa fa-plus"></i> [% t('Add to basket') %]</a></div>
59
                    [% END %]
60
                    [% END %]
60
                    <div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;op=add_form" class="btn btn-default btn-sm" id="basketheadbutton"><i class="fa fa-pencil"></i> Edit basket</a></div>
61
                    <div class="btn-group"><a href="basketheader.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&op=add_form" class="btn btn-default btn-sm" id="basketheadbutton"><i class="fa fa-pencil"></i> [% t('Edit basket') %]</a></div>
61
                    [%# FIXME This action should not be available for everyone %]
62
                    [%# FIXME This action should not be available for everyone %]
62
                    <div class="btn-group"><a href="#deleteBasketModal" role="button" class="btn btn-default btn-sm" data-toggle="modal" id="delbasketbutton"><i class="fa fa-trash"></i> Delete this basket</a></div>
63
                    <div class="btn-group"><a href="#deleteBasketModal" role="button" class="btn btn-default btn-sm" data-toggle="modal" id="delbasketbutton"><i class="fa fa-trash"></i> [% t('Delete this basket') %]</a></div>
63
                   [% IF ( unclosable ) %]
64
                   [% IF ( unclosable ) %]
64
                    [% ELSIF ( uncertainprices ) %]
65
                    [% ELSIF ( uncertainprices ) %]
65
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&amp;owner=1" class="btn btn-default btn-sm" id="uncertpricesbutton"><i class="fa fa-usd"></i> Uncertain prices</a></div>
66
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" class="btn btn-default btn-sm" id="uncertpricesbutton"><i class="fa fa-usd"></i> [% t('Uncertain prices') %]</a></div>
66
                        <div title="Can not close baskets that have items with uncertain prices in them." class="btn-group">
67
                        <div title="[% t('Can not close baskets that have items with uncertain prices in them.') %]" class="btn-group">
67
                            <a href="" class="btn btn-default btn-sm disabled" id="closebutton"><i class="fa fa-times-circle"></i> Close this basket</a>
68
                            <a href="" class="btn btn-default btn-sm disabled" id="closebutton"><i class="fa fa-times-circle"></i> [% t('Close this basket') %]</a>
68
                        </div>
69
                        </div>
69
                    [% ELSE %]
70
                    [% ELSE %]
70
                        <div class="btn-group">
71
                        <div class="btn-group">
71
                            <a href="/cgi-bin/koha/acqui/basket.pl?op=close&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="closebutton"><i class="fa fa-times-circle"></i> Close this basket</a>
72
                            <a href="/cgi-bin/koha/acqui/basket.pl?op=close&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="closebutton"><i class="fa fa-times-circle"></i> [% t('Close this basket') %]</a>
72
                        </div>
73
                        </div>
73
                    [% END %]
74
                    [% END %]
74
75
75
                    [% PROCESS csv_export %]
76
                    [% PROCESS csv_export %]
76
77
77
                        [% IF ediaccount %]
78
                        [% IF ediaccount %]
78
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/edi_ean.pl?op=ediorder&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="ediorderbutton"><i class="fa fa-download"></i> Create EDIFACT order</a></div>
79
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/edi_ean.pl?op=ediorder&basketno=[% basketno %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="ediorderbutton"><i class="fa fa-download"></i> [% t('Create EDIFACT order') %]</a></div>
79
                        [% END %]
80
                        [% END %]
80
81
81
                        [% IF ( active && books_loop ) %]
82
                        [% IF ( active && books_loop ) %]
Lines 83-89 Link Here
83
                                <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
84
                                <form action="/cgi-bin/koha/acqui/basket.pl" method="post">
84
                                    <input type="hidden" name="op" value="email" />
85
                                    <input type="hidden" name="op" value="email" />
85
                                    <input type="hidden" name="basketno" value="[% basketno %]" />
86
                                    <input type="hidden" name="basketno" value="[% basketno %]" />
86
                                    <button type="submit" class="btn btn-default btn-sm" id="emailvendorbutton"><i class="fa fa-envelope"></i> E-mail order</button>
87
                                    <button type="submit" class="btn btn-default btn-sm" id="emailvendorbutton"><i class="fa fa-envelope"></i> [% t('E-mail order') %]</button>
87
                                </form>
88
                                </form>
88
                            </div>
89
                            </div>
89
                        [% END %]
90
                        [% END %]
Lines 96-133 Link Here
96
                    <div class="modal-content">
97
                    <div class="modal-content">
97
                    <div class="modal-header">
98
                    <div class="modal-header">
98
                        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
99
                        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
99
                        <h3>Confirm deletion</h3>
100
                        <h3>[% t('Confirm deletion') %]</h3>
100
                    </div>
101
                    </div>
101
                    [% UNLESS book_foot_loop %]
102
                    [% UNLESS book_foot_loop %]
102
                        <div class="modal-body">
103
                        <div class="modal-body">
103
                           <p>Are you sure you want to delete this basket?</p>
104
                           <p>[% t('Are you sure you want to delete this basket?') %]</p>
104
                        </div>
105
                        </div>
105
                        <div class="modal-footer">
106
                        <div class="modal-footer">
106
                            <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
107
                            <button type="button" class="btn btn-primary" data-dismiss="modal">[% t('Cancel') %]</button>
107
                            <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
108
                            <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
108
                                <input type="hidden" name="op" value="delete_confirm" />
109
                                <input type="hidden" name="op" value="delete_confirm" />
109
                                <input type="hidden" name="basketno" value="[% basketno %]" />
110
                                <input type="hidden" name="basketno" value="[% basketno %]" />
110
                                <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
111
                                <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
111
                                <input type="hidden" name="delbiblio" value="0" />
112
                                <input type="hidden" name="delbiblio" value="0" />
112
                                <button type="submit" class="btn btn-default btn-default">Delete basket</button>
113
                                <button type="submit" class="btn btn-default btn-default">[% t('Delete basket') %]</button>
113
                            </form>
114
                            </form>
114
                        </div>
115
                        </div>
115
                    [% ELSE %]
116
                    [% ELSE %]
116
                        <div class="modal-body">
117
                        <div class="modal-body">
117
                           <p>Are you sure you want to delete this basket?</p>
118
                           <p>[% t('Are you sure you want to delete this basket?') %]</p>
118
                           <p>Warning:</p>
119
                           <p>[% t('Warning:') %]</p>
119
                           <p>All orders of this basket will be cancelled and used funds will be refunded.</p>
120
                           <p>[% t('All orders of this basket will be cancelled and used funds will be refunded.') %]</p>
120
                           <p>If items have been created when ordering or receiving, they will be deleted.</p>
121
                           <p>[% t('If items have been created when ordering or receiving, they will be deleted.') %]</p>
121
                           <p>You can choose to delete bibliographic records if possible (bibliographic records that have other items or that are used in a subscription or another order will not be deleted).</p>
122
                           <p>[% t('You can choose to delete bibliographic records if possible (bibliographic records that have other items or that are used in a subscription or another order will not be deleted).') %]</p>
122
                        </div>
123
                        </div>
123
                        <div class="modal-footer">
124
                        <div class="modal-footer">
124
                            <button type="button" class="btn btn-primary" data-dismiss="modal">Cancel</button>
125
                            <button type="button" class="btn btn-primary" data-dismiss="modal">[% t('Cancel') %]</button>
125
                            <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
126
                            <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
126
                                <input type="hidden" name="op" value="delete_confirm" />
127
                                <input type="hidden" name="op" value="delete_confirm" />
127
                                <input type="hidden" name="basketno" value="[% basketno %]" />
128
                                <input type="hidden" name="basketno" value="[% basketno %]" />
128
                                <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
129
                                <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
129
                                <input type="hidden" name="delbiblio" value="0" />
130
                                <input type="hidden" name="delbiblio" value="0" />
130
                                <button type="submit" class="btn btn-default btn-default">Delete basket and orders</button>
131
                                <button type="submit" class="btn btn-default btn-default">[% t('Delete basket and orders') %]</button>
131
                            </form>
132
                            </form>
132
133
133
                            <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
134
                            <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
Lines 135-141 Link Here
135
                                <input type="hidden" name="basketno" value="[% basketno %]" />
136
                                <input type="hidden" name="basketno" value="[% basketno %]" />
136
                                <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
137
                                <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
137
                                <input type="hidden" name="delbiblio" value="1" />
138
                                <input type="hidden" name="delbiblio" value="1" />
138
                                <button type="submit" class="btn btn-default btn-default">Delete basket, orders, and records</button>
139
                                <button type="submit" class="btn btn-default btn-default">[% t('Delete basket, orders, and records') %]</button>
139
                            </form>
140
                            </form>
140
141
141
                        </div>
142
                        </div>
Lines 148-154 Link Here
148
                [% UNLESS ( grouped ) %]
149
                [% UNLESS ( grouped ) %]
149
                <div id="toolbar" class="btn-toolbar">
150
                <div id="toolbar" class="btn-toolbar">
150
151
151
                    <div class="btn-group"><a href="#" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-refresh"></i> Reopen this basket</a></div>
152
                    <div class="btn-group"><a href="#" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-refresh"></i> [% t('Reopen this basket') %]</a></div>
152
153
153
                    [% PROCESS csv_export %]
154
                    [% PROCESS csv_export %]
154
155
Lines 158-189 Link Here
158
            [% END %]
159
            [% END %]
159
160
160
    [% IF ( NO_BOOKSELLER ) %]
161
    [% IF ( NO_BOOKSELLER ) %]
161
    <h2>Vendor not found</h2>
162
    <h2>[% t('Vendor not found') %]</h2>
162
    [% ELSE %]
163
    [% ELSE %]
163
        [% IF ( delete_confirmed ) %]
164
        [% IF ( delete_confirmed ) %]
164
            <div class="dialog message">
165
            <div class="dialog message">
165
                <h3>Basket deleted</h3>
166
                <h3>[% t('Basket deleted') %]</h3>
166
            </div>
167
            </div>
167
            [% IF (cannotdelbiblios) %]
168
            [% IF (cannotdelbiblios) %]
168
                <div class="dialog alert">
169
                <div class="dialog alert">
169
                    <p><strong>Warning:</strong></p>
170
                    <p><strong>[% t('Warning:') %]</strong></p>
170
                    <p><strong>The following records could not be deleted:</strong></p>
171
                    <p><strong>[% t('The following records could not be deleted:') %]</strong></p>
171
                    <ul>
172
                    <ul>
172
                    [% FOREACH cannotdelbiblio IN cannotdelbiblios %]
173
                    [% FOREACH cannotdelbiblio IN cannotdelbiblios %]
173
                        <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cannotdelbiblio.biblionumber %]">[% cannotdelbiblio.title |html %]</a> by [% cannotdelbiblio.author %]:
174
                        <li><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% cannotdelbiblio.biblionumber %]">[% cannotdelbiblio.title |html %]</a> [% t('by') %] [% cannotdelbiblio.author %]:
174
                            <ul>
175
                            <ul>
175
                            [% IF (cannotdelbiblio.itemcount) %]<li>[% cannotdelbiblio.itemcount %] item(s) attached.</li>[% END %]
176
                            [% IF (cannotdelbiblio.itemcount) %]<li>[% cannotdelbiblio.itemcount %] [% t('item(s) attached.') %]</li>[% END %]
176
                            [% IF (cannotdelbiblio.subscriptions) %]<li>[% cannotdelbiblio.subscriptions %] subscription(s) attached.</li>[% END %]
177
                            [% IF (cannotdelbiblio.subscriptions) %]<li>[% cannotdelbiblio.subscriptions %] [% t('subscription(s) attached.') %]</li>[% END %]
177
                            [% IF (cannotdelbiblio.countbiblio) %]<li>[% cannotdelbiblio.countbiblio %] order(s) attached.</li>[% END %]
178
                            [% IF (cannotdelbiblio.countbiblio) %]<li>[% cannotdelbiblio.countbiblio %] [% t('order(s) attached.') %]</li>[% END %]
178
                            [% IF (cannotdelbiblio.othererror) %]<li>Unknown error.</li>[% END %]
179
                            [% IF (cannotdelbiblio.othererror) %]<li>[% t('Unknown error.') %]</li>[% END %]
179
                            </ul>
180
                            </ul>
180
                        </li>
181
                        </li>
181
                    [% END %]
182
                    [% END %]
182
                    </ul>
183
                    </ul>
183
                </div>
184
                </div>
184
                <a href="booksellers.pl">Click here to go back to booksellers page</a>
185
                <a href="booksellers.pl">[% t('Click here to go back to booksellers page') %]</a>
185
            [% ELSE %]
186
            [% ELSE %]
186
                <a href="/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]" class="btn btn-default btn-sm">Show baskets for vendor [% booksellername | html %]</a> <a href="/cgi-bin/koha/acqui/booksellers.pl" class="btn btn-default btn-sm">Show all active baskets</a>
187
                <a href="/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]" class="btn btn-default btn-sm">[% t('Show baskets for vendor') %] [% booksellername | html %]</a> <a href="/cgi-bin/koha/acqui/booksellers.pl" class="btn btn-default btn-sm">[% t('Show all active baskets') %]</a>
187
            [% END %]
188
            [% END %]
188
        [% ELSE %]
189
        [% ELSE %]
189
190
Lines 191-231 Link Here
191
            <div class="dialog [% m.type %]">
192
            <div class="dialog [% m.type %]">
192
                [% SWITCH m.code %]
193
                [% SWITCH m.code %]
193
                [% CASE 'no_email' %]
194
                [% CASE 'no_email' %]
194
                    This vendor has no contact selected for sending orders to or is missing an e-mail address.
195
                    [% t('This vendor has no contact selected for sending orders to or is missing an e-mail address.') %]
195
                [% CASE 'no_basketno' %]
196
                [% CASE 'no_basketno' %]
196
                    No basket given.
197
                    [% t('No basket given.') %]
197
                [% CASE 'no_letter' %]
198
                [% CASE 'no_letter' %]
198
                    There is no notice template with code ACQORDER defined.
199
                    [% t('There is no notice template with code ACQORDER defined.') %]
199
                [% CASE 'email_sent' %]
200
                [% CASE 'email_sent' %]
200
                    Order e-mail was sent to the vendor.
201
                    [% t('Order e-mail was sent to the vendor.') %]
201
                [% CASE %]
202
                [% CASE %]
202
                    ERROR! - [% m.code %]
203
                    [% t('ERROR! -') %] [% m.code %]
203
                [% END %]
204
                [% END %]
204
            </div>
205
            </div>
205
        [% END %]
206
        [% END %]
206
        <h1>[% UNLESS ( basketno ) %]New [% END %]Basket [% basketname|html %] ([% basketno |html %]) for <a href="supplier.pl?booksellerid=[% booksellerid %]">[% booksellername|html %]</a></h1>
207
        <h1>[% UNLESS ( basketno ) %][% t('New') %] [% END %][% t('Basket') %] [% basketname|html %] ([% basketno |html %][% t(') for') %] <a href="supplier.pl?booksellerid=[% booksellerid %]">[% booksellername|html %]</a></h1>
207
        [% IF ( basketno ) %]
208
        [% IF ( basketno ) %]
208
            <div id="acqui_basket_summary" class="yui-g">
209
            <div id="acqui_basket_summary" class="yui-g">
209
                <div class="rows">
210
                <div class="rows">
210
                <div class="yui-u first">
211
                <div class="yui-u first">
211
                <ol>
212
                <ol>
212
                [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote |html %]</li>[% END %]
213
                [% IF ( basketnote ) %]<li><span class="label">[% t('Internal note:') %]</span> [% basketnote |html %]</li>[% END %]
213
                [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote |html %]</li>[% END %]
214
                [% IF ( basketbooksellernote ) %]<li><span class="label">[% t('Vendor note:') %]</span> [% basketbooksellernote |html %]</li>[% END %]
214
                [% IF ( basketcontractno ) %]
215
                [% IF ( basketcontractno ) %]
215
                    <li><span class="label">Contract name:</span> <a href="../admin/aqcontract.pl?op=add_form&amp;contractnumber=[% basketcontractno %]&amp;booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
216
                    <li><span class="label">[% t('Contract name:') %]</span> <a href="../admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]&booksellerid=[% booksellerid %]">[% basketcontractname %]</a></li>
216
                [% END %]
217
                [% END %]
217
                [% IF deliveryplace %]<li><span class="label">Delivery place:</span> [% Branches.GetName( deliveryplace ) %]</li>[% END %]
218
                [% IF deliveryplace %]<li><span class="label">[% t('Delivery place:') %]</span> [% Branches.GetName( deliveryplace ) %]</li>[% END %]
218
                [% IF billingplace %]<li><span class="label">Billing place:</span> [% Branches.GetName( billingplace ) %]</li>[% END %]
219
                [% IF billingplace %]<li><span class="label">[% t('Billing place:') %]</span> [% Branches.GetName( billingplace ) %]</li>[% END %]
219
                [% IF ( authorisedbyname ) %]<li><span class="label">Created by:</span>  [% authorisedbyname %]</li>[% END %]
220
                [% IF ( authorisedbyname ) %]<li><span class="label">[% t('Created by:') %]</span>  [% authorisedbyname %]</li>[% END %]
220
                <li id="managedby">
221
                <li id="managedby">
221
                    <form action="" method="post">
222
                    <form action="" method="post">
222
                        <span class="label">Managed by:</span>
223
                        <span class="label">[% t('Managed by:') %]</span>
223
                        <div style="float:left">
224
                        <div style="float:left">
224
                            <ul id="users_names" style="padding-left:0">
225
                            <ul id="users_names" style="padding-left:0">
225
                              [% FOREACH user IN users %]
226
                              [% FOREACH user IN users %]
226
                                <li id="user_[% user.borrowernumber %]">
227
                                <li id="user_[% user.borrowernumber %]">
227
                                    [% user.firstname %] [% user.surname %]
228
                                    [% user.firstname %] [% user.surname %]
228
                                    <a href="#" data-borrowernumber="[% user.borrowernumber %]" class="del_user"><i class="fa fa-trash"></i> Delete user</a>
229
                                    <a href="#" data-borrowernumber="[% user.borrowernumber %]" class="del_user"><i class="fa fa-trash"></i> [% t('Delete user') %]</a>
229
                                </li>
230
                                </li>
230
                              [% END %]
231
                              [% END %]
231
                            </ul>
232
                            </ul>
Lines 238-253 Link Here
238
                    </form>
239
                    </form>
239
                </li>
240
                </li>
240
                <li id="branch">
241
                <li id="branch">
241
                    <span class="label">Library:</span>
242
                    <span class="label">[% t('Library:') %]</span>
242
                    [% IF basketbranchcode %]
243
                    [% IF basketbranchcode %]
243
                        [% Branches.GetName( basketbranchcode ) %]
244
                        [% Branches.GetName( basketbranchcode ) %]
244
                    [% ELSE %]
245
                    [% ELSE %]
245
                        No library
246
                        [% t('No library') %]
246
                    [% END %]
247
                    [% END %]
247
                    [% IF branches_loop.size %]
248
                    [% IF branches_loop.size %]
248
                        <form action="" method="post">
249
                        <form action="" method="post">
249
                            <select id="branch" name="branch">
250
                            <select id="branch" name="branch">
250
                                <option value="">(no library)</option>
251
                                <option value="">[% t('(no library)') %]</option>
251
                                [% FOREACH branch IN branches_loop %]
252
                                [% FOREACH branch IN branches_loop %]
252
                                    [% IF (branch.selected) %]
253
                                    [% IF (branch.selected) %]
253
                                        <option selected="selected" value="[% branch.branchcode %]"> [% branch.branchname %]</option>
254
                                        <option selected="selected" value="[% branch.branchcode %]"> [% branch.branchname %]</option>
Lines 262-279 Link Here
262
                        </form>
263
                        </form>
263
                    [% END %]
264
                    [% END %]
264
                </li>
265
                </li>
265
                [% IF ( creationdate ) %]<li><span class="label">Opened on:</span>  [% creationdate | $KohaDates %]</li>[% END %]
266
                [% IF ( creationdate ) %]<li><span class="label">[% t('Opened on:') %]</span>  [% creationdate | $KohaDates %]</li>[% END %]
266
                [% IF ( closedate ) %]<li><span class="label">Closed on:</span> [% closedate | $KohaDates %]</li>[% END %]
267
                [% IF ( closedate ) %]<li><span class="label">[% t('Closed on:') %]</span> [% closedate | $KohaDates %]</li>[% END %]
267
                [% IF ( estimateddeliverydate ) %]<li><span class="label">Estimated delivery date:</span> [% estimateddeliverydate | $KohaDates  %]</li>[% END %]
268
                [% IF ( estimateddeliverydate ) %]<li><span class="label">[% t('Estimated delivery date:') %]</span> [% estimateddeliverydate | $KohaDates  %]</li>[% END %]
268
                <li><span class="label">Orders are standing:</span> [% IF is_standing %]Yes[% ELSE %]No[% END %]</li>
269
                <li><span class="label">[% t('Orders are standing:') %]</span> [% IF is_standing %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</li>
269
270
270
                [% IF basket.create_items %]
271
                [% IF basket.create_items %]
271
                    <li>
272
                    <li>
272
                        <span class="label">Create items when:</span>
273
                        <span class="label">[% t('Create items when:') %]</span>
273
                        [% SWITCH basket.create_items %]
274
                        [% SWITCH basket.create_items %]
274
                            [% CASE 'receiving' %]Receiving items
275
                            [% CASE 'receiving' %][% t('Receiving items') %]
275
                            [% CASE 'cataloguing' %]Cataloguing items
276
                            [% CASE 'cataloguing' %][% t('Cataloguing items') %]
276
                            [% CASE %]Placing orders
277
                            [% CASE %][% t('Placing orders') %]
277
                        [% END %]
278
                        [% END %]
278
                    </li>
279
                    </li>
279
                [% END %]
280
                [% END %]
Lines 287-311 Link Here
287
                    [% END %]
288
                    [% END %]
288
                        <ol>
289
                        <ol>
289
                        <li>
290
                        <li>
290
                          <span class="label">Basket group:</span>
291
                          <span class="label">[% t('Basket group:') %]</span>
291
                          [% IF basketgroup.id and not basketgroup.name %]
292
                          [% IF basketgroup.id and not basketgroup.name %]
292
                            [% SET basketgroup.name = "Basket group no. " _ basketgroup.id %]
293
                            [% SET basketgroup.name = "Basket group no. " _ basketgroup.id %]
293
                          [% END %]
294
                          [% END %]
294
                          [% IF basketgroup.closed %]
295
                          [% IF basketgroup.closed %]
295
                              [% IF ( CAN_user_acquisition_group_manage ) %]
296
                              [% IF ( CAN_user_acquisition_group_manage ) %]
296
                                  <a href="basketgroup.pl?op=add&booksellerid=[% booksellerid %]&basketgroupid=[% basketgroup.id %]" title="basketgroup">[% basketgroup.name %] (closed)</a>
297
                                  <a href="basketgroup.pl?op=add&booksellerid=[% booksellerid %]&basketgroupid=[% basketgroup.id %]" title="[% t('basketgroup') %]">[% basketgroup.name %] [% t('(closed)') %]</a>
297
                              [% ELSE %]
298
                              [% ELSE %]
298
                                  [% basketgroup.name %] (closed)
299
                                  [% basketgroup.name %] [% t('(closed)') %]
299
                              [% END %]
300
                              [% END %]
300
                          [% ELSIF ( ! CAN_user_acquisition_group_manage ) %]
301
                          [% ELSIF ( ! CAN_user_acquisition_group_manage ) %]
301
                            [%- IF basketgroup.id -%]
302
                            [%- IF basketgroup.id -%]
302
                                [% basketgroup.name %]
303
                                [% basketgroup.name %]
303
                            [%- ELSE -%]
304
                            [%- ELSE -%]
304
                                No group
305
                                [% t('No group') %]
305
                            [%- END -%]
306
                            [%- END -%]
306
                          [% ELSE %]
307
                          [% ELSE %]
307
                            <select id="basketgroupid" name="basketgroupid">
308
                            <select id="basketgroupid" name="basketgroupid">
308
                              <option value="">No group</option>
309
                              <option value="">[% t('No group') %]</option>
309
                              [% FOREACH bg IN basketgroups %]
310
                              [% FOREACH bg IN basketgroups %]
310
                                [% IF ( bg.default ) %]
311
                                [% IF ( bg.default ) %]
311
                                    <option value="[% bg.id %]" selected="selected">[% bg.name %]</option>
312
                                    <option value="[% bg.id %]" selected="selected">[% bg.name %]</option>
Lines 313-323 Link Here
313
                                  [% UNLESS bg.closed %]
314
                                  [% UNLESS bg.closed %]
314
                                    <option value="[% bg.id %]">[% bg.name %]</option>
315
                                    <option value="[% bg.id %]">[% bg.name %]</option>
315
                                  [% ELSE %]
316
                                  [% ELSE %]
316
                                    <option value="[% bg.id %]" disabled="disabled">[% bg.name %] (closed)</option>
317
                                    <option value="[% bg.id %]" disabled="disabled">[% bg.name %] [% t('(closed)') %]</option>
317
                                  [% END %]
318
                                  [% END %]
318
                                [% END %]
319
                                [% END %]
319
                              [% END %]
320
                              [% END %]
320
                              <option value="new">Add new group</option>
321
                              <option value="new">[% t('Add new group') %]</option>
321
                            </select>
322
                            </select>
322
                            <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
323
                            <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
323
                            <input type="hidden" value="mod_basket" name="op" />
324
                            <input type="hidden" value="mod_basket" name="op" />
Lines 325-332 Link Here
325
                            <input type="submit" value="Change basket group" />
326
                            <input type="submit" value="Change basket group" />
326
                          [% END %]
327
                          [% END %]
327
                        </li>
328
                        </li>
328
                    [% IF basketgroup.deliveryplace %]<li><span class="label">Basket group delivery placename:</span> [% Branches.GetName( basketgroup.deliveryplace ) %]</li>[% END %]
329
                    [% IF basketgroup.deliveryplace %]<li><span class="label">[% t('Basket group delivery placename:') %]</span> [% Branches.GetName( basketgroup.deliveryplace ) %]</li>[% END %]
329
                    [% IF basketgroup.billingplace %]<li><span class="label">Basket group billing place:</span> [% Branches.GetName( basketgroup.billingplace ) %]</li>[% END %]
330
                    [% IF basketgroup.billingplace %]<li><span class="label">[% t('Basket group billing place:') %]</span> [% Branches.GetName( basketgroup.billingplace ) %]</li>[% END %]
330
                        </ol>
331
                        </ol>
331
                    [% IF ( CAN_user_acquisition_group_manage ) %]
332
                    [% IF ( CAN_user_acquisition_group_manage ) %]
332
                    </form>
333
                    </form>
Lines 337-373 Link Here
337
            </div>
338
            </div>
338
        [% END %]
339
        [% END %]
339
        [% IF ( duplinbatch ) %]<div class="dialog alert">
340
        [% IF ( duplinbatch ) %]<div class="dialog alert">
340
        <h4>Duplicate warning</h4>
341
        <h4>[% t('Duplicate warning') %]</h4>
341
        <p>Some records have not been automatically added because they match an existing record in your catalog:<a href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% duplinbatch %]&amp;basketno=[% basketno %]&amp;booksellerid=[% booksellerid %]" title="Open in new window" target="_blank" class="popup" style="margin-left:10px">Display them</a></p>
342
        <p>[% t('Some records have not been automatically added because they match an existing record in your catalog:') %]<a href="/cgi-bin/koha/acqui/addorderiso2709.pl?import_batch_id=[% duplinbatch %]&basketno=[% basketno %]&booksellerid=[% booksellerid %]" title="[% t('Open in new window') %]" target="_blank" class="popup" style="margin-left:10px">[% t('Display them') %]</a></p>
342
        </div>[% END %]
343
        </div>[% END %]
343
344
344
        <div id="acqui_basket_content" class="yui-g">
345
        <div id="acqui_basket_content" class="yui-g">
345
        [% IF ( books_loop ) %]
346
        [% IF ( books_loop ) %]
346
        <h2>Orders</h2>
347
        <h2>[% t('Orders') %]</h2>
347
        <label for="show_all_details">
348
        <label for="show_all_details">
348
            <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
349
            <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
349
            Show all details
350
            [% t('Show all details') %]
350
        </label>
351
        </label>
351
            <table id="orders">
352
            <table id="orders">
352
                <thead>
353
                <thead>
353
                    <tr>
354
                    <tr>
354
                        <th>No.</th>
355
                        <th>[% t('No.') %]</th>
355
                        <th class="anti-the">Order</th>
356
                        <th class="anti-the">[% t('Order') %]</th>
356
                        <th class="tax_excluded">RRP tax exc.</th>
357
                        <th class="tax_excluded">[% t('RRP tax exc.') %]</th>
357
                        <th class="tax_excluded">ecost tax exc.</th>
358
                        <th class="tax_excluded">[% t('ecost tax exc.') %]</th>
358
                        <th class="tax_included">RRP tax inc.</th>
359
                        <th class="tax_included">[% t('RRP tax inc.') %]</th>
359
                        <th class="tax_included">ecost tax inc.</th>
360
                        <th class="tax_included">[% t('ecost tax inc.') %]</th>
360
                        <th>Qty.</th>
361
                        <th>[% t('Qty.') %]</th>
361
                        <th class="tax_excluded">Total tax exc. ([% currency %])</th>
362
                        <th class="tax_excluded">[% t('Total tax exc. (') %][% currency %])</th>
362
                        <th class="tax_included">Total tax inc. ([% currency %])</th>
363
                        <th class="tax_included">[% t('Total tax inc. (') %][% currency %])</th>
363
                        <th>GST %</th>
364
                        <th>[% t('GST %') %]</th>
364
                        <th>GST</th>
365
                        <th>[% t('GST') %]</th>
365
                        <th>Fund</th>
366
                        <th>[% t('Fund') %]</th>
366
                        <th>Supplier report</th>
367
                        <th>[% t('Supplier report') %]</th>
367
                        [% IF ( active ) %]
368
                        [% IF ( active ) %]
368
                            [% UNLESS ( closedate ) %]
369
                            [% UNLESS ( closedate ) %]
369
                                <th>Modify</th>
370
                                <th>[% t('Modify') %]</th>
370
                                <th>Cancel order</th>
371
                                <th>[% t('Cancel order') %]</th>
371
                            [% END %]
372
                            [% END %]
372
                        [% END %]
373
                        [% END %]
373
                    </tr>
374
                    </tr>
Lines 376-419 Link Here
376
                [% FOREACH foot_loo IN book_foot_loop %]
377
                [% FOREACH foot_loo IN book_foot_loop %]
377
                    <tr>
378
                    <tr>
378
                        <th></th>
379
                        <th></th>
379
                        <th>Total (GST [% foot_loo.tax_rate * 100 %])</th>
380
                        <th>[% t('Total (GST') %] [% foot_loo.tax_rate * 100 %])</th>
380
                        <th class="tax_excluded">&nbsp;</th>
381
                        <th class="tax_excluded"> </th>
381
                        <th class="tax_excluded">&nbsp;</th>
382
                        <th class="tax_excluded"> </th>
382
                        <th class="tax_included">&nbsp;</th>
383
                        <th class="tax_included"> </th>
383
                        <th class="tax_included">&nbsp;</th>
384
                        <th class="tax_included"> </th>
384
                        <th>[% foot_loo.quantity %]</th>
385
                        <th>[% foot_loo.quantity %]</th>
385
                        <th class="tax_excluded">[% foot_loo.total_tax_excluded | $Price%]</th>
386
                        <th class="tax_excluded">[% foot_loo.total_tax_excluded | $Price%]</th>
386
                        <th class="tax_included">[% foot_loo.total_tax_included | $Price %]</th>
387
                        <th class="tax_included">[% foot_loo.total_tax_included | $Price %]</th>
387
                        <th>&nbsp;</th>
388
                        <th> </th>
388
                        <th>[% foot_loo.tax_value | $Price %]</th>
389
                        <th>[% foot_loo.tax_value | $Price %]</th>
389
                        <th>&nbsp;</th>
390
                        <th> </th>
390
                        <th>&nbsp;</th>
391
                        <th> </th>
391
                        [% IF ( active ) %]
392
                        [% IF ( active ) %]
392
                            [% UNLESS ( closedate ) %]
393
                            [% UNLESS ( closedate ) %]
393
                                <th>&nbsp;</th>
394
                                <th> </th>
394
                                <th>&nbsp;</th>
395
                                <th> </th>
395
                            [% END %]
396
                            [% END %]
396
                        [% END %]
397
                        [% END %]
397
                    </tr>
398
                    </tr>
398
                [% END %]
399
                [% END %]
399
                <tr>
400
                <tr>
400
                    <th></th>
401
                    <th></th>
401
                    <th>Total ([% currency %])</th>
402
                    <th>[% t('Total (') %][% currency %])</th>
402
                    <th class="tax_excluded">&nbsp;</th>
403
                    <th class="tax_excluded"> </th>
403
                    <th class="tax_excluded">&nbsp;</th>
404
                    <th class="tax_excluded"> </th>
404
                    <th class="tax_included">&nbsp;</th>
405
                    <th class="tax_included"> </th>
405
                    <th class="tax_included">&nbsp;</th>
406
                    <th class="tax_included"> </th>
406
                    <th>[% total_quantity %]</th>
407
                    <th>[% total_quantity %]</th>
407
                    <th class="tax_excluded">[% total_tax_excluded | $Price %]</th>
408
                    <th class="tax_excluded">[% total_tax_excluded | $Price %]</th>
408
                    <th class="tax_included">[% total_tax_included | $Price %]</th>
409
                    <th class="tax_included">[% total_tax_included | $Price %]</th>
409
                    <th>&nbsp;</th>
410
                    <th> </th>
410
                    <th>[% total_tax_value | $Price %]</th>
411
                    <th>[% total_tax_value | $Price %]</th>
411
                    <th>&nbsp;</th>
412
                    <th> </th>
412
                    <th>&nbsp;</th>
413
                    <th> </th>
413
                    [% IF ( active ) %]
414
                    [% IF ( active ) %]
414
                        [% UNLESS ( closedate ) %]
415
                        [% UNLESS ( closedate ) %]
415
                            <th>&nbsp;</th>
416
                            <th> </th>
416
                            <th>&nbsp;</th>
417
                            <th> </th>
417
                        [% END %]
418
                        [% END %]
418
                    [% END %]
419
                    [% END %]
419
                </tr>
420
                </tr>
Lines 430-440 Link Here
430
                        </td>
431
                        </td>
431
                        <td>
432
                        <td>
432
                            <p>
433
                            <p>
433
                                [% IF ( books_loo.order_received ) %] (rcvd)[% END %]
434
                                [% IF ( books_loo.order_received ) %] [% t('(rcvd)') %][% END %]
434
                                [% IF books_loo.title %]
435
                                [% IF books_loo.title %]
435
                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a>[% IF books_loo.author %] by [% books_loo.author %][% END %]
436
                                    <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% books_loo.biblionumber %]">[% books_loo.title |html %]</a>[% IF books_loo.author %] [% t('by') %] [% books_loo.author %][% END %]
436
                                [% ELSE %]
437
                                [% ELSE %]
437
                                    <em>Deleted bibliographic record, can't find title</em><br />
438
                                    <em>[% t('Deleted bibliographic record, can\'t find title') %]</em><br />
438
                                [% END %]
439
                                [% END %]
439
                                <br />
440
                                <br />
440
                                [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
441
                                [% IF ( books_loo.isbn ) %] - [% books_loo.isbn %][% END %]
Lines 444-472 Link Here
444
                                [% ELSIF ( books_loo.copyrightdate ) %] [% books_loo.copyrightdate %][% END %]
445
                                [% ELSIF ( books_loo.copyrightdate ) %] [% books_loo.copyrightdate %][% END %]
445
                                [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
446
                                [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
446
                                [% IF ( books_loo.suggestionid ) %]
447
                                [% IF ( books_loo.suggestionid ) %]
447
                                    <br/>
448
                                    <br />
448
                                    Suggested by: [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
449
                                    [% t('Suggested by:') %] [% books_loo.surnamesuggestedby %][% IF ( books_loo.firstnamesuggestedby ) %], [% books_loo.firstnamesuggestedby %] [% END %]
449
                                    (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&amp;op=show">suggestion #[% books_loo.suggestionid %]</a>)
450
                                    (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% books_loo.suggestionid %]&op=show">[% t('suggestion #') %][% books_loo.suggestionid %]</a>)
450
                                [% END %]
451
                                [% END %]
451
                            </p>
452
                            </p>
452
                                [% IF ( books_loo.order_internalnote ) %]
453
                                [% IF ( books_loo.order_internalnote ) %]
453
                                    <p class="ordernote"><strong>Internal note: </strong>[% books_loo.order_internalnote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=internal">Change internal note</a>]</p>
454
                                    <p class="ordernote"><strong>[% t('Internal note:') %] </strong>[% books_loo.order_internalnote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=internal">[% t('Change internal note') %]</a>]</p>
454
                                [% ELSE %]
455
                                [% ELSE %]
455
                                    [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=internal">Add internal note</a>]
456
                                    [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=internal">[% t('Add internal note') %]</a>]
456
                                [% END %]
457
                                [% END %]
457
                                [% IF ( books_loo.order_vendornote ) %]
458
                                [% IF ( books_loo.order_vendornote ) %]
458
                                    <p class="ordernote"><strong>Vendor note: </strong>[% books_loo.order_vendornote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=vendor">Change vendor note</a>]</p>
459
                                    <p class="ordernote"><strong>[% t('Vendor note:') %] </strong>[% books_loo.order_vendornote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=vendor">[% t('Change vendor note') %]</a>]</p>
459
                                [% ELSE %]
460
                                [% ELSE %]
460
                                    [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=vendor">Add vendor note</a>]
461
                                    [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% books_loo.ordernumber %]&type=vendor">[% t('Add vendor note') %]</a>]
461
                                [% END %]
462
                                [% END %]
462
                            [% IF (books_loo.transferred_from) %]
463
                            [% IF (books_loo.transferred_from) %]
463
                              [% basket = books_loo.transferred_from.basket %]
464
                              [% basket = books_loo.transferred_from.basket %]
464
                              [% bookseller = books_loo.transferred_from.bookseller %]
465
                              [% bookseller = books_loo.transferred_from.bookseller %]
465
                              [% timestamp = books_loo.transferred_from.timestamp %]
466
                              [% timestamp = books_loo.transferred_from.timestamp %]
466
                              <p>Transferred from basket:
467
                              <p>[% t('Transferred from basket:') %]
467
                                <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
468
                                <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
468
                                (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
469
                                (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
469
                                on <span title="[% timestamp | $KohaDates with_hours = 1 %]">
470
                                [% t('on') %] <span title="[% timestamp | $KohaDates with_hours = 1 %]">
470
                                  [% timestamp | $KohaDates %]
471
                                  [% timestamp | $KohaDates %]
471
                                </span>
472
                                </span>
472
                              </p>
473
                              </p>
Lines 488-521 Link Here
488
                        [% IF ( active ) %]
489
                        [% IF ( active ) %]
489
                            [% UNLESS ( closedate ) %]
490
                            [% UNLESS ( closedate ) %]
490
                            <td>
491
                            <td>
491
                                <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Modify</a>
492
                                <a href="neworderempty.pl?ordernumber=[% books_loo.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">[% t('Modify') %]</a>
492
                                [% UNLESS (books_loo.order_received) %]
493
                                [% UNLESS (books_loo.order_received) %]
493
                                    <br />
494
                                    <br />
494
                                    <a href="#" class="transfer_order" data-ordernumber="[% books_loo.ordernumber %]">Transfer</a>
495
                                    <a href="#" class="transfer_order" data-ordernumber="[% books_loo.ordernumber %]">[% t('Transfer') %]</a>
495
                                [% END %]
496
                                [% END %]
496
                            </td>
497
                            </td>
497
                            <td>
498
                            <td>
498
                            [% IF ( books_loo.left_holds_on_order ) %]
499
                            [% IF ( books_loo.left_holds_on_order ) %]
499
                            <span class="button" title="Can't cancel order, ([% books_loo.holds_on_order %]) holds are linked with this order cancel holds first">Can't cancel order</span><br>
500
                            <span class="button" title="[% t('Can\'t cancel order, (') %][% books_loo.holds_on_order %][% t(') holds are linked with this order cancel holds first') %]">[% t('Can\'t cancel order') %]</span><br>
500
                            [% ELSE %]
501
                            [% ELSE %]
501
                            <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% books_loo.ordernumber %]&biblionumber=[% books_loo.biblionumber %]&basketno=[% basketno %]&referrer=/cgi-bin/koha/acqui/basket.pl%3Fbasketno=[% basketno %]" class="button">Cancel order</a><br>
502
                            <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% books_loo.ordernumber %]&biblionumber=[% books_loo.biblionumber %]&basketno=[% basketno %]&referrer=/cgi-bin/koha/acqui/basket.pl%3Fbasketno=[% basketno %]" class="button">[% t('Cancel order') %]</a><br>
502
                            [% END %]
503
                            [% END %]
503
                            [% IF ( books_loo.can_del_bib ) %]
504
                            [% IF ( books_loo.can_del_bib ) %]
504
                            <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% books_loo.ordernumber %]&biblionumber=[% books_loo.biblionumber %]&basketno=[% basketno %]&del_biblio=1&referrer=/cgi-bin/koha/acqui/basket.pl%3Fbasketno=[% basketno %]" class="button">Cancel order and delete catalog record</a><br>
505
                            <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% books_loo.ordernumber %]&biblionumber=[% books_loo.biblionumber %]&basketno=[% basketno %]&del_biblio=1&referrer=/cgi-bin/koha/acqui/basket.pl%3Fbasketno=[% basketno %]" class="button">[% t('Cancel order and delete catalog record') %]</a><br>
505
                            [% ELSE %]
506
                            [% ELSE %]
506
                            <span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br>
507
                            <span class="button" title="[% t('Can\'t delete catalog record, see constraints below') %]">[% t('Can\'t cancel order and delete catalog record') %]</span><br>
507
                            [% END %]
508
                            [% END %]
508
                            [% IF ( books_loo.left_item ) %]
509
                            [% IF ( books_loo.left_item ) %]
509
                            <b title="Can't delete catalog record, because of [% books_loo.items %] existing hold(s)" >[% books_loo.items %] item(s) left</b><br>
510
                            <b title="[% t('Can\'t delete catalog record, because of') %] [% books_loo.items %] [% t('existing hold(s)') %]">[% books_loo.items %] [% t('item(s) left') %]</b><br>
510
                            [% END %]
511
                            [% END %]
511
                            [% IF ( books_loo.left_biblio ) %]
512
                            [% IF ( books_loo.left_biblio ) %]
512
                            <b title="Can't delete catalog record, delete other orders linked to it first">[% books_loo.biblios %] order(s) left</b><br>
513
                            <b title="[% t('Can\'t delete catalog record, delete other orders linked to it first') %]">[% books_loo.biblios %] [% t('order(s) left') %]</b><br>
513
                            [% END %]
514
                            [% END %]
514
                            [% IF ( books_loo.left_subscription ) %]
515
                            [% IF ( books_loo.left_subscription ) %]
515
                            <b title="Can't delete catalog record, delete subscriptions first">[% books_loo.subscriptions %] subscription(s) left</b><br>
516
                            <b title="[% t('Can\'t delete catalog record, delete subscriptions first') %]">[% books_loo.subscriptions %] [% t('subscription(s) left') %]</b><br>
516
                            [% END %]
517
                            [% END %]
517
                            [% IF ( books_loo.left_holds ) %]
518
                            [% IF ( books_loo.left_holds ) %]
518
                            <b title="Can't delete catalog record or order, cancel holds first">[% books_loo.holds %] hold(s) left</b>
519
                            <b title="[% t('Can\'t delete catalog record or order, cancel holds first') %]">[% books_loo.holds %] [% t('hold(s) left') %]</b>
519
                            [% END %]
520
                            [% END %]
520
                            </td>
521
                            </td>
521
                            [% END %]
522
                            [% END %]
Lines 525-551 Link Here
525
                </tbody>
526
                </tbody>
526
            </table>
527
            </table>
527
        [% END %]
528
        [% END %]
528
        [% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
529
        [% IF ( listincgst ) %]<small class="highlight">[% t('** Vendor\'s listings already include tax.') %]</small>
529
        [% END %]
530
        [% END %]
530
        </div>
531
        </div>
531
        [% IF (cancelledorders_loop) %]
532
        [% IF (cancelledorders_loop) %]
532
          <div id="cancelledorders">
533
          <div id="cancelledorders">
533
            <h2>Cancelled orders</h2>
534
            <h2>[% t('Cancelled orders') %]</h2>
534
            <table id="cancelledorderst">
535
            <table id="cancelledorderst">
535
              <thead>
536
              <thead>
536
                <tr>
537
                <tr>
537
                  <th>No.</th>
538
                  <th>[% t('No.') %]</th>
538
                  <th>Order</th>
539
                  <th>[% t('Order') %]</th>
539
                  <th class="tax_excluded">RRP tax exc.</th>
540
                  <th class="tax_excluded">[% t('RRP tax exc.') %]</th>
540
                  <th class="tax_excluded">ecost tax exc.</th>
541
                  <th class="tax_excluded">[% t('ecost tax exc.') %]</th>
541
                  <th class="tax_included">RRP tax inc.</th>
542
                  <th class="tax_included">[% t('RRP tax inc.') %]</th>
542
                  <th class="tax_included">ecost tax inc.</th>
543
                  <th class="tax_included">[% t('ecost tax inc.') %]</th>
543
                  <th>Qty.</th>
544
                  <th>[% t('Qty.') %]</th>
544
                  <th class="tax_excluded">Total tax exc. ([% currency %])</th>
545
                  <th class="tax_excluded">[% t('Total tax exc. (') %][% currency %])</th>
545
                  <th class="tax_included">Total tax inc. ([% currency %])</th>
546
                  <th class="tax_included">[% t('Total tax inc. (') %][% currency %])</th>
546
                  <th>GST %</th>
547
                  <th>[% t('GST %') %]</th>
547
                  <th>GST</th>
548
                  <th>[% t('GST') %]</th>
548
                  <th>Fund</th>
549
                  <th>[% t('Fund') %]</th>
549
                </tr>
550
                </tr>
550
              </thead>
551
              </thead>
551
              <tbody>
552
              <tbody>
Lines 556-566 Link Here
556
                    </td>
557
                    </td>
557
                    <td>
558
                    <td>
558
                      <p>
559
                      <p>
559
                        [% IF ( order.order_received ) %] (rcvd)[% END %]
560
                        [% IF ( order.order_received ) %] [% t('(rcvd)') %][% END %]
560
                        [% IF (order.title) %]
561
                        [% IF (order.title) %]
561
                          [% order.title |html %][% IF order.author %] by [% order.author %][% END %]
562
                          [% order.title |html %][% IF order.author %] [% t('by') %] [% order.author %][% END %]
562
                        [% ELSE %]
563
                        [% ELSE %]
563
                          <em>Deleted bibliographic record, can't find title</em>
564
                          <em>[% t('Deleted bibliographic record, can\'t find title') %]</em>
564
                        [% END %]
565
                        [% END %]
565
                        <br />
566
                        <br />
566
                        [% IF ( order.order_internalnote ) %] [% order.order_internalnote %][% END %]
567
                        [% IF ( order.order_internalnote ) %] [% order.order_internalnote %][% END %]
Lines 572-588 Link Here
572
                        [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
573
                        [% IF ( books_loo.editionstatement ) %], [% books_loo.editionstatement %][% END %]
573
                        [% IF ( order.cancellationreason ) %]
574
                        [% IF ( order.cancellationreason ) %]
574
                          <br />
575
                          <br />
575
                          Cancellation reason: [% AuthorisedValues.GetByCode( 'ORDER_CANCELLATION_REASON', order.cancellationreason ) %]
576
                          [% t('Cancellation reason:') %] [% AuthorisedValues.GetByCode( 'ORDER_CANCELLATION_REASON', order.cancellationreason ) %]
576
                        [% END %]
577
                        [% END %]
577
                      </p>
578
                      </p>
578
                      [% IF order.transferred_to %]
579
                      [% IF order.transferred_to %]
579
                        [% basket = order.transferred_to.basket %]
580
                        [% basket = order.transferred_to.basket %]
580
                        [% bookseller = order.transferred_to.bookseller %]
581
                        [% bookseller = order.transferred_to.bookseller %]
581
                        [% timestamp = order.transferred_to.timestamp %]
582
                        [% timestamp = order.transferred_to.timestamp %]
582
                        <p>Transferred to basket:
583
                        <p>[% t('Transferred to basket:') %]
583
                          <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
584
                          <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"> [% basket.basketname %]</a>
584
                          (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
585
                          (<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id %]">[% bookseller.name %]</a>)
585
                          on <span title="[% timestamp | $KohaDates with_hours = 1%]">
586
                          [% t('on') %] <span title="[% timestamp | $KohaDates with_hours = 1%]">
586
                            [% timestamp | $KohaDates %]
587
                            [% timestamp | $KohaDates %]
587
                          </span>
588
                          </span>
588
                        </p>
589
                        </p>
Lines 617-623 Link Here
617
        [% END %]
618
        [% END %]
618
        </div>
619
        </div>
619
        <div class="modal-footer">
620
        <div class="modal-footer">
620
            <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
621
            <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">[% t('Cancel') %]</a>
621
        </div>
622
        </div>
622
        </div>
623
        </div>
623
        </div>
624
        </div>
Lines 632-642 Link Here
632
        <div id="closebasket_needsconfirmation" class="dialog alert">
633
        <div id="closebasket_needsconfirmation" class="dialog alert">
633
634
634
        <form action="/cgi-bin/koha/acqui/basket.pl">
635
        <form action="/cgi-bin/koha/acqui/basket.pl">
635
            <h1>Are you sure you want to close basket [% basketname|html %]?</h1>
636
            <h1>[% t('Are you sure you want to close basket') %] [% basketname|html %]?</h1>
636
            [% IF ( CAN_user_acquisition_group_manage ) %]
637
            [% IF ( CAN_user_acquisition_group_manage ) %]
637
            <p>
638
            <p>
638
            <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
639
            <label for="createbasketgroup">[% t('Attach this basket to a new basket group with the same name') %]</label>
639
            <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
640
            <input type="checkbox" id="createbasketgroup" name="createbasketgroup" />
640
            </p>
641
            </p>
641
            [% END %]
642
            [% END %]
642
            <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
643
            <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
Lines 644-654 Link Here
644
            <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
645
            <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
645
            <input type="hidden" name="confirm" value="1" />
646
            <input type="hidden" name="confirm" value="1" />
646
            <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
647
            <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
647
            <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button>
648
            <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> [% t('Yes, close (Y)') %]</button>
648
        </form>
649
        </form>
649
        <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
650
        <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
650
            <input type="hidden" name="basketno" value="[% basketno %]" />
651
            <input type="hidden" name="basketno" value="[% basketno %]" />
651
            <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button>
652
            <button type="submit" class="deny" accesskey="n"><i class="fa fa-fw fa-remove"></i> [% t('No, don\'t close (N)') %]</button>
652
        </form>
653
        </form>
653
        </div>
654
        </div>
654
    [% END %]
655
    [% END %]
Lines 656-666 Link Here
656
        <div id="closebasket_needsconfirmation" class="dialog alert">
657
        <div id="closebasket_needsconfirmation" class="dialog alert">
657
658
658
        <form action="/cgi-bin/koha/acqui/basket.pl">
659
        <form action="/cgi-bin/koha/acqui/basket.pl">
659
            <h1>Are you sure you want to generate an EDIFACT order and close basket [% basketname|html %]?</h1>
660
            <h1>[% t('Are you sure you want to generate an EDIFACT order and close basket') %] [% basketname|html %]?</h1>
660
            [% IF CAN_user_acquisition_group_manage %]
661
            [% IF CAN_user_acquisition_group_manage %]
661
            <p>
662
            <p>
662
            <label for="createbasketgroup">Attach this basket to a new basket group with the same name</label>
663
            <label for="createbasketgroup">[% t('Attach this basket to a new basket group with the same name') %]</label>
663
            <input type="checkbox" id="createbasketgroup" name="createbasketgroup"/>
664
            <input type="checkbox" id="createbasketgroup" name="createbasketgroup" />
664
            </p>
665
            </p>
665
            [% END %]
666
            [% END %]
666
            <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
667
            <input type="hidden" id="basketno" value="[% basketno %]" name="basketno" />
Lines 669-679 Link Here
669
            <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
670
            <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
670
            <input type="hidden" name="confirm" value="1" />
671
            <input type="hidden" name="confirm" value="1" />
671
            <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
672
            <input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
672
            <button type="submit" class="approve" accesskey="Y"><i class="fa fa-fw fa-check"></i> Yes, close (Y)</button>
673
            <button type="submit" class="approve" accesskey="Y"><i class="fa fa-fw fa-check"></i> [% t('Yes, close (Y)') %]</button>
673
        </form>
674
        </form>
674
        <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
675
        <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
675
            <input type="hidden" name="basketno" value="[% basketno %]" />
676
            <input type="hidden" name="basketno" value="[% basketno %]" />
676
            <button type="submit" class="deny" accesskey="N"><i class="fa fa-fw fa-remove"></i> No, don't close (N)</button>
677
            <button type="submit" class="deny" accesskey="N"><i class="fa fa-fw fa-remove"></i> [% t('No, don\'t close (N)') %]</button>
677
        </form>
678
        </form>
678
        </div>
679
        </div>
679
    [% END %]
680
    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt (-60 / +61 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% USE Price %]
4
[% USE Price %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Basket grouping for [% booksellername |html %]</title>
6
<title>[% t('Koha › Basket grouping for') %] [% booksellername |html %]</title>
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'datatables.inc' %]
9
[% INCLUDE 'datatables.inc' %]
Lines 129-139 function submitForm(form) { Link Here
129
[% INCLUDE 'header.inc' %]
130
[% INCLUDE 'header.inc' %]
130
[% INCLUDE 'acquisitions-search.inc' %]
131
[% INCLUDE 'acquisitions-search.inc' %]
131
132
132
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
133
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> ›
133
[% IF ( grouping ) %]
134
[% IF ( grouping ) %]
134
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]">Basket grouping</a> &rsaquo; Add basket group for [% booksellername |html %]</div>
135
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]">[% t('Basket grouping') %]</a> [% t('› Add basket group for') %] [% booksellername |html %]</div>
135
[% ELSE %]
136
[% ELSE %]
136
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> &rsaquo; Basket grouping</div>
137
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> [% t('› Basket grouping') %]</div>
137
[% END %]
138
[% END %]
138
139
139
<div id="doc3" class="yui-t2">
140
<div id="doc3" class="yui-t2">
Lines 143-160 function submitForm(form) { Link Here
143
                [% IF ( grouping ) %]
144
                [% IF ( grouping ) %]
144
                    [% IF (closedbg) %]
145
                    [% IF (closedbg) %]
145
                        <div id="toolbar" class="btn-toolbar">
146
                        <div id="toolbar" class="btn-toolbar">
146
                            <div class="btn-group"><a href="[% script_name %]?op=reopen&amp;basketgroupid=[% basketgroupid %]&amp;booksellerid=[% booksellerid %]&amp;mode=singlebg" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-download"></i> Reopen this basket group</a></div>
147
                            <div class="btn-group"><a href="[% script_name %]?op=reopen&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]&mode=singlebg" class="btn btn-default btn-sm" id="reopenbutton"><i class="fa fa-download"></i> [% t('Reopen this basket group') %]</a></div>
147
                            <div class="btn-group"><a href="[% script_name %]?op=export&amp;basketgroupid=[% basketgroupid %]&amp;booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="exportbutton"><i class="fa fa-download"></i> Export this basket group as CSV</a></div>
148
                            <div class="btn-group"><a href="[% script_name %]?op=export&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="exportbutton"><i class="fa fa-download"></i> [% t('Export this basket group as CSV') %]</a></div>
148
                            <div class="btn-group"><a href="[% script_name %]?op=print&amp;basketgroupid=[% basketgroupid %]&amp;booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Print this basket group in PDF</a></div>
149
                            <div class="btn-group"><a href="[% script_name %]?op=print&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> [% t('Print this basket group in PDF') %]</a></div>
149
                            <div class="btn-group"><a href="[% script_name %]?op=ediprint&amp;basketgroupid=[% basketgroupid %]&amp;booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> Generate EDIFACT order</a></div>
150
                            <div class="btn-group"><a href="[% script_name %]?op=ediprint&basketgroupid=[% basketgroupid %]&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="printbutton"><i class="fa fa-download"></i> [% t('Generate EDIFACT order') %]</a></div>
150
                        </div>
151
                        </div>
151
                    [% END %]
152
                    [% END %]
152
                    [% IF (name && closedbg) %]
153
                    [% IF (name && closedbg) %]
153
                        <h1>Basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
154
                        <h1>[% t('Basket group') %] [% name %] ([% basketgroupid %][% t(') for') %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
154
                    [% ELSIF (name) %]
155
                    [% ELSIF (name) %]
155
                        <h1>Edit basket group [% name %] ([% basketgroupid %]) for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
156
                        <h1>[% t('Edit basket group') %] [% name %] ([% basketgroupid %][% t(') for') %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
156
                    [% ELSE %]
157
                    [% ELSE %]
157
                        <h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
158
                        <h1>[% t('Add basket group for') %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
158
                    [% END %]
159
                    [% END %]
159
                    <div id="basketgroupcolumns" class="yui-g">
160
                    <div id="basketgroupcolumns" class="yui-g">
160
                        [% UNLESS (closedbg) %]
161
                        [% UNLESS (closedbg) %]
Lines 162-181 function submitForm(form) { Link Here
162
                                <form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups">
163
                                <form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups">
163
                                    <div id="groups">
164
                                    <div id="groups">
164
                                        <fieldset class="brief">
165
                                        <fieldset class="brief">
165
                                            <div class="workarea_alt" >
166
                                            <div class="workarea_alt">
166
                                                <h3>Ungrouped baskets</h3>
167
                                                <h3>[% t('Ungrouped baskets') %]</h3>
167
                                                <ul id="ungrouped" class="draglist_alt">
168
                                                <ul id="ungrouped" class="draglist_alt">
168
                                                    [% IF ( baskets ) %]
169
                                                    [% IF ( baskets ) %]
169
                                                        [% FOREACH basket IN baskets %]
170
                                                        [% FOREACH basket IN baskets %]
170
                                                            <li class="ungrouped" id="b-[% basket.basketno %]" >
171
                                                            <li class="ungrouped" id="b-[% basket.basketno %]">
171
                                                                <a href="basket.pl?basketno=[% basket.basketno %]">
172
                                                                <a href="basket.pl?basketno=[% basket.basketno %]">
172
                                                                    [% IF ( basket.basketname ) %]
173
                                                                    [% IF ( basket.basketname ) %]
173
                                                                        [% basket.basketname %]
174
                                                                        [% basket.basketname %]
174
                                                                    [% ELSE %]
175
                                                                    [% ELSE %]
175
                                                                        No name, basketnumber: [% basket.basketno %]
176
                                                                        [% t('No name, basketnumber:') %] [% basket.basketno %]
176
                                                                    [% END %]
177
                                                                    [% END %]
177
                                                                </a>, <br />
178
                                                                </a>, <br />
178
                                                                Total: [% basket.total | $Price %]
179
                                                                [% t('Total:') %] [% basket.total | $Price %]
179
                                                                <input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" />
180
                                                                <input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" />
180
                                                            </li>
181
                                                            </li>
181
                                                        [% END %]
182
                                                        [% END %]
Lines 193-199 function submitForm(form) { Link Here
193
                                    <ol>
194
                                    <ol>
194
                                        [% UNLESS (closedbg) %]
195
                                        [% UNLESS (closedbg) %]
195
                                            <li>
196
                                            <li>
196
                                                <label for="basketgroupname">Basket group name:</label>
197
                                                <label for="basketgroupname">[% t('Basket group name:') %]</label>
197
                                                <input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" />
198
                                                <input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" class="focus" />
198
                                            </li>
199
                                            </li>
199
                                        [% ELSE %]
200
                                        [% ELSE %]
Lines 201-276 function submitForm(form) { Link Here
201
                                        [% END %]
202
                                        [% END %]
202
                                        <li>
203
                                        <li>
203
                                            [% UNLESS (closedbg) %]
204
                                            [% UNLESS (closedbg) %]
204
                                                <label for="billingplace">Billing place:</label>
205
                                                <label for="billingplace">[% t('Billing place:') %]</label>
205
                                                <select name="billingplace" id="billingplace">
206
                                                <select name="billingplace" id="billingplace">
206
                                                    <option value="">--</option>
207
                                                    <option value="">--</option>
207
                                                    [% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %]
208
                                                    [% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %]
208
                                                </select>
209
                                                </select>
209
                                            [% ELSE %]
210
                                            [% ELSE %]
210
                                                <span class="label">Billing place:</span>
211
                                                <span class="label">[% t('Billing place:') %]</span>
211
                                                <input name="billingplace" id="billingplace" type ="hidden" value="[% billingplace %]" />[% Branches.GetName( billingplace ) %]
212
                                                <input name="billingplace" id="billingplace" type="hidden" value="[% billingplace %]" />[% Branches.GetName( billingplace ) %]
212
                                            [% END %]
213
                                            [% END %]
213
                                        </li>
214
                                        </li>
214
                                        [% UNLESS (closedbg) %]
215
                                        [% UNLESS (closedbg) %]
215
                                            <li>
216
                                            <li>
216
                                                <label for="deliveryplace">Delivery place:</label>
217
                                                <label for="deliveryplace">[% t('Delivery place:') %]</label>
217
                                                <select name="deliveryplace" id="deliveryplace">
218
                                                <select name="deliveryplace" id="deliveryplace">
218
                                                    <option value="">--</option>
219
                                                    <option value="">--</option>
219
                                                    [% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %]
220
                                                    [% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %]
220
                                                <select>
221
                                                <select>
221
                                            </li>
222
                                            </li>
222
                                            <li><p>or</p></li>
223
                                            <li><p>[% t('or') %]</p></li>
223
                                            <li>
224
                                            <li>
224
                                                <label for="freedeliveryplace">Delivery place:</label>
225
                                                <label for="freedeliveryplace">[% t('Delivery place:') %]</label>
225
                                                <textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea>
226
                                                <textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea>
226
                                            </li>
227
                                            </li>
227
                                            [% ELSE %]
228
                                            [% ELSE %]
228
                                                <li>
229
                                                <li>
229
                                                    <span class="label">Delivery place:</span>
230
                                                    <span class="label">[% t('Delivery place:') %]</span>
230
                                                    [% IF (freedeliveryplace) %]
231
                                                    [% IF (freedeliveryplace) %]
231
                                                        <input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="[% freedeliveryplace %]" />[% freedeliveryplace %]
232
                                                        <input name="freedeliveryplace" id="freedeliveryplace" type="hidden" value="[% freedeliveryplace %]" />[% freedeliveryplace %]
232
                                                        <input name="deliveryplace" id="deliveryplace" type ="hidden" value="" />
233
                                                        <input name="deliveryplace" id="deliveryplace" type="hidden" value="" />
233
                                                    [% ELSE %]
234
                                                    [% ELSE %]
234
                                                        <input name="deliveryplace" id="deliveryplace" type ="hidden" value="[% deliveryplace %]" />[% Branches.GetName( deliveryplace ) %]
235
                                                        <input name="deliveryplace" id="deliveryplace" type="hidden" value="[% deliveryplace %]" />[% Branches.GetName( deliveryplace ) %]
235
                                                        <input name="freedeliveryplace" id="freedeliveryplace" type ="hidden" value="" />
236
                                                        <input name="freedeliveryplace" id="freedeliveryplace" type="hidden" value="" />
236
                                                    [% END %]
237
                                                    [% END %]
237
                                                </li>
238
                                                </li>
238
                                            [% END %]
239
                                            [% END %]
239
                                            <li>
240
                                            <li>
240
                                                [% UNLESS (closedbg) %]
241
                                                [% UNLESS (closedbg) %]
241
                                                    <label for="deliverycomment">Delivery comment:</label>
242
                                                    <label for="deliverycomment">[% t('Delivery comment:') %]</label>
242
                                                    <textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea>
243
                                                    <textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea>
243
                                                [% ELSE %]
244
                                                [% ELSE %]
244
                                                    <span class="label">Delivery comment:</span>[% deliverycomment %]
245
                                                    <span class="label">[% t('Delivery comment:') %]</span>[% deliverycomment %]
245
                                                    <input name="deliverycomment" id="deliverycomment" type="hidden" value = "[% deliverycomment %]" />
246
                                                    <input name="deliverycomment" id="deliverycomment" type="hidden" value="[% deliverycomment %]" />
246
                                                [% END %]
247
                                                [% END %]
247
                                            </li>
248
                                            </li>
248
                                            <li>
249
                                            <li>
249
                                                <span class="label">Baskets in this group:</span>
250
                                                <span class="label">[% t('Baskets in this group:') %]</span>
250
                                                [% UNLESS (closedbg) %]
251
                                                [% UNLESS (closedbg) %]
251
                                                    <ul class="draglist" id="bg">
252
                                                    <ul class="draglist" id="bg">
252
                                                [% ELSE %]
253
                                                [% ELSE %]
253
                                                    <ul>
254
                                                    <ul>
254
                                                [% END %]
255
                                                [% END %]
255
                                                [% FOREACH selectedbasket IN selectedbaskets %]
256
                                                [% FOREACH selectedbasket IN selectedbaskets %]
256
                                                    <li class="grouped" id="b-[% selectedbasket.basketno %]" >
257
                                                    <li class="grouped" id="b-[% selectedbasket.basketno %]">
257
                                                        <a href="basket.pl?basketno=[% selectedbasket.basketno %]">
258
                                                        <a href="basket.pl?basketno=[% selectedbasket.basketno %]">
258
                                                            [% IF ( selectedbasket.basketname ) %]
259
                                                            [% IF ( selectedbasket.basketname ) %]
259
                                                                [% selectedbasket.basketname %]
260
                                                                [% selectedbasket.basketname %]
260
                                                            [% ELSE %]
261
                                                            [% ELSE %]
261
                                                                No name, basketnumber: [% selectedbasket.basketno %]
262
                                                                [% t('No name, basketnumber:') %] [% selectedbasket.basketno %]
262
                                                            [% END %]
263
                                                            [% END %]
263
                                                        </a>, <br />
264
                                                        </a>, <br />
264
                                                        Total: [% selectedbasket.total | $Price %]
265
                                                        [% t('Total:') %] [% selectedbasket.total | $Price %]
265
                                                        <input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" />
266
                                                        <input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" />
266
                                                    </li>
267
                                                    </li>
267
                                                [% END %]
268
                                                [% END %]
268
                                            </ul>
269
                                            </ul>
269
                                        </li>
270
                                        </li>
270
                                            [% UNLESS (closedbg) %]
271
                                            [% UNLESS (closedbg) %]
271
                                                <li><label><input type="checkbox" id="closedbg" name="closedbg" />Close basket group</label></li>
272
                                                <li><label><input type="checkbox" id="closedbg" name="closedbg" />[% t('Close basket group') %]</label></li>
272
                                            [% ELSE %]
273
                                            [% ELSE %]
273
                                                <input type="hidden" id="closedbg" name="closedbg" value ="1"/>
274
                                                <input type="hidden" id="closedbg" name="closedbg" value="1" />
274
                                            [% END %]
275
                                            [% END %]
275
                                    </ol>
276
                                    </ol>
276
                                </fieldset>
277
                                </fieldset>
Lines 280-286 function submitForm(form) { Link Here
280
                                            <input type="hidden" name="basketgroupid" value="[% basketgroupid %]" />
281
                                            <input type="hidden" name="basketgroupid" value="[% basketgroupid %]" />
281
                                        [% END %]
282
                                        [% END %]
282
                                        <input type="hidden" name="op" value="attachbasket" />
283
                                        <input type="hidden" name="op" value="attachbasket" />
283
                                        <input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a>
284
                                        <input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">[% t('Cancel') %]</a>
284
                                    </fieldset>
285
                                    </fieldset>
285
                                [% END %]
286
                                [% END %]
286
                            </form>
287
                            </form>
Lines 288-313 function submitForm(form) { Link Here
288
                    </div>
289
                    </div>
289
                [% ELSE %]
290
                [% ELSE %]
290
                    <div id="toolbar" class="btn-toolbar">
291
                    <div id="toolbar" class="btn-toolbar">
291
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&amp;booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="newbasketgroup"><i class="fa fa-plus"></i> New basket group</a></div>
292
                        <div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-default btn-sm" id="newbasketgroup"><i class="fa fa-plus"></i> [% t('New basket group') %]</a></div>
292
                    </div>
293
                    </div>
293
                    <h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
294
                    <h1>[% t('Basket grouping for') %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
294
                    <div id="basket_groups" class="toptabs">
295
                    <div id="basket_groups" class="toptabs">
295
                        <ul class="ui-tabs-nav">
296
                        <ul class="ui-tabs-nav">
296
                            [% UNLESS ( listclosed) %]<li class="ui-tabs-active"><a href="#opened">Open</a></li>
297
                            [% UNLESS ( listclosed) %]<li class="ui-tabs-active"><a href="#opened">[% t('Open') %]</a></li>
297
                            [% ELSE%]<li><a href="#opened">Open</a></li>[% END %]
298
                            [% ELSE%]<li><a href="#opened">[% t('Open') %]</a></li>[% END %]
298
                            [% IF ( listclosed) %]<li class="ui-tabs-active"><a href="#closed">Closed</a></li>
299
                            [% IF ( listclosed) %]<li class="ui-tabs-active"><a href="#closed">[% t('Closed') %]</a></li>
299
                            [% ELSE %]<li><a href="#closed">Closed</a></li>[% END %]
300
                            [% ELSE %]<li><a href="#closed">[% t('Closed') %]</a></li>[% END %]
300
                        </ul>
301
                        </ul>
301
                        <div id="opened">
302
                        <div id="opened">
302
                            <table id="basket_group_opened">
303
                            <table id="basket_group_opened">
303
                                <thead>
304
                                <thead>
304
                                    <tr>
305
                                    <tr>
305
                                        <th>Name</th>
306
                                        <th>[% t('Name') %]</th>
306
                                        <th>Number</th>
307
                                        <th>[% t('Number') %]</th>
307
                                        <th>Billing place</th>
308
                                        <th>[% t('Billing place') %]</th>
308
                                        <th>Delivery place</th>
309
                                        <th>[% t('Delivery place') %]</th>
309
                                        <th>Number of baskets</th>
310
                                        <th>[% t('Number of baskets') %]</th>
310
                                        <th>Action</th>
311
                                        <th>[% t('Action') %]</th>
311
                                    </tr>
312
                                    </tr>
312
                                </thead>
313
                                </thead>
313
                                <tbody>
314
                                <tbody>
Lines 317-328 function submitForm(form) { Link Here
317
                                                <td>[% IF ( basketgroup.name ) %]
318
                                                <td>[% IF ( basketgroup.name ) %]
318
                                                    [% basketgroup.name %]
319
                                                    [% basketgroup.name %]
319
                                                    [% ELSE %]
320
                                                    [% ELSE %]
320
                                                        Basket group no. [% basketgroup.id %]
321
                                                        [% t('Basket group no.') %] [% basketgroup.id %]
321
                                                    [% END %]
322
                                                    [% END %]
322
                                                </td>
323
                                                </td>
323
                                                <td>[% basketgroup.id %]</td>
324
                                                <td>[% basketgroup.id %]</td>
324
                                                <td>[% Branches.GetName( basketgroup.billingplace ) %]</td>
325
                                                <td>[% Branches.GetName( basketgroup.billingplace ) %]</td>
325
                                                <td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td>
326
                                                <td>[% IF (basketgroup.freedeliveryplace) %][% t('Free delivery place') %][% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td>
326
                                                <td>[% basketgroup.basketsqty %]</td>
327
                                                <td>[% basketgroup.basketsqty %]</td>
327
                                                <td>
328
                                                <td>
328
                                                    <input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and export as PDF" />
329
                                                    <input type="button" onclick="closeandprint('[% basketgroup.id %]');" value="Close and export as PDF" />
Lines 341-352 function submitForm(form) { Link Here
341
                            <table id="basket_group_closed">
342
                            <table id="basket_group_closed">
342
                                <thead>
343
                                <thead>
343
                                    <tr>
344
                                    <tr>
344
                                        <th>Name</th>
345
                                        <th>[% t('Name') %]</th>
345
                                        <th>Number</th>
346
                                        <th>[% t('Number') %]</th>
346
                                        <th>Billing place</th>
347
                                        <th>[% t('Billing place') %]</th>
347
                                        <th>Delivery place</th>
348
                                        <th>[% t('Delivery place') %]</th>
348
                                        <th>Number of baskets</th>
349
                                        <th>[% t('Number of baskets') %]</th>
349
                                        <th>Action</th>
350
                                        <th>[% t('Action') %]</th>
350
                                    </tr>
351
                                    </tr>
351
                                </thead>
352
                                </thead>
352
                                <tbody>
353
                                <tbody>
Lines 357-368 function submitForm(form) { Link Here
357
                                                    [% IF ( basketgroup.name ) %]
358
                                                    [% IF ( basketgroup.name ) %]
358
                                                        [% basketgroup.name %]
359
                                                        [% basketgroup.name %]
359
                                                        [% ELSE %]
360
                                                        [% ELSE %]
360
                                                            Basket group no. [% basketgroup.id %]
361
                                                            [% t('Basket group no.') %] [% basketgroup.id %]
361
                                                        [% END %]
362
                                                        [% END %]
362
                                                </td>
363
                                                </td>
363
                                                <td>[% basketgroup.id %]</td>
364
                                                <td>[% basketgroup.id %]</td>
364
                                                <td>[% Branches.GetName( basketgroup.billingplace ) %]</td>
365
                                                <td>[% Branches.GetName( basketgroup.billingplace ) %]</td>
365
                                                <td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td>
366
                                                <td>[% IF (basketgroup.freedeliveryplace) %][% t('Free delivery place') %][% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) %][% END %]</td>
366
                                                <td>[% basketgroup.basketsqty %]</td>
367
                                                <td>[% basketgroup.basketsqty %]</td>
367
                                                <td>
368
                                                <td>
368
                                                    <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="View" /></form>
369
                                                    <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="View" /></form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt (-30 / +31 lines)
Lines 1-12 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Branches %]
3
[% USE Branches %]
3
[% USE Koha %]
4
[% USE Koha %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Acquisitions &rsaquo;
7
<title>[% t('Koha › Acquisitions ›') %]
7
[% IF ( add_form ) %]
8
[% IF ( add_form ) %]
8
    [% IF ( basketno ) %]Edit basket '[% basketname %]'
9
    [% IF ( basketno ) %][% t('Edit basket \'') %][% basketname %]'
9
        [% ELSE %]Add a basket to [% booksellername %]
10
        [% ELSE %][% t('Add a basket to') %] [% booksellername %]
10
    [% END %]
11
    [% END %]
11
[% END %]
12
[% END %]
12
</title>
13
</title>
Lines 18-29 Link Here
18
[% INCLUDE 'acquisitions-search.inc' %]
19
[% INCLUDE 'acquisitions-search.inc' %]
19
20
20
<div id="breadcrumbs">
21
<div id="breadcrumbs">
21
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
22
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
22
    <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
23
    <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> ›
23
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo;
24
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> ›
24
    [% IF ( add_form ) %]
25
    [% IF ( add_form ) %]
25
        [% IF ( basketno ) %]Edit basket '[% basketname |html %]'
26
        [% IF ( basketno ) %][% t('Edit basket \'') %][% basketname |html %]'
26
        [% ELSE %]Add a basket to [% booksellername %]
27
        [% ELSE %][% t('Add a basket to') %] [% booksellername %]
27
        [% END %]
28
        [% END %]
28
    [% END %]
29
    [% END %]
29
</div>
30
</div>
Lines 34-41 Link Here
34
35
35
    [% IF ( add_form ) %]
36
    [% IF ( add_form ) %]
36
        [% IF ( basketno ) %]
37
        [% IF ( basketno ) %]
37
            <h1>Edit basket [% basketname |html %]</h1>
38
            <h1>[% t('Edit basket') %] [% basketname |html %]</h1>
38
        [% ELSE %]<h1>Add a basket to [% booksellername %]</h1>
39
        [% ELSE %]<h1>[% t('Add a basket to') %] [% booksellername %]</h1>
39
        [% END %]
40
        [% END %]
40
    <form name="Aform" action="[% script_name %]" method="post" class="validated">
41
    <form name="Aform" action="[% script_name %]" method="post" class="validated">
41
        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
42
        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
Lines 48-73 Link Here
48
                    </li>
49
                    </li>
49
                [% END %]
50
                [% END %]
50
                <li>
51
                <li>
51
                    <label for="basketname" class="required">Basket name: </label> &nbsp;
52
                    <label for="basketname" class="required">[% t('Basket name:') %] </label>  
52
                        <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname %]" required="required" class="required" />
53
                        <input type="text" name="basketname" id="basketname" size="40" maxlength="80" value="[% basketname %]" required="required" class="required" />
53
                        <span class="required">Required</span>
54
                        <span class="required">[% t('Required') %]</span>
54
                </li>
55
                </li>
55
                 <li>
56
                 <li>
56
                    <label for="billingplace">Billing place:</label>
57
                    <label for="billingplace">[% t('Billing place:') %]</label>
57
                    <select name="billingplace" id="billingplace">
58
                    <select name="billingplace" id="billingplace">
58
                        <option value="">--</option>
59
                        <option value="">--</option>
59
                        [% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %]
60
                        [% PROCESS options_for_libraries libraries => Branches.all( selected => billingplace ) %]
60
                    </select>
61
                    </select>
61
                </li>
62
                </li>
62
                <li>
63
                <li>
63
                    <label for="deliveryplace">Delivery place:</label>
64
                    <label for="deliveryplace">[% t('Delivery place:') %]</label>
64
                    <select name="deliveryplace" id="deliveryplace">
65
                    <select name="deliveryplace" id="deliveryplace">
65
                        <option value="">--</option>
66
                        <option value="">--</option>
66
                        [% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %]
67
                        [% PROCESS options_for_libraries libraries => Branches.all( selected => deliveryplace ) %]
67
                    </select>
68
                    </select>
68
                </li>
69
                </li>
69
                <li>
70
                <li>
70
                    <label for="basketbooksellerid">Vendor: </label> &nbsp;
71
                    <label for="basketbooksellerid">[% t('Vendor:') %] </label>  
71
                    <select name="basketbooksellerid" id="basketbooksellerid">
72
                    <select name="basketbooksellerid" id="basketbooksellerid">
72
                    [% FOREACH b IN booksellers %]
73
                    [% FOREACH b IN booksellers %]
73
                        [% IF booksellerid == b.id %]
74
                        [% IF booksellerid == b.id %]
Lines 79-93 Link Here
79
            </select>
80
            </select>
80
                </li>
81
                </li>
81
                <li>
82
                <li>
82
                    <label for="basketnote">Internal note: </label> &nbsp;
83
                    <label for="basketnote">[% t('Internal note:') %] </label>  
83
                    <textarea name="basketnote" id="basketnote" rows="5" cols="40">[% basketnote |html %]</textarea>
84
                    <textarea name="basketnote" id="basketnote" rows="5" cols="40">[% basketnote |html %]</textarea>
84
                </li>
85
                </li>
85
                <li>
86
                <li>
86
                    <label for="basketbooksellernote">Vendor note: </label> &nbsp;
87
                    <label for="basketbooksellernote">[% t('Vendor note:') %] </label>  
87
                    <textarea name="basketbooksellernote" id="basketbooksellernote" rows="5" cols="40">[% basketbooksellernote |html %]</textarea>
88
                    <textarea name="basketbooksellernote" id="basketbooksellernote" rows="5" cols="40">[% basketbooksellernote |html %]</textarea>
88
                </li>
89
                </li>
89
                [% IF ( contractloop ) %]
90
                [% IF ( contractloop ) %]
90
                    <li><label for="basketcontractnumber">Contract: </label>
91
                    <li><label for="basketcontractnumber">[% t('Contract:') %] </label>
91
                        <select id="basketcontractnumber" name="basketcontractnumber">
92
                        <select id="basketcontractnumber" name="basketcontractnumber">
92
                            <option value=""></option>
93
                            <option value=""></option>
93
                            [% FOREACH contractloo IN contractloop %]
94
                            [% FOREACH contractloo IN contractloop %]
Lines 101-126 Link Here
101
                    </li>
102
                    </li>
102
                [% END %]
103
                [% END %]
103
                <li>
104
                <li>
104
                    <label for="is_standing">Orders are standing:</label>
105
                    <label for="is_standing">[% t('Orders are standing:') %]</label>
105
                    [% IF is_standing %]
106
                    [% IF is_standing %]
106
                        <input type="checkbox" id="is_standing" name="is_standing" checked="checked" />
107
                        <input type="checkbox" id="is_standing" name="is_standing" checked="checked" />
107
                    [% ELSE %]
108
                    [% ELSE %]
108
                        <input type="checkbox" id="is_standing" name="is_standing"/>
109
                        <input type="checkbox" id="is_standing" name="is_standing" />
109
                    [% END %]
110
                    [% END %]
110
                    <div class="hint">Standing orders do not close when received.</div>
111
                    <div class="hint">[% t('Standing orders do not close when received.') %]</div>
111
                </li>
112
                </li>
112
                [% UNLESS basketno %]
113
                [% UNLESS basketno %]
113
                 <li>
114
                 <li>
114
                    <label for="create_items">Create items when:</label>
115
                    <label for="create_items">[% t('Create items when:') %]</label>
115
                    <select name="create_items" id="create_items">
116
                    <select name="create_items" id="create_items">
116
                        [% SWITCH Koha.Preference('AcqCreateItem') %]
117
                        [% SWITCH Koha.Preference('AcqCreateItem') %]
117
                            [% CASE 'receiving' %]<option value="">use default (receiving an order)</option>
118
                            [% CASE 'receiving' %]<option value="">[% t('use default (receiving an order)') %]</option>
118
                            [% CASE 'cataloguing' %]<option value="">use default (cataloging the record)</option>
119
                            [% CASE 'cataloguing' %]<option value="">[% t('use default (cataloging the record)') %]</option>
119
                            [% CASE %]<option value="">use default (placing an order)</option>
120
                            [% CASE %]<option value="">[% t('use default (placing an order)') %]</option>
120
                        [% END %]
121
                        [% END %]
121
                        <option value="ordering">placing an order</option>
122
                        <option value="ordering">[% t('placing an order') %]</option>
122
                        <option value="receiving">receiving an order</option>
123
                        <option value="receiving">[% t('receiving an order') %]</option>
123
                        <option value="cataloguing">cataloging the record</option>
124
                        <option value="cataloguing">[% t('cataloging the record') %]</option>
124
                    </select>
125
                    </select>
125
                </li>
126
                </li>
126
                [% END %]
127
                [% END %]
Lines 130-138 Link Here
130
            <input type="hidden" name="op" value="add_validate" />
131
            <input type="hidden" name="op" value="add_validate" />
131
            <input type="submit" value="Save" />
132
            <input type="submit" value="Save" />
132
            [% IF ( basketno ) %]
133
            [% IF ( basketno ) %]
133
                <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>
134
                <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('Cancel') %]</a>
134
            [% ELSE %]
135
            [% ELSE %]
135
                <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">Cancel</a>
136
                <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% t('Cancel') %]</a>
136
            [% END %]
137
            [% END %]
137
        </fieldset>
138
        </fieldset>
138
    </form>
139
    </form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt (-32 / +33 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Search for vendor [% supplier %]</title>
6
<title>[% t('Koha › Search for vendor') %] [% supplier %]</title>
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
<style type="text/css">
8
<style type="text/css">
8
#vendors td{
9
#vendors td{
Lines 16-22 Link Here
16
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'acquisitions-search.inc' %]
18
[% INCLUDE 'acquisitions-search.inc' %]
18
19
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; Search for vendor <em>[% supplier |html %]</em> </div>
20
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> [% t('› Search for vendor') %] <em>[% supplier |html %]</em> </div>
20
21
21
<div id="doc3" class="yui-t2">
22
<div id="doc3" class="yui-t2">
22
   
23
   
Lines 27-42 Link Here
27
[% INCLUDE 'acquisitions-toolbar.inc' %]
28
[% INCLUDE 'acquisitions-toolbar.inc' %]
28
[% UNLESS ( count == 1 ) %]
29
[% UNLESS ( count == 1 ) %]
29
    [% UNLESS count %]
30
    [% UNLESS count %]
30
        <h1>Your search returned no results.</h1>
31
        <h1>[% t('Your search returned no results.') %]</h1>
31
    [% ELSIF ( supplier.length < 1 ) %]
32
    [% ELSIF ( supplier.length < 1 ) %]
32
        <h1>Vendor search: [% count %] results found</h1>
33
        <h1>[% t('Vendor search:') %] [% count %] [% t('results found') %]</h1>
33
    [% ELSE %]
34
    [% ELSE %]
34
        <h1>Vendor search: [% count %] results found for '[% supplier %]'</h1>
35
        <h1>[% t('Vendor search:') %] [% count %] [% t('results found for \'') %][% supplier %]'</h1>
35
    [% END %]
36
    [% END %]
36
[% END %]
37
[% END %]
37
[% IF ( loop_suppliers.size ) %]
38
[% IF ( loop_suppliers.size ) %]
38
    [% UNLESS (count == 1) %]
39
    [% UNLESS (count == 1) %]
39
        <p>Choose a vendor in the list to jump directly to the right place.
40
        <p>[% t('Choose a vendor in the list to jump directly to the right place.') %]
40
        <select id="supplierlist">
41
        <select id="supplierlist">
41
            [% FOREACH supplier1 IN loop_suppliers %]
42
            [% FOREACH supplier1 IN loop_suppliers %]
42
                <option value="[% supplier1.booksellerid %]">[% supplier1.name %]</option>
43
                <option value="[% supplier1.booksellerid %]">[% supplier1.name %]</option>
Lines 45-56 Link Here
45
        </p>
46
        </p>
46
    [% END %]
47
    [% END %]
47
    [% IF ( allbaskets ) %]
48
    [% IF ( allbaskets ) %]
48
        <a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&amp;booksellerid=[% booksellerid %]">Show active baskets only</a>
49
        <a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]">[% t('Show active baskets only') %]</a>
49
    [% ELSE %]
50
    [% ELSE %]
50
        <a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&amp;booksellerid=[% booksellerid %]&amp;allbaskets=1">Show all baskets</a>
51
        <a href="/cgi-bin/koha/acqui/booksellers.pl?supplier=[% supplier %]&booksellerid=[% booksellerid %]&allbaskets=1">[% t('Show all baskets') %]</a>
51
    [% END %]
52
    [% END %]
52
    [% UNLESS booksellerid %]
53
    [% UNLESS booksellerid %]
53
        | <a href="#" id="show_active_vendors">Show active vendors only</a><a href="#" id="show_all_vendors">Show all vendors</a>
54
        | <a href="#" id="show_active_vendors">[% t('Show active vendors only') %]</a><a href="#" id="show_all_vendors">[% t('Show all vendors') %]</a>
54
    [% END %]
55
    [% END %]
55
    <div id="acqui_order_supplierlist">
56
    <div id="acqui_order_supplierlist">
56
        [% FOREACH supplier IN loop_suppliers %]
57
        [% FOREACH supplier IN loop_suppliers %]
Lines 63-81 Link Here
63
                    [% IF (supplier.name) %]
64
                    [% IF (supplier.name) %]
64
                        <a name="[% supplier.booksellerid %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid %]">[% supplier.name |html %]</a>
65
                        <a name="[% supplier.booksellerid %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid %]">[% supplier.name |html %]</a>
65
                    [% ELSE %]
66
                    [% ELSE %]
66
                        <a name="[% supplier.booksellerid %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid %]">NO NAME</a>
67
                        <a name="[% supplier.booksellerid %]" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid %]">[% t('NO NAME') %]</a>
67
                    [% END %]
68
                    [% END %]
68
                </span>
69
                </span>
69
                <span class="action">
70
                <span class="action">
70
                    [% IF ( CAN_user_acquisition_order_manage ) %]
71
                    [% IF ( CAN_user_acquisition_order_manage ) %]
71
                        [% IF ( supplier.active ) %]
72
                        [% IF ( supplier.active ) %]
72
                            <a class="btn btn-default btn-sm" href="/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% supplier.booksellerid %]&amp;op=add_form"><i class="fa fa-plus"></i> New basket</a>
73
                            <a class="btn btn-default btn-sm" href="/cgi-bin/koha/acqui/basketheader.pl?booksellerid=[% supplier.booksellerid %]&op=add_form"><i class="fa fa-plus"></i> [% t('New basket') %]</a>
73
                        [% ELSE %]
74
                        [% ELSE %]
74
                            (inactive)
75
                            [% t('(inactive)') %]
75
                        [% END %]
76
                        [% END %]
76
                    [% END %]
77
                    [% END %]
77
                        [% IF ( supplier.loop_basket.size ) %]
78
                        [% IF ( supplier.loop_basket.size ) %]
78
                    <a class="btn btn-default btn-sm" href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% supplier.booksellerid %]"><i class="fa fa-inbox"></i> Receive shipment</a>
79
                    <a class="btn btn-default btn-sm" href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% supplier.booksellerid %]"><i class="fa fa-inbox"></i> [% t('Receive shipment') %]</a>
79
                        [% END %]
80
                        [% END %]
80
                </span>
81
                </span>
81
                <div class="baskets">
82
                <div class="baskets">
Lines 83-98 Link Here
83
                        <table class="baskets">
84
                        <table class="baskets">
84
                            <thead>
85
                            <thead>
85
                                <tr>
86
                                <tr>
86
                                    <th>No.</th>
87
                                    <th>[% t('No.') %]</th>
87
                                    <th>Name</th>
88
                                    <th>[% t('Name') %]</th>
88
                                    <th class="title-numeric">Item count</th>
89
                                    <th class="title-numeric">[% t('Item count') %]</th>
89
                                    <th class="title-numeric">Biblio count</th>
90
                                    <th class="title-numeric">[% t('Biblio count') %]</th>
90
                                    <th>Items expected</th>
91
                                    <th>[% t('Items expected') %]</th>
91
                                    <th>Created by</th>
92
                                    <th>[% t('Created by') %]</th>
92
                                    <th class="title-string">Date</th>
93
                                    <th class="title-string">[% t('Date') %]</th>
93
                                    <th>Basket group</th>
94
                                    <th>[% t('Basket group') %]</th>
94
                                    <th class="title-string">Closed</th>
95
                                    <th class="title-string">[% t('Closed') %]</th>
95
                                    <th>Actions</th>
96
                                    <th>[% t('Actions') %]</th>
96
                                </tr>
97
                                </tr>
97
                            </thead>
98
                            </thead>
98
                            <tbody>
99
                            <tbody>
Lines 107-120 Link Here
107
                                        <td>
108
                                        <td>
108
                                            <span title="[% basket.total_items %]">[% basket.total_items %]
109
                                            <span title="[% basket.total_items %]">[% basket.total_items %]
109
                                                [% IF basket.total_items_cancelled %]
110
                                                [% IF basket.total_items_cancelled %]
110
                                                    ([% basket.total_items_cancelled %] cancelled)
111
                                                    ([% basket.total_items_cancelled %] [% t('cancelled)') %]
111
                                                [% END %]
112
                                                [% END %]
112
                                            </span>
113
                                            </span>
113
                                        </td>
114
                                        </td>
114
                                        <td>
115
                                        <td>
115
                                            <span title="[% basket.total_biblios %]">[% basket.total_biblios %]
116
                                            <span title="[% basket.total_biblios %]">[% basket.total_biblios %]
116
                                                [% IF basket.total_biblios_cancelled %]
117
                                                [% IF basket.total_biblios_cancelled %]
117
                                                    ([% basket.total_biblios_cancelled %] cancelled)
118
                                                    ([% basket.total_biblios_cancelled %] [% t('cancelled)') %]
118
                                                [% END %]
119
                                                [% END %]
119
                                            </span>
120
                                            </span>
120
                                        </td>
121
                                        </td>
Lines 130-138 Link Here
130
                                          [% IF basket.basketgroup %]
131
                                          [% IF basket.basketgroup %]
131
                                            [% basketgroup = basket.basketgroup %]
132
                                            [% basketgroup = basket.basketgroup %]
132
                                            [% IF basketgroup.closed %]
133
                                            [% IF basketgroup.closed %]
133
                                              [% basketgroup.name %] (closed)
134
                                              [% basketgroup.name %] [% t('(closed)') %]
134
                                            [% ELSE %]
135
                                            [% ELSE %]
135
                                              <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&amp;booksellerid=[% basket.booksellerid %]&amp;basketgroupid=[% basketgroup.id %]">[% basketgroup.name %]</a>
136
                                              <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basket.booksellerid %]&basketgroupid=[% basketgroup.id %]">[% basketgroup.name %]</a>
136
                                            [% END %]
137
                                            [% END %]
137
                                          [% END %]
138
                                          [% END %]
138
                                        </td>
139
                                        </td>
Lines 140-153 Link Here
140
                                            [% IF ( basket.closedate ) %]
141
                                            [% IF ( basket.closedate ) %]
141
                                                <span title="[% basket.closedate %]">[% basket.closedate | $KohaDates %]</span>
142
                                                <span title="[% basket.closedate %]">[% basket.closedate | $KohaDates %]</span>
142
                                            [% ELSE %]
143
                                            [% ELSE %]
143
                                                <span title="9999-99-99"></span>
144
                                                <span title="[% t('9999-99-99') %]"></span>
144
                                            [% END %]
145
                                            [% END %]
145
                                        </td>
146
                                        </td>
146
                                        <td class="actions">
147
                                        <td class="actions">
147
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"><i class="fa fa-eye"></i> View</a>
148
                                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]"><i class="fa fa-eye"></i> [% t('View') %]</a>
148
149
149
                                            [% IF not basket.closedate and supplier.active %]
150
                                            [% IF not basket.closedate and supplier.active %]
150
                                                <a class="btn btn-default btn-xs" id="addtoBasketLabel[% basket.basketno %]" href="#addtoBasket[% basket.basketno %]" role="button" data-toggle="modal"><i class="fa fa-plus"></i> Add to basket</a>
151
                                                <a class="btn btn-default btn-xs" id="addtoBasketLabel[% basket.basketno %]" href="#addtoBasket[% basket.basketno %]" role="button" data-toggle="modal"><i class="fa fa-plus"></i> [% t('Add to basket') %]</a>
151
                                                <!-- Modal -->
152
                                                <!-- Modal -->
152
                                                <div id="addtoBasket[% basket.basketno %]" class="modal" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel[% basket.basketno %]" aria-hidden="true" data-basketno="[% basket.basketname %]">
153
                                                <div id="addtoBasket[% basket.basketno %]" class="modal" tabindex="-1" role="dialog" aria-labelledby="addtoBasketLabel[% basket.basketno %]" aria-hidden="true" data-basketno="[% basket.basketname %]">
153
                                                    <div class="modal-dialog">
154
                                                    <div class="modal-dialog">
Lines 156-162 Link Here
156
                                                        [% INCLUDE 'acquisitions-add-to-basket.inc' booksellerid=supplier.booksellerid basketno=basket.basketno %]
157
                                                        [% INCLUDE 'acquisitions-add-to-basket.inc' booksellerid=supplier.booksellerid basketno=basket.basketno %]
157
                                                    </div>
158
                                                    </div>
158
                                                    <div class="modal-footer">
159
                                                    <div class="modal-footer">
159
                                                        <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
160
                                                        <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">[% t('Cancel') %]</a>
160
                                                    </div>
161
                                                    </div>
161
                                                    </div>
162
                                                    </div>
162
                                                    </div>
163
                                                    </div>
Lines 169-175 Link Here
169
                        </table>
170
                        </table>
170
171
171
                    [% ELSE %]
172
                    [% ELSE %]
172
                        <p>No pending baskets</p>
173
                        <p>[% t('No pending baskets') %]</p>
173
                    [% END %][%# IF ( supplier.loop_basket.size ) %]
174
                    [% END %][%# IF ( supplier.loop_basket.size ) %]
174
                </div>
175
                </div>
175
            </div>
176
            </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/cancelorder.tt (-16 / +17 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Acquisition &rsaquo; Cancel order</title>
3
<title>[% t('Koha › Acquisition › Cancel order') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
6
Lines 7-17 Link Here
7
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'header.inc' %]
8
9
9
<div id="breadcrumbs">
10
<div id="breadcrumbs">
10
    <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;
11
    <a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> ›
11
    <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
12
    <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> ›
12
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% basket.bookseller.id %]">[% basket.bookseller.name | html %]</a> &rsaquo;
13
    <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% basket.bookseller.id %]">[% basket.bookseller.name | html %]</a> ›
13
    <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">Basket [% basket.basketname | html %] ([% basket.basketno %]) for [% basket.bookseller.name | html %]</a> &rsaquo;
14
    <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basket.basketno %]">[% t('Basket') %] [% basket.basketname | html %] ([% basket.basketno %][% t(') for') %] [% basket.bookseller.name | html %]</a> ›
14
    Cancel order
15
    [% t('Cancel order') %]
15
</div>
16
</div>
16
17
17
<div class="main container-fluid">
18
<div class="main container-fluid">
Lines 21-32 Link Here
21
      [% UNLESS ( confirmcancel ) %]
22
      [% UNLESS ( confirmcancel ) %]
22
      <form method="post" action="">
23
      <form method="post" action="">
23
        <div class="dialog alert">
24
        <div class="dialog alert">
24
          <h3>Are you sure you want to cancel this order ([% ordernumber %])</h3>
25
          <h3>[% t('Are you sure you want to cancel this order (') %][% ordernumber %])</h3>
25
          <p>
26
          <p>
26
            [% IF (del_biblio) %]
27
            [% IF (del_biblio) %]
27
              Bibliographic record will be deleted too.
28
              [% t('Bibliographic record will be deleted too.') %]
28
            [% ELSE %]
29
            [% ELSE %]
29
              Bibliographic record will not be deleted.
30
              [% t('Bibliographic record will not be deleted.') %]
30
            [% END %]
31
            [% END %]
31
          </p>
32
          </p>
32
          <p>
33
          <p>
Lines 40-64 Link Here
40
          [% IF (del_biblio) %]
41
          [% IF (del_biblio) %]
41
            <input type="hidden" value="1" name="del_biblio" />
42
            <input type="hidden" value="1" name="del_biblio" />
42
          [% END %]
43
          [% END %]
43
          <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> Yes, cancel (Y)</button>
44
          <button type="submit" class="approve" accesskey="y"><i class="fa fa-fw fa-check"></i> [% t('Yes, cancel (Y)') %]</button>
44
          <button class="deny" accesskey="n" onclick="window.location='[% referrer %]';return false;"><i class="fa fa-fw fa-remove"></i> No, don't cancel (N)</button>
45
          <button class="deny" accesskey="n" onclick="window.location='[% referrer %]';return false;"><i class="fa fa-fw fa-remove"></i> [% t('No, don\'t cancel (N)') %]</button>
45
        </div>
46
        </div>
46
      </form>
47
      </form>
47
      [% ELSE %]
48
      [% ELSE %]
48
        [% IF ( success_cancelorder ) %]
49
        [% IF ( success_cancelorder ) %]
49
            <div class="dialog message">
50
            <div class="dialog message">
50
                The order has been successfully cancelled
51
                [% t('The order has been successfully cancelled') %]
51
        [% ELSE %]
52
        [% ELSE %]
52
            <div class="dialog alert">
53
            <div class="dialog alert">
53
                An error has occurred.
54
                [% t('An error has occurred.') %]
54
                [% IF ( error_delitem ) %]
55
                [% IF ( error_delitem ) %]
55
                    <p>The order has been cancelled, although one or more items could not have been deleted.</p>
56
                    <p>[% t('The order has been cancelled, although one or more items could not have been deleted.') %]</p>
56
                [% END %]
57
                [% END %]
57
                [% IF ( error_delbiblio ) %]
58
                [% IF ( error_delbiblio ) %]
58
                <p>The order has been cancelled, although the record has not been deleted.</p>
59
                <p>[% t('The order has been cancelled, although the record has not been deleted.') %]</p>
59
                [% END %]
60
                [% END %]
60
        [% END %]
61
        [% END %]
61
                <p><a href="[% referrer %]">OK</a></p>
62
                <p><a href="[% referrer %]">[% t('OK') %]</a></p>
62
            </div>
63
            </div>
63
      [% END %]
64
      [% END %]
64
65
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/csv/lateorders.tt (-4 / +5 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[%- USE Koha -%]
2
[%- USE Koha -%]
2
[%- SET delimiter = Koha.Preference( 'delimiter' ) || ',' -%]
3
[%- SET delimiter = Koha.Preference( 'delimiter' ) || ',' -%]
3
4
Lines 6-16 Link Here
6
[%- INCLUDE empty_line.inc -%]
7
[%- INCLUDE empty_line.inc -%]
7
8
8
[%- FOREACH o IN orders -%]
9
[%- FOREACH o IN orders -%]
9
"[% o.orderdate %] ([% o.latesince %] days)"[%- delimiter -%]
10
"[% o.orderdate %] ([% o.latesince %] [% t('days)&#34;') %][%- delimiter -%]
10
"[% o.estimateddeliverydate | $KohaDates %]"[%- delimiter -%]
11
"[% o.estimateddeliverydate | $KohaDates %]"[%- delimiter -%]
11
"[% o.supplier (o.supplierid) %]"[%- delimiter -%]
12
"[% o.supplier (o.supplierid) %]"[%- delimiter -%]
12
"[% o.title %] [% IF o.author %]Author: [% o.author %].[% END %][% IF o.publisher %]Published by: [% o.publisher %].[% END %]"[%- delimiter -%]
13
"[% o.title %] [% IF o.author %][% t('Author:') %] [% o.author %].[% END %][% IF o.publisher %][% t('Published by:') %] [% o.publisher %].[% END %]"[%- delimiter -%]
13
"[% o.unitpricesupplier %] x [% o.quantity_to_receive %] = [% o.subtotal %] ([% o.budget %])"[%- delimiter -%]
14
"[% o.unitpricesupplier %] [% t('x') %] [% o.quantity_to_receive %] = [% o.subtotal %] ([% o.budget %])"[%- delimiter -%]
14
"[% o.basketname %] ([% o.basketno %])"[%- delimiter -%]
15
"[% o.basketname %] ([% o.basketno %])"[%- delimiter -%]
15
"[% o.claims_count %]"[%- delimiter -%]
16
"[% o.claims_count %]"[%- delimiter -%]
16
"[% o.claimed_date %]"
17
"[% o.claimed_date %]"
Lines 18-22 Link Here
18
[%- END -%]
19
[%- END -%]
19
[%- delimiter -%]
20
[%- delimiter -%]
20
[%- delimiter -%]
21
[%- delimiter -%]
21
"Total orders in late"[%- delimiter -%]
22
[% t('&#34;Total orders in late&#34;') %][%- delimiter -%]
22
[% orders.size %]
23
[% orders.size %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edi_ean.tt (-4 / +5 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Acquisitions &rsaquo; Basket ([% basketno %])</title>
3
<title>[% t('Koha › Acquisitions › Basket (') %][% basketno %])</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
5
5
</head>
6
</head>
Lines 7-13 Link Here
7
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'acquisitions-search.inc' %]
9
[% INCLUDE 'acquisitions-search.inc' %]
9
10
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; Basket ([% basketno %])</div>
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> [% t('› Basket (') %][% basketno %])</div>
11
12
12
<div id="doc3" class="yui-t2">
13
<div id="doc3" class="yui-t2">
13
14
Lines 15-24 Link Here
15
    <div id="yui-main">
16
    <div id="yui-main">
16
    <div class="yui-b">
17
    <div class="yui-b">
17
18
18
    <h2>Select the library account submitting the EDI order</h2>
19
    <h2>[% t('Select the library account submitting the EDI order') %]</h2>
19
    <br />
20
    <br />
20
    <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
21
    <form action="/cgi-bin/koha/acqui/basket.pl" method="get">
21
         <p>Select ordering library account: </p>
22
         <p>[% t('Select ordering library account:') %] </p>
22
         <select id="ean" name="ean">
23
         <select id="ean" name="ean">
23
             [% FOREACH eanacct IN eans %]
24
             [% FOREACH eanacct IN eans %]
24
             <option value="[% eanacct.ean %]">[% eanacct.branch.branchname %] ([% eanacct.ean %]) [% IF eanacct.description %][[% eanacct.description %]][% END %]</option>
25
             <option value="[% eanacct.ean %]">[% eanacct.branch.branchname %] ([% eanacct.ean %]) [% IF eanacct.description %][[% eanacct.description %]][% END %]</option>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edifactmsgs.tt (-21 / +22 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Acquisitions &rsaquo; EDIFACT messages</title>
6
<title>[% t('Koha › Acquisitions › EDIFACT messages') %]</title>
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
<style type="text/css">
9
<style type="text/css">
Lines 14-22 Link Here
14
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'header.inc' %]
15
[% INCLUDE 'acquisitions-search.inc' %]
16
[% INCLUDE 'acquisitions-search.inc' %]
16
<div id="breadcrumbs">
17
<div id="breadcrumbs">
17
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
18
<a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
18
&rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
19
› <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a>
19
&rsaquo; <a href="/cgi-bin/koha/acqui/edifactmsgs.pl">EDIFACT messages</a>
20
› <a href="/cgi-bin/koha/acqui/edifactmsgs.pl">[% t('EDIFACT messages') %]</a>
20
</div>
21
</div>
21
22
22
<div id="doc3" class="yui-t2">
23
<div id="doc3" class="yui-t2">
Lines 26-45 Link Here
26
    <div class="yui-b">
27
    <div class="yui-b">
27
28
28
29
29
<h1>EDIFACT messages</h1>
30
<h1>[% t('EDIFACT messages') %]</h1>
30
<div id="acqui_edifactmsgs">
31
<div id="acqui_edifactmsgs">
31
32
32
[% IF ( messages ) %]
33
[% IF ( messages ) %]
33
<table id="edi_msgs">
34
<table id="edi_msgs">
34
<thead>
35
<thead>
35
<tr>
36
<tr>
36
<th>Type</th>
37
<th>[% t('Type') %]</th>
37
<th class="title-string">Transferred</th>
38
<th class="title-string">[% t('Transferred') %]</th>
38
<th>Status</th>
39
<th>[% t('Status') %]</th>
39
<th>Vendor</th>
40
<th>[% t('Vendor') %]</th>
40
<th>Details</th>
41
<th>[% t('Details') %]</th>
41
<th>Filename</th>
42
<th>[% t('Filename') %]</th>
42
<th>Actions</th>
43
<th>[% t('Actions') %]</th>
43
</tr>
44
</tr>
44
</thead>
45
</thead>
45
<tbody>
46
<tbody>
Lines 57-77 Link Here
57
[% IF msg.message_type == 'QUOTE' || msg.message_type == 'ORDERS' %]
58
[% IF msg.message_type == 'QUOTE' || msg.message_type == 'ORDERS' %]
58
    [% IF msg.basketno %]
59
    [% IF msg.basketno %]
59
    <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% msg.basketno.basketno %]">
60
    <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% msg.basketno.basketno %]">
60
    Basket: [% msg.basketno.basketno %]
61
    [% t('Basket:') %] [% msg.basketno.basketno %]
61
    </a>
62
    </a>
62
    [% END %]
63
    [% END %]
63
[% ELSE %]
64
[% ELSE %]
64
<!-- Assuming invoices -->
65
<!-- Assuming invoices -->
65
     <a href="/cgi-bin/koha/acqui/invoices.pl?message_id=[% msg.id %]">
66
     <a href="/cgi-bin/koha/acqui/invoices.pl?message_id=[% msg.id %]">
66
      Invoices
67
      [% t('Invoices') %]
67
     </a>
68
     </a>
68
[% END %]
69
[% END %]
69
</td>
70
</td>
70
<td>[% msg.filename %]</td>
71
<td>[% msg.filename %]</td>
71
72
72
<td class="actions">
73
<td class="actions">
73
    <a class="btn btn-default btn-xs view_message" target="_blank" href="/cgi-bin/koha/acqui/edimsg.pl?id=[% msg.id %]"><i class="fa fa-search"></i> View message</a>
74
    <a class="btn btn-default btn-xs view_message" target="_blank" href="/cgi-bin/koha/acqui/edimsg.pl?id=[% msg.id %]"><i class="fa fa-search"></i> [% t('View message') %]</a>
74
    <a class="btn btn-default btn-xs delete_msg" href="/cgi-bin/koha/acqui/edifactmsgs.pl?op=delete&amp;message_id=[% msg.id %]"><i class="fa fa-trash"></i> Delete</a>
75
    <a class="btn btn-default btn-xs delete_msg" href="/cgi-bin/koha/acqui/edifactmsgs.pl?op=delete&message_id=[% msg.id %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
75
</td>
76
</td>
76
</tr>
77
</tr>
77
[% END %]
78
[% END %]
Lines 84-97 Link Here
84
    <div class="modal-dialog">
85
    <div class="modal-dialog">
85
    <div class="modal-content">
86
    <div class="modal-content">
86
    <div class="modal-header">
87
    <div class="modal-header">
87
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">&times;</button>
88
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
88
        <h3 id="EDI_modal_label">EDIFACT message</h3>
89
        <h3 id="EDI_modal_label">[% t('EDIFACT message') %]</h3>
89
    </div>
90
    </div>
90
    <div class="modal-body">
91
    <div class="modal-body">
91
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
92
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> [% t('Loading') %] </div>
92
    </div>
93
    </div>
93
    <div class="modal-footer">
94
    <div class="modal-footer">
94
        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
95
        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
95
    </div>
96
    </div>
96
    </div>
97
    </div>
97
    </div>
98
    </div>
Lines 99-105 Link Here
99
100
100
101
101
[% ELSE %]
102
[% ELSE %]
102
    <div class="dialog message">There are no EDIFACT messages.</div>
103
    <div class="dialog message">[% t('There are no EDIFACT messages.') %]</div>
103
[% END %]
104
[% END %]
104
105
105
</div>
106
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/edimsg.tt (-5 / +6 lines)
Lines 1-14 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Acquisitions &rsaquo; EDIFACT message display</title>
3
<title>[% t('Koha › Acquisitions › EDIFACT message display') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
<body id="acq_edifactmsgs" class="acq">
6
<body id="acq_edifactmsgs" class="acq">
6
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'header.inc' %]
7
[% INCLUDE 'acquisitions-search.inc' %]
8
[% INCLUDE 'acquisitions-search.inc' %]
8
<div id="breadcrumbs">
9
<div id="breadcrumbs">
9
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
10
<a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a>
10
&rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
11
› <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a>
11
&rsaquo; <a href="/cgi-bin/koha/acqui/edifactmsgs.pl">EDIFACT messages</a>
12
› <a href="/cgi-bin/koha/acqui/edifactmsgs.pl">[% t('EDIFACT messages') %]</a>
12
</div>
13
</div>
13
14
14
<div id="doc3" class="yui-t2">
15
<div id="doc3" class="yui-t2">
Lines 17-23 Link Here
17
            <div class="yui-b">
18
            <div class="yui-b">
18
                <div id="edimsg">
19
                <div id="edimsg">
19
                    [% IF no_message %]
20
                    [% IF no_message %]
20
                        <div class"dialog message">The requested message cannot be displayed</div>
21
                        <div class"dialog="" message"="">[% t('The requested message cannot be displayed') %]</div>
21
                    [% ELSE %]
22
                    [% ELSE %]
22
                        <ul>
23
                        <ul>
23
                            [% FOREACH seg IN segments %]
24
                            [% FOREACH seg IN segments %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt (-54 / +55 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE ColumnsSettings %]
4
[% USE ColumnsSettings %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( order_loop ) %]Orders search &rsaquo; Search results[% ELSE %]Order search[% END %]</title>
7
<title>[% t('Koha › Acquisitions ›') %] [% IF ( order_loop ) %][% t('Orders search › Search results') %][% ELSE %][% t('Order search') %][% END %]</title>
7
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/datatables.css") %]
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'acquisitions-search.inc' %]
14
[% INCLUDE 'acquisitions-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; [% IF ( order_loop ) %]<a href="/cgi-bin/koha/acqui/histsearch.pl">Orders search</a> &rsaquo; Search results[% ELSE %]Order search[% END %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › [% IF ( order_loop ) %]<a href="/cgi-bin/koha/acqui/histsearch.pl">[% t('Orders search') %]</a> [% t('› Search results') %][% ELSE %][% t('Order search') %][% END %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
   
19
   
Lines 22-98 Link Here
22
	
23
	
23
[% UNLESS ( order_loop ) %]<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
24
[% UNLESS ( order_loop ) %]<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
24
<fieldset class="rows">
25
<fieldset class="rows">
25
    <legend>Search orders</legend>
26
    <legend>[% t('Search orders') %]</legend>
26
		<ol>
27
		<ol>
27
		<li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% title %]" /></li>
28
		<li><label for="title">[% t('Title:') %] </label> <input type="text" name="title" id="title" value="[% title %]" /></li>
28
		<li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% author %]" /></li>
29
		<li><label for="author">[% t('Author:') %] </label> <input type="text" name="author" id="author" value="[% author %]" /></li>
29
        <li><label for="isbn">ISBN: </label> <input type="text" name="isbn" id="isbn" value="[% isbn %]" /></li>
30
        <li><label for="isbn">[% t('ISBN:') %] </label> <input type="text" name="isbn" id="isbn" value="[% isbn %]" /></li>
30
                [% IF (UNIMARC) %]
31
                [% IF (UNIMARC) %]
31
        <li><label for="ean">EAN: </label> <input type="text" name="ean" id="ean" value="[% ean %]" /></li>
32
        <li><label for="ean">[% t('EAN:') %] </label> <input type="text" name="ean" id="ean" value="[% ean %]" /></li>
32
                [% END %]
33
                [% END %]
33
		<li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="[% name %]" /></li>
34
		<li><label for="name">[% t('Vendor:') %] </label> <input type="text" name="name" id="name" value="[% name %]" /></li>
34
		<li><label for="basket">Basket: </label> <input type="text" name="basket" id="basket" value="[% basket %]" /></li>
35
		<li><label for="basket">[% t('Basket:') %] </label> <input type="text" name="basket" id="basket" value="[% basket %]" /></li>
35
        <li><label for="basket_creators">Basket created by: </label>
36
        <li><label for="basket_creators">[% t('Basket created by:') %] </label>
36
            <input autocomplete="off" id="find_patron" type="text" style="width:150px" class="noEnterSubmit" />
37
            <input autocomplete="off" id="find_patron" type="text" style="width:150px" class="noEnterSubmit" />
37
            <div>
38
            <div>
38
                <div id="basket_creators" style="float:left;"></div>
39
                <div id="basket_creators" style="float:left;"></div>
39
            </div>
40
            </div>
40
        </li>
41
        </li>
41
        <li><label for="booksellerinvoicenumber ">Bookseller invoice no: </label> <input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" value="[% booksellerinvoicenumber %]" /></li>
42
        <li><label for="booksellerinvoicenumber ">[% t('Bookseller invoice no:') %] </label> <input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" value="[% booksellerinvoicenumber %]" /></li>
42
        <li>
43
        <li>
43
            <label for="basketgroupname">Basket group:</label>
44
            <label for="basketgroupname">[% t('Basket group:') %]</label>
44
            <input type="text" name="basketgroupname" id="basketgroupname" value="[% basketgroupname %]" />
45
            <input type="text" name="basketgroupname" id="basketgroupname" value="[% basketgroupname %]" />
45
        </li>
46
        </li>
46
        <li>
47
        <li>
47
          <label for="ordernumber">Order line:</label>
48
          <label for="ordernumber">[% t('Order line:') %]</label>
48
          <input type="text" name="ordernumber" id="ordernumber" value="[% ordernumber %]" />
49
          <input type="text" name="ordernumber" id="ordernumber" value="[% ordernumber %]" />
49
          [% IF search_children_too %]
50
          [% IF search_children_too %]
50
            <input type="checkbox" name="search_children_too" id="search_children_too" value="1" checked="checked" />
51
            <input type="checkbox" name="search_children_too" id="search_children_too" value="1" checked="checked" />
51
          [% ELSE %]
52
          [% ELSE %]
52
            <input type="checkbox" name="search_children_too" id="search_children_too" value="1" />
53
            <input type="checkbox" name="search_children_too" id="search_children_too" value="1" />
53
          [% END %]
54
          [% END %]
54
          <label class="yesno" for="search_children_too">Display children too.</label>
55
          <label class="yesno" for="search_children_too">[% t('Display children too.') %]</label>
55
        </li>
56
        </li>
56
57
57
        <li>
58
        <li>
58
            <label for="orderstatus">Order status: </label>
59
            <label for="orderstatus">[% t('Order status:') %] </label>
59
            <select name="orderstatus" id="orderstatus">
60
            <select name="orderstatus" id="orderstatus">
60
                [% IF orderstatus == "" %]
61
                [% IF orderstatus == "" %]
61
                  <option value="">Any status except cancelled</option>
62
                  <option value="">[% t('Any status except cancelled') %]</option>
62
                [% ELSE %]
63
                [% ELSE %]
63
                  <option value="" selected="selected"></option>
64
                  <option value="" selected="selected"></option>
64
                [% END %]
65
                [% END %]
65
                [% IF orderstatus == "new" %]
66
                [% IF orderstatus == "new" %]
66
                  <option value="new" selected="selected">New</option>
67
                  <option value="new" selected="selected">[% t('New') %]</option>
67
                [% ELSE %]
68
                [% ELSE %]
68
                  <option value="new">New</option>
69
                  <option value="new">[% t('New') %]</option>
69
                [% END %]
70
                [% END %]
70
                [% IF orderstatus == "ordered" %]
71
                [% IF orderstatus == "ordered" %]
71
                  <option value="ordered" selected="selected">Ordered</option>
72
                  <option value="ordered" selected="selected">[% t('Ordered') %]</option>
72
                [% ELSE %]
73
                [% ELSE %]
73
                  <option value="ordered">Ordered</option>
74
                  <option value="ordered">[% t('Ordered') %]</option>
74
                [% END %]
75
                [% END %]
75
                [% IF orderstatus == "partial" %]
76
                [% IF orderstatus == "partial" %]
76
                  <option value="partial" selected="selected">Partially received</option>
77
                  <option value="partial" selected="selected">[% t('Partially received') %]</option>
77
                [% ELSE %]
78
                [% ELSE %]
78
                  <option value="partial">Partially received</option>
79
                  <option value="partial">[% t('Partially received') %]</option>
79
                [% END %]
80
                [% END %]
80
                [% IF orderstatus == "complete" %]
81
                [% IF orderstatus == "complete" %]
81
                  <option value="complete" selected="selected">Received</option>
82
                  <option value="complete" selected="selected">[% t('Received') %]</option>
82
                [% ELSE %]
83
                [% ELSE %]
83
                  <option value="complete">Received</option>
84
                  <option value="complete">[% t('Received') %]</option>
84
                [% END %]
85
                [% END %]
85
                [% IF orderstatus == "cancelled" %]
86
                [% IF orderstatus == "cancelled" %]
86
                  <option value="cancelled" selected="selected">Cancelled</option>
87
                  <option value="cancelled" selected="selected">[% t('Cancelled') %]</option>
87
                [% ELSE %]
88
                [% ELSE %]
88
                  <option value="cancelled">Cancelled</option>
89
                  <option value="cancelled">[% t('Cancelled') %]</option>
89
                [% END %]
90
                [% END %]
90
            </select>
91
            </select>
91
        </li>
92
        </li>
92
        <li>
93
        <li>
93
            <label for="fund">Fund: </label>
94
            <label for="fund">[% t('Fund:') %] </label>
94
            <select name="budget" id="fund">
95
            <select name="budget" id="fund">
95
                <option value="">All funds</option>
96
                <option value="">[% t('All funds') %]</option>
96
                [% FOREACH bp_loo IN bp_loop %]
97
                [% FOREACH bp_loo IN bp_loop %]
97
                    <optgroup label="[% bp_loo.budget_period_description %]">
98
                    <optgroup label="[% bp_loo.budget_period_description %]">
98
                    [% FOREACH h_loo IN bp_loo.hierarchy %]
99
                    [% FOREACH h_loo IN bp_loo.hierarchy %]
Lines 109-119 Link Here
109
            </select>
110
            </select>
110
        </li>
111
        </li>
111
112
112
		<li><label for="from">From: </label> 
113
		<li><label for="from">[% t('From:') %] </label> 
113
        <input type="text" size="10" id="from" name="from" value="[% from_placed_on | $KohaDates %]" class="datepickerfrom" />
114
        <input type="text" size="10" id="from" name="from" value="[% from_placed_on | $KohaDates %]" class="datepickerfrom" />
114
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
115
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
115
		</li>
116
		</li>
116
		<li><label for="to">To: </label> 
117
		<li><label for="to">[% t('To:') %] </label> 
117
        <input type="text" size="10" id="to" name="to" value="[% to_placed_on | $KohaDates %]" class="datepickerto" />
118
        <input type="text" size="10" id="to" name="to" value="[% to_placed_on | $KohaDates %]" class="datepickerto" />
118
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
119
				<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
119
		</li>
120
		</li>
Lines 122-146 Link Here
122
    <input type="hidden" name="do_search" value="1" />
123
    <input type="hidden" name="do_search" value="1" />
123
	<fieldset class="action"><input type="submit" value="Search" /></fieldset>
124
	<fieldset class="action"><input type="submit" value="Search" /></fieldset>
124
	</form>[% END %]
125
	</form>[% END %]
125
    [% IF ( order_loop ) %]<h1>Search results</h1>
126
    [% IF ( order_loop ) %]<h1>[% t('Search results') %]</h1>
126
	<div id="acqui_histsearch">
127
	<div id="acqui_histsearch">
127
        <table id="histsearcht">
128
        <table id="histsearcht">
128
            <thead>
129
            <thead>
129
			<tr>
130
			<tr>
130
                <th>Order line (parent)</th>
131
                <th>[% t('Order line (parent)') %]</th>
131
                <th>Status</th>
132
                <th>[% t('Status') %]</th>
132
				<th>Basket</th>
133
				<th>[% t('Basket') %]</th>
133
                <th>Basket creator</th>
134
                <th>[% t('Basket creator') %]</th>
134
				<th>Basket group</th>
135
				<th>[% t('Basket group') %]</th>
135
                <th>Invoice number</th>
136
                <th>[% t('Invoice number') %]</th>
136
                <th class="anti-the">Summary</th>
137
                <th class="anti-the">[% t('Summary') %]</th>
137
				<th>Vendor</th>
138
				<th>[% t('Vendor') %]</th>
138
                <th class="title-string">Placed on</th>
139
                <th class="title-string">[% t('Placed on') %]</th>
139
                <th class="title-string">Received on</th>
140
                <th class="title-string">[% t('Received on') %]</th>
140
                <th>Quantity received</th>
141
                <th>[% t('Quantity received') %]</th>
141
                <th>Pending order</th>
142
                <th>[% t('Pending order') %]</th>
142
				<th>Unit cost</th>
143
				<th>[% t('Unit cost') %]</th>
143
                <th>Fund</th>
144
                <th>[% t('Fund') %]</th>
144
			</tr>
145
			</tr>
145
            </thead>
146
            </thead>
146
            <tbody>
147
            <tbody>
Lines 152-162 Link Here
152
                    </td>
153
                    </td>
153
                    <td>
154
                    <td>
154
                        [% SWITCH order.orderstatus %]
155
                        [% SWITCH order.orderstatus %]
155
                            [% CASE 'new' %]New
156
                            [% CASE 'new' %][% t('New') %]
156
                            [% CASE 'ordered' %]Ordered
157
                            [% CASE 'ordered' %][% t('Ordered') %]
157
                            [% CASE 'partial' %]Partially received
158
                            [% CASE 'partial' %][% t('Partially received') %]
158
                            [% CASE 'complete' %]Received
159
                            [% CASE 'complete' %][% t('Received') %]
159
                            [% CASE 'cancelled' %]Cancelled
160
                            [% CASE 'cancelled' %][% t('Cancelled') %]
160
                        [% END %]
161
                        [% END %]
161
                    </td>
162
                    </td>
162
                    <td>[% order.basketname %] (<a href="basket.pl?basketno=[% order.basketno %]">[% order.basketno %]</a>)</td>
163
                    <td>[% order.basketname %] (<a href="basket.pl?basketno=[% order.basketno %]">[% order.basketno %]</a>)</td>
Lines 165-177 Link Here
165
                        [% IF ( order.basketgroupid ) %]
166
                        [% IF ( order.basketgroupid ) %]
166
                            [% order.groupname %] (<a href="basketgroup.pl?op=add&booksellerid=[% order.id %]&basketgroupid=[% order.basketgroupid %]">[% order.basketgroupid %]</a>)
167
                            [% order.groupname %] (<a href="basketgroup.pl?op=add&booksellerid=[% order.id %]&basketgroupid=[% order.basketgroupid %]">[% order.basketgroupid %]</a>)
167
                        [% ELSE %]
168
                        [% ELSE %]
168
                            &nbsp;
169
                             
169
                        [% END %]
170
                        [% END %]
170
                    </td>
171
                    </td>
171
                    <td>[% IF ( order.invoicenumber ) %]
172
                    <td>[% IF ( order.invoicenumber ) %]
172
                            <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% order.invoiceid %]">[% order.invoicenumber %]</a>
173
                            <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% order.invoiceid %]">[% order.invoicenumber %]</a>
173
                        [% ELSE %]
174
                        [% ELSE %]
174
                            &nbsp;
175
                             
175
                        [% END %]
176
                        [% END %]
176
                    </td>
177
                    </td>
177
                    <td>
178
                    <td>
Lines 184-190 Link Here
184
                        [% IF order.datereceived %]
185
                        [% IF order.datereceived %]
185
                            <span title="[% order.datereceived %]">[% order.datereceived | $KohaDates %]</span>
186
                            <span title="[% order.datereceived %]">[% order.datereceived | $KohaDates %]</span>
186
                        [% ELSE %]
187
                        [% ELSE %]
187
                            <span title="0000-00-00"></span>
188
                            <span title="[% t('0000-00-00') %]"></span>
188
                        [% END %]
189
                        [% END %]
189
                    </td>
190
                    </td>
190
                    <td>[% order.quantityreceived %]</td>
191
                    <td>[% order.quantityreceived %]</td>
Lines 197-203 Link Here
197
        </table>
198
        </table>
198
    </div>
199
    </div>
199
    [% ELSIF search_done %]
200
    [% ELSIF search_done %]
200
      There is no order for this search.
201
      [% t('There is no order for this search.') %]
201
    [% END %]
202
    [% END %]
202
203
203
</div>
204
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice-files.tt (-21 / +22 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Acquisitions &rsaquo; Invoice &rsaquo; Files</title>
6
<title>[% t('Koha › Acquisitions › Invoice › Files') %]</title>
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
Lines 11-78 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'acquisitions-search.inc' %]
13
[% INCLUDE 'acquisitions-search.inc' %]
13
14
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a> &rsaquo; <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">[% invoicenumber %]</a> &rsaquo; Files</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="/cgi-bin/koha/acqui/invoices.pl">[% t('Invoices') %]</a> › <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">[% invoicenumber %]</a> [% t('› Files') %]</div>
15
16
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
18
18
<div id="bd">
19
<div id="bd">
19
  <div id="yui-main">
20
  <div id="yui-main">
20
    <div class="yui-b">
21
    <div class="yui-b">
21
      <h2>Files for invoice: [% invoicenumber | html %]</h2>
22
      <h2>[% t('Files for invoice:') %] [% invoicenumber | html %]</h2>
22
      <p><b>Vendor: </b><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
23
      <p><b>[% t('Vendor:') %] </b><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
23
      <br />
24
      <br />
24
      [% IF errors %]
25
      [% IF errors %]
25
        <div class="dialog alert">
26
        <div class="dialog alert">
26
          [% IF errors.empty_upload %]The file you are attempting to upload has no contents.[% END %]
27
          [% IF errors.empty_upload %][% t('The file you are attempting to upload has no contents.') %][% END %]
27
          [% IF errors.no_file %]You did not select a file to upload.[% END %]
28
          [% IF errors.no_file %][% t('You did not select a file to upload.') %][% END %]
28
          [% IF errors.invalid_parameter %]Invalid or missing script parameter.[% END %]
29
          [% IF errors.invalid_parameter %][% t('Invalid or missing script parameter.') %][% END %]
29
        </div>
30
        </div>
30
      [% END %]
31
      [% END %]
31
      [% IF files %]
32
      [% IF files %]
32
          <table id="invoice_files_details_table">
33
          <table id="invoice_files_details_table">
33
              <thead>
34
              <thead>
34
                  <tr>
35
                  <tr>
35
                      <th>Name</th>
36
                      <th>[% t('Name') %]</th>
36
                      <th>Type</th>
37
                      <th>[% t('Type') %]</th>
37
                      <th>Description</th>
38
                      <th>[% t('Description') %]</th>
38
                      <th>Uploaded</th>
39
                      <th>[% t('Uploaded') %]</th>
39
                      <th>Bytes</th>
40
                      <th>[% t('Bytes') %]</th>
40
                      <th>&nbsp;</th>
41
                      <th> </th>
41
                      <th>&nbsp;</th>
42
                      <th> </th>
42
                  </tr>
43
                  </tr>
43
              </thead>
44
              </thead>
44
              <tbody>
45
              <tbody>
45
                [% FOREACH f IN files %]
46
                [% FOREACH f IN files %]
46
                  <tr>
47
                  <tr>
47
                      <td><a href="?invoiceid=[% invoiceid %]&amp;op=download&amp;view=1&amp;file_id=[% f.file_id %]">[% f.file_name | html %]</a></td>
48
                      <td><a href="?invoiceid=[% invoiceid %]&op=download&view=1&file_id=[% f.file_id %]">[% f.file_name | html %]</a></td>
48
                      <td>[% f.file_type | html %]</td>
49
                      <td>[% f.file_type | html %]</td>
49
                      <td>[% f.file_description | html %]</td>
50
                      <td>[% f.file_description | html %]</td>
50
                      <td class="title-string">
51
                      <td class="title-string">
51
                        <span title="[% f.date_uploaded %]">[% f.date_uploaded | $KohaDates %]</span>
52
                        <span title="[% f.date_uploaded %]">[% f.date_uploaded | $KohaDates %]</span>
52
                      </td>
53
                      </td>
53
                      <td>[% f.file_size %]</td>
54
                      <td>[% f.file_size %]</td>
54
                      <td><a class="delete_file" href="?invoiceid=[% invoiceid %]&amp;op=delete&amp;file_id=[% f.file_id %]">Delete</a></td>
55
                      <td><a class="delete_file" href="?invoiceid=[% invoiceid %]&op=delete&file_id=[% f.file_id %]">[% t('Delete') %]</a></td>
55
                      <td><a href="?invoiceid=[% invoiceid %]&amp;op=download&amp;file_id=[% f.file_id %]">Download</a></td>
56
                      <td><a href="?invoiceid=[% invoiceid %]&op=download&file_id=[% f.file_id %]">[% t('Download') %]</a></td>
56
                  </tr>
57
                  </tr>
57
                [% END %]
58
                [% END %]
58
              </tbody>
59
              </tbody>
59
          </table>
60
          </table>
60
      [% ELSE %]
61
      [% ELSE %]
61
          <div class="dialog message">
62
          <div class="dialog message">
62
              <p>This invoice has no files attached.</p>
63
              <p>[% t('This invoice has no files attached.') %]</p>
63
          </div>
64
          </div>
64
      [% END %]
65
      [% END %]
65
      [% IF invoiceid %]
66
      [% IF invoiceid %]
66
          <br />
67
          <br />
67
          <form method="post" action="/cgi-bin/koha/acqui/invoice-files.pl" enctype="multipart/form-data">
68
          <form method="post" action="/cgi-bin/koha/acqui/invoice-files.pl" enctype="multipart/form-data">
68
              <fieldset class="rows">
69
              <fieldset class="rows">
69
                  <legend>Upload New File</legend>
70
                  <legend>[% t('Upload New File') %]</legend>
70
                  <ol>
71
                  <ol>
71
                      <li><input type="hidden" name="op" value="upload" />
72
                      <li><input type="hidden" name="op" value="upload" />
72
                      <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
73
                      <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
73
                      <label for="description">Description:</label>
74
                      <label for="description">[% t('Description:') %]</label>
74
                      <input name="description" id="description" type="text" /></li>
75
                      <input name="description" id="description" type="text" /></li>
75
                      <li><label for="uploadfile">File:</label><input name="uploadfile" type="file" id="uploadfile" /></li>
76
                      <li><label for="uploadfile">[% t('File:') %]</label><input name="uploadfile" type="file" id="uploadfile" /></li>
76
                  </ol>
77
                  </ol>
77
                  <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
78
                  <fieldset class="action"><input name="upload" type="submit" id="upload" value="Upload File" /></fieldset>
78
              </fieldset>
79
              </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt (-56 / +57 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% USE Price %]
5
[% USE Price %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Acquisitions &rsaquo; Invoice</title>
8
<title>[% t('Koha › Acquisitions › Invoice') %]</title>
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
</head>
11
</head>
Lines 13-19 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'acquisitions-search.inc' %]
15
[% INCLUDE 'acquisitions-search.inc' %]
15
16
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/invoices.pl">Invoices</a> &rsaquo; <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">[% invoicenumber %]</a></div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="/cgi-bin/koha/acqui/invoices.pl">[% t('Invoices') %]</a> › <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">[% invoicenumber %]</a></div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
20
Lines 22-53 Link Here
22
    <div class="yui-b">
23
    <div class="yui-b">
23
      [% IF ( modified ) %]
24
      [% IF ( modified ) %]
24
        <div class="dialog message">
25
        <div class="dialog message">
25
          <p>Invoice has been modified</p>
26
          <p>[% t('Invoice has been modified') %]</p>
26
        </div>
27
        </div>
27
      [% END %]
28
      [% END %]
28
      <h1>Invoice: [% invoicenumber %]</h1>
29
      <h1>[% t('Invoice:') %] [% invoicenumber %]</h1>
29
30
30
      <p>Vendor: <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
31
      <p>[% t('Vendor:') %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% suppliername %]</a></p>
31
        <form action="/cgi-bin/koha/acqui/invoice.pl" method="post" class="validated">
32
        <form action="/cgi-bin/koha/acqui/invoice.pl" method="post" class="validated">
32
        <fieldset class="rows">
33
        <fieldset class="rows">
33
            <ol>
34
            <ol>
34
            <li>
35
            <li>
35
                <label for="shipmentdate" class="required">Invoice number:</label>
36
                <label for="shipmentdate" class="required">[% t('Invoice number:') %]</label>
36
                <input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber %]" class="required" required="required"/>
37
                <input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber %]" class="required" required="required" />
37
                <span class="required">Required</span>
38
                <span class="required">[% t('Required') %]</span>
38
            </li>
39
            </li>
39
40
40
            <li><label for="shipmentdate">Shipment date:</label>
41
            <li><label for="shipmentdate">[% t('Shipment date:') %]</label>
41
                    <input type="text" size="10" id="shipmentdate" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" class="datepicker" /></li>
42
                    <input type="text" size="10" id="shipmentdate" name="shipmentdate" value="[% shipmentdate | $KohaDates %]" class="datepicker" /></li>
42
43
43
            <li><label for="billingdate">Billing date:</label>
44
            <li><label for="billingdate">[% t('Billing date:') %]</label>
44
                    <input type="text" size="10" id="billingdate" name="billingdate" value="[% billingdate | $KohaDates %]" class="datepicker" /></li>
45
                    <input type="text" size="10" id="billingdate" name="billingdate" value="[% billingdate | $KohaDates %]" class="datepicker" /></li>
45
46
46
            <li><label for="shipmentcost">Shipping cost:</label>
47
            <li><label for="shipmentcost">[% t('Shipping cost:') %]</label>
47
                    <input type="text" size="10" id="shipmentcost" name="shipmentcost" value="[% shipmentcost %]" /></li>
48
                    <input type="text" size="10" id="shipmentcost" name="shipmentcost" value="[% shipmentcost %]" /></li>
48
            <li><label for="shipment_budget_id">Shipping fund:</label>
49
            <li><label for="shipment_budget_id">[% t('Shipping fund:') %]</label>
49
                    <select id="shipment_budget_id" name="shipment_budget_id">
50
                    <select id="shipment_budget_id" name="shipment_budget_id">
50
                        <option value="">No fund</option>
51
                        <option value="">[% t('No fund') %]</option>
51
                      [% FOREACH budget IN budgets_loop %]
52
                      [% FOREACH budget IN budgets_loop %]
52
                        [% IF ( budget.selected ) %]
53
                        [% IF ( budget.selected ) %]
53
                          <option selected="selected" value="[% budget.budget_id %]">
54
                          <option selected="selected" value="[% budget.budget_id %]">
Lines 60-74 Link Here
60
                    </select></li>
61
                    </select></li>
61
62
62
            [% IF ( invoiceclosedate ) %]
63
            [% IF ( invoiceclosedate ) %]
63
            <li><span class="label">Status:</span>
64
            <li><span class="label">[% t('Status:') %]</span>
64
                Closed on [% invoiceclosedate | $KohaDates %].</li>
65
                [% t('Closed on') %] [% invoiceclosedate | $KohaDates %].</li>
65
66
66
            <li><label for="reopen">Reopen: </label> <input type="checkbox" name="reopen" id="reopen" /></li>
67
            <li><label for="reopen">[% t('Reopen:') %] </label> <input type="checkbox" name="reopen" id="reopen" /></li>
67
            [% ELSE %]
68
            [% ELSE %]
68
            <li><span class="label">Status:</span>
69
            <li><span class="label">[% t('Status:') %]</span>
69
                Open.</li>
70
                [% t('Open.') %]</li>
70
71
71
            <li><label for="close">Close: </label> <input type="checkbox" name="close" id="close" />
72
            <li><label for="close">[% t('Close:') %] </label> <input type="checkbox" name="close" id="close" />
72
                </li>
73
                </li>
73
            [% END %]
74
            [% END %]
74
            </ol>
75
            </ol>
Lines 78-110 Link Here
78
        <fieldset class="action">
79
        <fieldset class="action">
79
            <input type="submit" value="Save" />
80
            <input type="submit" value="Save" />
80
            [% UNLESS orders_loop.size %]
81
            [% UNLESS orders_loop.size %]
81
            <a href="invoice.pl?op=delete&invoiceid=[% invoiceid %]" id="delete">Delete</a>
82
            <a href="invoice.pl?op=delete&invoiceid=[% invoiceid %]" id="delete">[% t('Delete') %]</a>
82
            [% END %]
83
            [% END %]
83
        </fieldset>
84
        </fieldset>
84
      </form>
85
      </form>
85
      <p>
86
      <p>
86
          <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Go to receipt page</a>
87
          <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">[% t('Go to receipt page') %]</a>
87
          [% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]">Manage invoice files</a>[% END %]
88
          [% IF Koha.Preference('AcqEnableFiles') %]| <a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]">[% t('Manage invoice files') %]</a>[% END %]
88
      </p>
89
      </p>
89
      <h2>Invoice details</h2>
90
      <h2>[% t('Invoice details') %]</h2>
90
      [% IF orders_loop.size %]
91
      [% IF orders_loop.size %]
91
          <label for="show_all_details">
92
          <label for="show_all_details">
92
            <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
93
            <input type="checkbox" style="vertical-align: middle;" id="show_all_details" />
93
            Show all details
94
            [% t('Show all details') %]
94
          </label>
95
          </label>
95
          <table id="orderst">
96
          <table id="orderst">
96
            <thead>
97
            <thead>
97
              <tr>
98
              <tr>
98
                <th class="anti-the">Summary</th>
99
                <th class="anti-the">[% t('Summary') %]</th>
99
                <th>Library</th>
100
                <th>[% t('Library') %]</th>
100
                <th class="tax_excluded">Actual cost tax exc.</th>
101
                <th class="tax_excluded">[% t('Actual cost tax exc.') %]</th>
101
                <th class="tax_included">Actual cost tax inc.</th>
102
                <th class="tax_included">[% t('Actual cost tax inc.') %]</th>
102
                <th>Qty.</th>
103
                <th>[% t('Qty.') %]</th>
103
                <th class="tax_excluded">Total tax exc. ([% currency.symbol %])</th>
104
                <th class="tax_excluded">[% t('Total tax exc. (') %][% currency.symbol %])</th>
104
                <th class="tax_included">Total tax inc. ([% currency.symbol %])</th>
105
                <th class="tax_included">[% t('Total tax inc. (') %][% currency.symbol %])</th>
105
                <th>GST %</th>
106
                <th>[% t('GST %') %]</th>
106
                <th>GST</th>
107
                <th>[% t('GST') %]</th>
107
                <th>Fund</th>
108
                <th>[% t('Fund') %]</th>
108
              </tr>
109
              </tr>
109
            </thead>
110
            </thead>
110
            <tbody>
111
            <tbody>
Lines 114-127 Link Here
114
                    [% IF order.biblionumber %]
115
                    [% IF order.biblionumber %]
115
                      <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a>
116
                      <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a>
116
                      [% IF ( order.author ) %]
117
                      [% IF ( order.author ) %]
117
                        <br /><em>by</em> [% order.author %]
118
                        <br /><em>[% t('by') %]</em> [% order.author %]
118
                      [% END %]
119
                      [% END %]
119
                    [% ELSE %]
120
                    [% ELSE %]
120
                      <em>Deleted bibliographic record, can't find title</em>
121
                      <em>[% t('Deleted bibliographic record, can\'t find title') %]</em>
121
                    [% END %]
122
                    [% END %]
122
                    [% IF ( order.isbn ) %] &ndash; [% order.isbn %][% END %]
123
                    [% IF ( order.isbn ) %] – [% order.isbn %][% END %]
123
                    [% IF ( order.publishercode ) %]
124
                    [% IF ( order.publishercode ) %]
124
                      <br/>[% order.publishercode %]
125
                      <br />[% order.publishercode %]
125
                        [% IF order.publicationyear %], [% order.publicationyear %]
126
                        [% IF order.publicationyear %], [% order.publicationyear %]
126
                        [% ELSIF ( order.copyrightdate ) %][% order.copyrightdate %][% END %]
127
                        [% ELSIF ( order.copyrightdate ) %][% order.copyrightdate %][% END %]
127
                    [% END %]
128
                    [% END %]
Lines 141-198 Link Here
141
            <tfoot>
142
            <tfoot>
142
              [% FOR tf IN foot_loop %]
143
              [% FOR tf IN foot_loop %]
143
                <tr>
144
                <tr>
144
                    <th colspan="2">Total (GST [% tf.tax_rate * 100 %] %)</th>
145
                    <th colspan="2">[% t('Total (GST') %] [% tf.tax_rate * 100 %] %)</th>
145
                    <th class="tax_excluded"/><th class="tax_included"/>
146
                    <th class="tax_excluded" /><th class="tax_included" />
146
                    <th>[% tf.quantity %]</th>
147
                    <th>[% tf.quantity %]</th>
147
                    <th class="tax_excluded">[% tf.total_tax_excluded | $Price %]</th>
148
                    <th class="tax_excluded">[% tf.total_tax_excluded | $Price %]</th>
148
                    <th class="tax_included">[% tf.total_tax_included | $Price %]</th>
149
                    <th class="tax_included">[% tf.total_tax_included | $Price %]</th>
149
                    <th>&nbsp;</th>
150
                    <th> </th>
150
                    <th>[% tf.tax_value | $Price %]</th>
151
                    <th>[% tf.tax_value | $Price %]</th>
151
                    <th>&nbsp;</th>
152
                    <th> </th>
152
                </tr>
153
                </tr>
153
              [% END %]
154
              [% END %]
154
              <tr>
155
              <tr>
155
                <th colspan='2'>Total ([% currency.symbol %])</th>
156
                <th colspan="2">[% t('Total (') %][% currency.symbol %])</th>
156
                <th class="tax_excluded"/><th class="tax_included"/>
157
                <th class="tax_excluded" /><th class="tax_included" />
157
                <th>[% total_quantity %]</th>
158
                <th>[% total_quantity %]</th>
158
                <th class="tax_excluded">[% total_tax_excluded | $Price %]</th>
159
                <th class="tax_excluded">[% total_tax_excluded | $Price %]</th>
159
                <th class="tax_included">[% total_tax_included | $Price %]</th>
160
                <th class="tax_included">[% total_tax_included | $Price %]</th>
160
                <th>&nbsp;</th>
161
                <th> </th>
161
                <th>[% total_tax_value | $Price %]</th>
162
                <th>[% total_tax_value | $Price %]</th>
162
                <th>&nbsp;</th>
163
                <th> </th>
163
              </tr>
164
              </tr>
164
              <tr>
165
              <tr>
165
                <th colspan="2">Total + Shipment cost ([% currency.symbol %])</th>
166
                <th colspan="2">[% t('Total + Shipment cost (') %][% currency.symbol %])</th>
166
                <th class="tax_excluded"></th>
167
                <th class="tax_excluded"></th>
167
                <th class="tax_included"></th>
168
                <th class="tax_included"></th>
168
                <th>[% total_quantity %]</th>
169
                <th>[% total_quantity %]</th>
169
                <th class="tax_excluded">[% total_tax_excluded_shipment | $Price %]</th>
170
                <th class="tax_excluded">[% total_tax_excluded_shipment | $Price %]</th>
170
                <th class="tax_included">[% total_tax_included_shipment | $Price %]</th>
171
                <th class="tax_included">[% total_tax_included_shipment | $Price %]</th>
171
                <th>&nbsp;</th>
172
                <th> </th>
172
                <th>[% total_tax_value | $Price %]</th>
173
                <th>[% total_tax_value | $Price %]</th>
173
                <th>&nbsp;</th>
174
                <th> </th>
174
              </tr>
175
              </tr>
175
            </tfoot>
176
            </tfoot>
176
          </table>
177
          </table>
177
        [% ELSE %]
178
        [% ELSE %]
178
            <div class="dialog message"><p>No orders yet</p></div>
179
            <div class="dialog message"><p>[% t('No orders yet') %]</p></div>
179
        [% END %]
180
        [% END %]
180
        [% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %]
181
        [% IF ( (Koha.Preference('AcqEnableFiles')) && files ) %]
181
            <br />
182
            <br />
182
            <h2>Files attached to invoice</h2>
183
            <h2>[% t('Files attached to invoice') %]</h2>
183
            <table id="invoice_files_table">
184
            <table id="invoice_files_table">
184
                <thead>
185
                <thead>
185
                    <tr>
186
                    <tr>
186
                        <th>Name</th>
187
                        <th>[% t('Name') %]</th>
187
                        <th>Type</th>
188
                        <th>[% t('Type') %]</th>
188
                        <th>Description</th>
189
                        <th>[% t('Description') %]</th>
189
                        <th>Uploaded</th>
190
                        <th>[% t('Uploaded') %]</th>
190
                    </tr>
191
                    </tr>
191
                </thead>
192
                </thead>
192
                <tbody>
193
                <tbody>
193
                [% FOREACH f IN files %]
194
                [% FOREACH f IN files %]
194
                    <tr>
195
                    <tr>
195
                         <td><a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]&amp;op=download&amp;view=1&amp;file_id=[% f.file_id %]">[% f.file_name | html %]</a></td>
196
                         <td><a href="/cgi-bin/koha/acqui/invoice-files.pl?invoiceid=[% invoiceid %]&op=download&view=1&file_id=[% f.file_id %]">[% f.file_name | html %]</a></td>
196
                         <td>[% f.file_type | html %]</td>
197
                         <td>[% f.file_type | html %]</td>
197
                         <td>[% f.file_description | html %]</td>
198
                         <td>[% f.file_description | html %]</td>
198
                         <td class="title-string">
199
                         <td class="title-string">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt (-74 / +75 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Acquisitions &rsaquo; Invoices</title>
7
<title>[% t('Koha › Acquisitions › Invoices') %]</title>
7
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/datatables.css") %]
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
10
Lines 13-45 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'acquisitions-search.inc' %]
15
[% INCLUDE 'acquisitions-search.inc' %]
15
16
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; Invoices</div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> [% t('› Invoices') %]</div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
20
20
<div id="bd">
21
<div id="bd">
21
  <div id="yui-main">
22
  <div id="yui-main">
22
    <div class="yui-b">
23
    <div class="yui-b">
23
      <h1>Invoices</h1>
24
      <h1>[% t('Invoices') %]</h1>
24
      [% IF ( do_search ) %]
25
      [% IF ( do_search ) %]
25
        [% IF invoices %]
26
        [% IF invoices %]
26
          <label for="show_only_subscription">
27
          <label for="show_only_subscription">
27
            <input type="checkbox" style="vertical-align: middle;" id="show_only_subscription" />
28
            <input type="checkbox" style="vertical-align: middle;" id="show_only_subscription" />
28
            Show only subscriptions
29
            [% t('Show only subscriptions') %]
29
          </label>
30
          </label>
30
          <table id="resultst">
31
          <table id="resultst">
31
            <thead>
32
            <thead>
32
              <tr>
33
              <tr>
33
                <th>&nbsp;</th>
34
                <th> </th>
34
                <th>&nbsp;</th>
35
                <th> </th>
35
                <th>Invoice no.</th>
36
                <th>[% t('Invoice no.') %]</th>
36
                <th>Vendor</th>
37
                <th>[% t('Vendor') %]</th>
37
                <th class="title-string">Shipment date</th>
38
                <th class="title-string">[% t('Shipment date') %]</th>
38
                <th class="title-string">Billing date</th>
39
                <th class="title-string">[% t('Billing date') %]</th>
39
                <th>Received biblios</th>
40
                <th>[% t('Received biblios') %]</th>
40
                <th>Received items</th>
41
                <th>[% t('Received items') %]</th>
41
                <th>Status</th>
42
                <th>[% t('Status') %]</th>
42
                <th>&nbsp;</th>
43
                <th> </th>
43
              </tr>
44
              </tr>
44
            </thead>
45
            </thead>
45
            <tbody>
46
            <tbody>
Lines 53-92 Link Here
53
                    [% IF invoice.shipmentdate %]
54
                    [% IF invoice.shipmentdate %]
54
                      <span title="[% invoice.shipmentdate %]">[% invoice.shipmentdate | $KohaDates %]</span>
55
                      <span title="[% invoice.shipmentdate %]">[% invoice.shipmentdate | $KohaDates %]</span>
55
                    [% ELSE %]
56
                    [% ELSE %]
56
                      <span title="0000-00-00"></span>
57
                      <span title="[% t('0000-00-00') %]"></span>
57
                    [% END %]
58
                    [% END %]
58
                  </td>
59
                  </td>
59
                  <td>
60
                  <td>
60
                    [% IF invoice.billingdate %]
61
                    [% IF invoice.billingdate %]
61
                      <span title="[% invoice.billingdate %]">[% invoice.billingdate | $KohaDates %]</span>
62
                      <span title="[% invoice.billingdate %]">[% invoice.billingdate | $KohaDates %]</span>
62
                    [% ELSE %]
63
                    [% ELSE %]
63
                      <span title="0000-00-00"></span>
64
                      <span title="[% t('0000-00-00') %]"></span>
64
                    [% END %]
65
                    [% END %]
65
                  </td>
66
                  </td>
66
                  <td>[% invoice.receivedbiblios %]</td>
67
                  <td>[% invoice.receivedbiblios %]</td>
67
                  <td>[% invoice.receiveditems %]</td>
68
                  <td>[% invoice.receiveditems %]</td>
68
                  <td>
69
                  <td>
69
                    [% IF invoice.closedate %]
70
                    [% IF invoice.closedate %]
70
                      Closed on [% invoice.closedate | $KohaDates %]
71
                      [% t('Closed on') %] [% invoice.closedate | $KohaDates %]
71
                    [% ELSE %]
72
                    [% ELSE %]
72
                      Open
73
                      [% t('Open') %]
73
                    [% END %]
74
                    [% END %]
74
                  </td>
75
                  </td>
75
                  <td>
76
                  <td>
76
77
77
                      <div class="dropdown dropup">
78
                      <div class="dropdown dropup">
78
                          <a class="btn btn-default btn-xs dropdown-toggle" id="invoiceactions[% invoice.invoiceid %]" role="button" data-toggle="dropdown" href="#">
79
                          <a class="btn btn-default btn-xs dropdown-toggle" id="invoiceactions[% invoice.invoiceid %]" role="button" data-toggle="dropdown" href="#">
79
                             Actions <b class="caret"></b>
80
                             [% t('Actions') %] <b class="caret"></b>
80
                          </a>
81
                          </a>
81
                          <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid %]">
82
                          <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="invoiceactions[% invoice.invoiceid %]">
82
                              <li><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]"><i class="fa fa-search"></i> Details</a></li>
83
                              <li><a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoice.invoiceid %]"><i class="fa fa-search"></i> [% t('Details') %]</a></li>
83
                            [% IF invoice.closedate %]
84
                            [% IF invoice.closedate %]
84
                                <li><a href="invoice.pl?op=reopen&amp;invoiceid=[% invoice.invoiceid %]&amp;referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]"><i class="fa fa-refresh"></i> Reopen</a></li>
85
                                <li><a href="invoice.pl?op=reopen&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]"><i class="fa fa-refresh"></i> [% t('Reopen') %]</a></li>
85
                            [% ELSE %]
86
                            [% ELSE %]
86
                                <li><a href="invoice.pl?op=close&amp;invoiceid=[% invoice.invoiceid %]&amp;referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]"><i class="fa fa-times-circle"></i> Close</a></li>
87
                                <li><a href="invoice.pl?op=close&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]"><i class="fa fa-times-circle"></i> [% t('Close') %]</a></li>
87
                            [% END %]
88
                            [% END %]
88
                            [% UNLESS invoice.receivedbiblios || invoice.receiveditems %]
89
                            [% UNLESS invoice.receivedbiblios || invoice.receiveditems %]
89
                                <li><a href="invoice.pl?op=delete&amp;invoiceid=[% invoice.invoiceid %]&amp;referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]" class="delete_invoice"><i class="fa fa-trash"></i> Delete</a></li>
90
                                <li><a href="invoice.pl?op=delete&invoiceid=[% invoice.invoiceid %]&referer=/cgi-bin/koha/acqui/invoices.pl%3Fop=do_search%26invoicenumber=[% invoicenumber %]%26supplier=[% booksellerid %]%26shipmentdatefrom=[% shipmentdatefrom | $KohaDates %]%26shipmentdateto=[% shipmentdateto | $KohaDates %]%26billingdatefrom=[% billingdatefrom | $KohaDates %]%26billingdateto=[% billingdateto | $KohaDates %]%26isbneanissn=[% isbneanissn %]%26title=[% title %]%26author=[% author %]%26publisher=[% publisher %]%26publicationyear=[% publicationyear %]%26branch=[% branch %]" class="delete_invoice"><i class="fa fa-trash"></i> [% t('Delete') %]</a></li>
90
                            [% END %]
91
                            [% END %]
91
                          </ul>
92
                          </ul>
92
                      </div>
93
                      </div>
Lines 95-133 Link Here
95
              [% END %]
96
              [% END %]
96
            </tbody>
97
            </tbody>
97
          </table>
98
          </table>
98
          <a class="submit" id="merge" href="#merge_invoices">Merge selected invoices</a>
99
          <a class="submit" id="merge" href="#merge_invoices">[% t('Merge selected invoices') %]</a>
99
            <div id="merge_invoices">
100
            <div id="merge_invoices">
100
                <form id="merge_invoice_form" action="/cgi-bin/koha/acqui/invoice.pl" method="post">
101
                <form id="merge_invoice_form" action="/cgi-bin/koha/acqui/invoice.pl" method="post">
101
                <fieldset class="rows">
102
                <fieldset class="rows">
102
                    <ol>
103
                    <ol>
103
                    <li><h2>Merge invoices</h2></li>
104
                    <li><h2>[% t('Merge invoices') %]</h2></li>
104
                    <li><table id="merge_table">
105
                    <li><table id="merge_table">
105
                        <thead><tr><th>Invoice no.</th><th>Shipment date</th><th>Billing date</th><th>Shipment cost</th></tr></thead>
106
                        <thead><tr><th>[% t('Invoice no.') %]</th><th>[% t('Shipment date') %]</th><th>[% t('Billing date') %]</th><th>[% t('Shipment cost') %]</th></tr></thead>
106
                        <tbody>
107
                        <tbody>
107
                        </tbody>
108
                        </tbody>
108
                    </table></li>
109
                    </table></li>
109
                    <li><label for="merge_invoicenumber" class="required">Invoice number:</label>
110
                    <li><label for="merge_invoicenumber" class="required">[% t('Invoice number:') %]</label>
110
                            <input type="text" size="10" id="merge_invoicenumber" name="invoicenumber" value="" class="required" required="required" />
111
                            <input type="text" size="10" id="merge_invoicenumber" name="invoicenumber" value="" class="required" required="required" />
111
                            <span class="required">Required</span>
112
                            <span class="required">[% t('Required') %]</span>
112
                            </li>
113
                            </li>
113
                    <li><label for="merge_shipmentdate">Shipment date:</label>
114
                    <li><label for="merge_shipmentdate">[% t('Shipment date:') %]</label>
114
                            <input type="text" size="10" id="merge_shipmentdate" name="shipmentdate" value="" class="datepicker" /></li>
115
                            <input type="text" size="10" id="merge_shipmentdate" name="shipmentdate" value="" class="datepicker" /></li>
115
116
116
                    <li><label for="merge_billingdate">Billing date:</label>
117
                    <li><label for="merge_billingdate">[% t('Billing date:') %]</label>
117
                            <input type="text" size="10" id="merge_billingdate" name="billingdate" value="" class="datepicker" /></li>
118
                            <input type="text" size="10" id="merge_billingdate" name="billingdate" value="" class="datepicker" /></li>
118
119
119
                    <li><label for="merge_shipmentcost">Shipment cost:</label>
120
                    <li><label for="merge_shipmentcost">[% t('Shipment cost:') %]</label>
120
                            <input type="text" size="10" id="merge_shipmentcost" name="shipmentcost" value="" /></li>
121
                            <input type="text" size="10" id="merge_shipmentcost" name="shipmentcost" value="" /></li>
121
                    <li><label for="merge_shipment_budgetid">Fund:</label>
122
                    <li><label for="merge_shipment_budgetid">[% t('Fund:') %]</label>
122
                            <select id="merge_shipment_budgetid" name="shipment_budget_id">
123
                            <select id="merge_shipment_budgetid" name="shipment_budget_id">
123
                                <option value="">No fund</option>
124
                                <option value="">[% t('No fund') %]</option>
124
                              [% FOREACH budget IN budgets_loop %]
125
                              [% FOREACH budget IN budgets_loop %]
125
                                  <option value="[% budget.budget_id %]">[% budget.budget_name %]
126
                                  <option value="[% budget.budget_id %]">[% budget.budget_name %]
126
                                  </option>
127
                                  </option>
127
                              [% END %]
128
                              [% END %]
128
                            </select></li>
129
                            </select></li>
129
130
130
                    <li><span class="label">Status:</span> <span id="merge_status"></span></li>
131
                    <li><span class="label">[% t('Status:') %]</span> <span id="merge_status"></span></li>
131
                    <li><input type="submit" value="Merge" /></li>
132
                    <li><input type="submit" value="Merge" /></li>
132
                    </ol>
133
                    </ol>
133
                    <input type="hidden" name="op" value="mod" />
134
                    <input type="hidden" name="op" value="mod" />
Lines 136-221 Link Here
136
                </form>
137
                </form>
137
            </div>
138
            </div>
138
        [% ELSE %]
139
        [% ELSE %]
139
          <p>Sorry, but there are no results for your search.</p>
140
          <p>[% t('Sorry, but there are no results for your search.') %]</p>
140
          <p>Search was:
141
          <p>[% t('Search was:') %]
141
            <ul>
142
            <ul>
142
              [% IF ( invoicenumber ) %]
143
              [% IF ( invoicenumber ) %]
143
                <li>Invoice no.: [% invoicenumber |html %]</li>
144
                <li>[% t('Invoice no.:') %] [% invoicenumber |html %]</li>
144
              [% END %]
145
              [% END %]
145
              [% IF booksellerid %]
146
              [% IF booksellerid %]
146
                <li>Vendor: [% suppliername %]</li>
147
                <li>[% t('Vendor:') %] [% suppliername %]</li>
147
              [% END %]
148
              [% END %]
148
              [% IF shipmentdatefrom %]
149
              [% IF shipmentdatefrom %]
149
                <li>Shipment date:
150
                <li>[% t('Shipment date:') %]
150
                [% IF shipmentdateto %]
151
                [% IF shipmentdateto %]
151
                  From [% shipmentdatefrom | $KohaDates %]
152
                  [% t('From') %] [% shipmentdatefrom | $KohaDates %]
152
                  To [% shipmentdateto | $KohaDates %]
153
                  [% t('To') %] [% shipmentdateto | $KohaDates %]
153
                [% ELSE %]
154
                [% ELSE %]
154
                  All since [% shipmentdatefrom | $KohaDates %]
155
                  [% t('All since') %] [% shipmentdatefrom | $KohaDates %]
155
                [% END %]
156
                [% END %]
156
                </li>
157
                </li>
157
              [% ELSE %]
158
              [% ELSE %]
158
                [% IF shipmentdateto %]
159
                [% IF shipmentdateto %]
159
                  <li>Shipment date:
160
                  <li>[% t('Shipment date:') %]
160
                    All until [% shipmentdateto | $KohaDates %]
161
                    [% t('All until') %] [% shipmentdateto | $KohaDates %]
161
                  </li>
162
                  </li>
162
                [% END %]
163
                [% END %]
163
              [% END %]
164
              [% END %]
164
              [% IF billingdatefrom %]
165
              [% IF billingdatefrom %]
165
                <li>Billing date:
166
                <li>[% t('Billing date:') %]
166
                [% IF billingdateto %]
167
                [% IF billingdateto %]
167
                  From [% billingdatefrom | $KohaDates %]
168
                  [% t('From') %] [% billingdatefrom | $KohaDates %]
168
                  To [% billingdateto | $KohaDates %]
169
                  [% t('To') %] [% billingdateto | $KohaDates %]
169
                [% ELSE %]
170
                [% ELSE %]
170
                  All since [% billingdatefrom | $KohaDates %]
171
                  [% t('All since') %] [% billingdatefrom | $KohaDates %]
171
                [% END %]
172
                [% END %]
172
                </li>
173
                </li>
173
              [% ELSE %]
174
              [% ELSE %]
174
                [% IF billingdateto %]
175
                [% IF billingdateto %]
175
                  <li>Billing date:
176
                  <li>[% t('Billing date:') %]
176
                    All until [% billingdateto | $KohaDates %]
177
                    [% t('All until') %] [% billingdateto | $KohaDates %]
177
                  </li>
178
                  </li>
178
                [% END %]
179
                [% END %]
179
              [% END %]
180
              [% END %]
180
              [% IF ( isbneanissn ) %]
181
              [% IF ( isbneanissn ) %]
181
                <li>ISBN/EAN/ISSN: [% isbneanissn |html %]</li>
182
                <li>[% t('ISBN/EAN/ISSN:') %] [% isbneanissn |html %]</li>
182
              [% END %]
183
              [% END %]
183
              [% IF ( title ) %]
184
              [% IF ( title ) %]
184
                <li>Title: [% title |html %]</li>
185
                <li>[% t('Title:') %] [% title |html %]</li>
185
              [% END %]
186
              [% END %]
186
              [% IF ( author ) %]
187
              [% IF ( author ) %]
187
                <li>Author: [% author |html %]</li>
188
                <li>[% t('Author:') %] [% author |html %]</li>
188
              [% END %]
189
              [% END %]
189
              [% IF ( publisher ) %]
190
              [% IF ( publisher ) %]
190
                <li>Publisher: [% publisher |html %]</li>
191
                <li>[% t('Publisher:') %] [% publisher |html %]</li>
191
              [% END %]
192
              [% END %]
192
              [% IF ( publicationyear ) %]
193
              [% IF ( publicationyear ) %]
193
                <li>Publication year: [% publicationyear |html %]</li>
194
                <li>[% t('Publication year:') %] [% publicationyear |html %]</li>
194
              [% END %]
195
              [% END %]
195
              [% IF ( branch ) %]
196
              [% IF ( branch ) %]
196
                <li>Library: [% Branches.GetName( branch ) %]</li>
197
                <li>[% t('Library:') %] [% Branches.GetName( branch ) %]</li>
197
              [% END %]
198
              [% END %]
198
            </ul>
199
            </ul>
199
          </p>
200
          </p>
200
        [% END %]<!-- invoices -->
201
        [% END %]<!-- invoices -->
201
      [% ELSE %]
202
      [% ELSE %]
202
        <p>Use the search form on the left to find invoices.</p>
203
        <p>[% t('Use the search form on the left to find invoices.') %]</p>
203
      [% END %]<!-- do_search -->
204
      [% END %]<!-- do_search -->
204
    </div>
205
    </div>
205
  </div>
206
  </div>
206
  <div class="yui-b">
207
  <div class="yui-b">
207
    <form action="" method="get">
208
    <form action="" method="get">
208
      <fieldset class="brief">
209
      <fieldset class="brief">
209
        <h3>Search filters</h3>
210
        <h3>[% t('Search filters') %]</h3>
210
        <ol>
211
        <ol>
211
          <li>
212
          <li>
212
            <label for="invoicenumber">Invoice no:</label>
213
            <label for="invoicenumber">[% t('Invoice no:') %]</label>
213
            <input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber |html %]" class="focus" />
214
            <input type="text" id="invoicenumber" name="invoicenumber" value="[% invoicenumber |html %]" class="focus" />
214
          </li>
215
          </li>
215
          <li>
216
          <li>
216
            <label for="supplier">Vendor:</label>
217
            <label for="supplier">[% t('Vendor:') %]</label>
217
            <select id="supplier" name="supplierid">
218
            <select id="supplier" name="supplierid">
218
              <option value="">All</option>
219
              <option value="">[% t('All') %]</option>
219
              [% FOREACH supplier IN suppliers_loop %]
220
              [% FOREACH supplier IN suppliers_loop %]
220
                [% IF ( supplier.selected ) %]
221
                [% IF ( supplier.selected ) %]
221
                  <option selected="selected" value="[% supplier.booksellerid %]">[% supplier.suppliername %]</option>
222
                  <option selected="selected" value="[% supplier.booksellerid %]">[% supplier.suppliername %]</option>
Lines 227-240 Link Here
227
          </li>
228
          </li>
228
          <li>
229
          <li>
229
            <fieldset class="brief">
230
            <fieldset class="brief">
230
              <legend>Shipment date</legend>
231
              <legend>[% t('Shipment date') %]</legend>
231
              <ol>
232
              <ol>
232
                <li>
233
                <li>
233
                  <label for="shipmentdatefrom">From:</label>
234
                  <label for="shipmentdatefrom">[% t('From:') %]</label>
234
                  <input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom | $KohaDates %]" class="datepicker" />
235
                  <input type="text" id="shipmentdatefrom" name="shipmentdatefrom" size="10" value="[% shipmentdatefrom | $KohaDates %]" class="datepicker" />
235
                </li>
236
                </li>
236
                <li>
237
                <li>
237
                  <label for="shipmentdateto">To:</label>
238
                  <label for="shipmentdateto">[% t('To:') %]</label>
238
                  <input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto | $KohaDates %]" class="datepicker" />
239
                  <input type="text" id="shipmentdateto" name="shipmentdateto" size="10" value="[% shipmentdateto | $KohaDates %]" class="datepicker" />
239
                </li>
240
                </li>
240
              </ol>
241
              </ol>
Lines 242-284 Link Here
242
          </li>
243
          </li>
243
          <li>
244
          <li>
244
            <fieldset class="brief">
245
            <fieldset class="brief">
245
              <legend>Billing date</legend>
246
              <legend>[% t('Billing date') %]</legend>
246
              <ol>
247
              <ol>
247
                <li>
248
                <li>
248
                  <label for="billingdatefrom">From:</label>
249
                  <label for="billingdatefrom">[% t('From:') %]</label>
249
                  <input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom | $KohaDates %]" class="datepicker" />
250
                  <input type="text" id="billingdatefrom" name="billingdatefrom" size="10" value="[% billingdatefrom | $KohaDates %]" class="datepicker" />
250
                </li>
251
                </li>
251
                <li>
252
                <li>
252
                  <label for="billingdateto">To:</label>
253
                  <label for="billingdateto">[% t('To:') %]</label>
253
                  <input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto | $KohaDates %]" class="datepicker" />
254
                  <input type="text" id="billingdateto" name="billingdateto" size="10" value="[% billingdateto | $KohaDates %]" class="datepicker" />
254
                </li>
255
                </li>
255
              </ol>
256
              </ol>
256
            </fieldset>
257
            </fieldset>
257
          </li>
258
          </li>
258
          <li>
259
          <li>
259
            <label for="isbneanissn">ISBN / EAN / ISSN:</label>
260
            <label for="isbneanissn">[% t('ISBN / EAN / ISSN:') %]</label>
260
            <input type="text" id="isbneanissn" name="isbneanissn" value="[% isbneanissn |html %]" />
261
            <input type="text" id="isbneanissn" name="isbneanissn" value="[% isbneanissn |html %]" />
261
          </li>
262
          </li>
262
          <li>
263
          <li>
263
            <label for="title">Title:</label>
264
            <label for="title">[% t('Title:') %]</label>
264
            <input type="text" id="title" name="title" value="[% title |html %]" />
265
            <input type="text" id="title" name="title" value="[% title |html %]" />
265
          </li>
266
          </li>
266
          <li>
267
          <li>
267
            <label for="author">Author:</label>
268
            <label for="author">[% t('Author:') %]</label>
268
            <input type="text" id="author" name="author" value="[% author |html %]" />
269
            <input type="text" id="author" name="author" value="[% author |html %]" />
269
          </li>
270
          </li>
270
          <li>
271
          <li>
271
            <label for="publisher">Publisher:</label>
272
            <label for="publisher">[% t('Publisher:') %]</label>
272
            <input type="text" id="publisher" name="publisher" value="[% publisher |html %]" />
273
            <input type="text" id="publisher" name="publisher" value="[% publisher |html %]" />
273
          </li>
274
          </li>
274
          <li>
275
          <li>
275
            <label for="publicationyear">Publication year:</label>
276
            <label for="publicationyear">[% t('Publication year:') %]</label>
276
            <input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear |html %]" />
277
            <input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear |html %]" />
277
          </li>
278
          </li>
278
          <li>
279
          <li>
279
            <label for="branch">Library:</label>
280
            <label for="branch">[% t('Library:') %]</label>
280
            <select id="branch" name="branch">
281
            <select id="branch" name="branch">
281
              <option value="">All</option>
282
              <option value="">[% t('All') %]</option>
282
              [%# FIXME Should not we filter the libraries %]
283
              [%# FIXME Should not we filter the libraries %]
283
              [% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %]
284
              [% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %]
284
            </select>
285
            </select>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt (-38 / +39 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE ColumnsSettings %]
5
[% USE ColumnsSettings %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Acquisitions &rsaquo; Late orders</title>
8
<title>[% t('Koha › Acquisitions › Late orders') %]</title>
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
</head>
11
</head>
Lines 13-19 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'acquisitions-search.inc' %]
15
[% INCLUDE 'acquisitions-search.inc' %]
15
16
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="lateorders.pl">Late orders</a></div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="lateorders.pl">[% t('Late orders') %]</a></div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
   
20
   
Lines 21-40 Link Here
21
	<div id="yui-main">
22
	<div id="yui-main">
22
	<div class="yui-b">
23
	<div class="yui-b">
23
	
24
	
24
<h1>[% IF ( Supplier ) %][% Supplier %] : [% END %]Late orders</h1>
25
<h1>[% IF ( Supplier ) %][% Supplier %] : [% END %][% t('Late orders') %]</h1>
25
<div id="acqui_lateorders">
26
<div id="acqui_lateorders">
26
27
27
[% IF error_claim %]
28
[% IF error_claim %]
28
    [% IF ( error_claim == "no_email" ) %]
29
    [% IF ( error_claim == "no_email" ) %]
29
        <div class="error">This vendor has no email</div>
30
        <div class="error">[% t('This vendor has no email') %]</div>
30
    [% ELSIF ( error_claim == "no_order_selected" ) %]
31
    [% ELSIF ( error_claim == "no_order_selected" ) %]
31
        <div class="error">No order selected</div>
32
        <div class="error">[% t('No order selected') %]</div>
32
    [% ELSE %]
33
    [% ELSE %]
33
        <div class="error">[% error_claim %]</div>
34
        <div class="error">[% error_claim %]</div>
34
    [% END %]
35
    [% END %]
35
[% END %]
36
[% END %]
36
[% IF info_claim %]
37
[% IF info_claim %]
37
    <div class="dialog message">Email has been sent.</div>
38
    <div class="dialog message">[% t('Email has been sent.') %]</div>
38
[% END %]
39
[% END %]
39
[% IF ( lateorders ) %]
40
[% IF ( lateorders ) %]
40
<form action="lateorders.pl" name="claim" method="post">
41
<form action="lateorders.pl" name="claim" method="post">
Lines 42-48 Link Here
42
  <input type="hidden" name="delay" value="[% delay | html%]" />
43
  <input type="hidden" name="delay" value="[% delay | html%]" />
43
  <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
44
  <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
44
	[% IF ( letters ) %]
45
	[% IF ( letters ) %]
45
	<p><label for="letter_code">Claim using notice: </label><select name="letter_code" id="letter_code">
46
	<p><label for="letter_code">[% t('Claim using notice:') %] </label><select name="letter_code" id="letter_code">
46
	  [% FOREACH letter IN letters %]
47
	  [% FOREACH letter IN letters %]
47
		<option value="[% letter.code %]">[% letter.name %]</option>
48
		<option value="[% letter.code %]">[% letter.name %]</option>
48
	  [% END %]
49
	  [% END %]
Lines 53-73 Link Here
53
      <thead>
54
      <thead>
54
        <tr>
55
        <tr>
55
            [% IF Supplier %]
56
            [% IF Supplier %]
56
                <th><a id="CheckAll" href="#">Check all</a><br /><a id="CheckNone" href="#">Uncheck all</a></th>
57
                <th><a id="CheckAll" href="#">[% t('Check all') %]</a><br /><a id="CheckNone" href="#">[% t('Uncheck all') %]</a></th>
57
            [% ELSE %]
58
            [% ELSE %]
58
                <th></th>
59
                <th></th>
59
            [% END %]
60
            [% END %]
60
            <th class="title-string">Order date</th>
61
            <th class="title-string">[% t('Order date') %]</th>
61
            <th class="title-string">Estimated delivery date</th>
62
            <th class="title-string">[% t('Estimated delivery date') %]</th>
62
            <th>Vendor</th>
63
            <th>[% t('Vendor') %]</th>
63
            <th class="anti-the">Information</th>
64
            <th class="anti-the">[% t('Information') %]</th>
64
            <th>Total cost</th>
65
            <th>[% t('Total cost') %]</th>
65
            <th>Basket</th>
66
            <th>[% t('Basket') %]</th>
66
            <th>Basket group</th>
67
            <th>[% t('Basket group') %]</th>
67
            <th>Library</th>
68
            <th>[% t('Library') %]</th>
68
            <th>Fund</th>
69
            <th>[% t('Fund') %]</th>
69
            <th>Claims count</th>
70
            <th>[% t('Claims count') %]</th>
70
            <th class="title-string">Claimed date</th>
71
            <th class="title-string">[% t('Claimed date') %]</th>
71
        </tr>
72
        </tr>
72
      </thead>
73
      </thead>
73
      <tbody>
74
      <tbody>
Lines 77-89 Link Here
77
                <input type="checkbox" value="[% lateorder.ordernumber %]" data-booksellerid="[% lateorder.supplierid %]" name="ordernumber">
78
                <input type="checkbox" value="[% lateorder.ordernumber %]" data-booksellerid="[% lateorder.supplierid %]" name="ordernumber">
78
            </td>
79
            </td>
79
            <td>
80
            <td>
80
                <span title="[% lateorder.orderdate %]">[% lateorder.orderdate | $KohaDates %] ([% lateorder.latesince %] days)</span>
81
                <span title="[% lateorder.orderdate %]">[% lateorder.orderdate | $KohaDates %] ([% lateorder.latesince %] [% t('days)') %]</span>
81
            </td>
82
            </td>
82
            <td>
83
            <td>
83
                [% IF ( lateorder.estimateddeliverydate ) %]
84
                [% IF ( lateorder.estimateddeliverydate ) %]
84
                    <span title="[% lateorder.estimateddeliverydate %]">[% lateorder.estimateddeliverydate | $KohaDates  %]</span>
85
                    <span title="[% lateorder.estimateddeliverydate %]">[% lateorder.estimateddeliverydate | $KohaDates  %]</span>
85
                [% ELSE %]
86
                [% ELSE %]
86
                    <span title="0000-00-00"></span>
87
                    <span title="[% t('0000-00-00') %]"></span>
87
                [% END %]
88
                [% END %]
88
            </td>
89
            </td>
89
            <td>
90
            <td>
Lines 92-112 Link Here
92
            </td>
93
            </td>
93
            <td>
94
            <td>
94
                <b>[% lateorder.title |html %]</b>
95
                <b>[% lateorder.title |html %]</b>
95
                   [% IF ( lateorder.author ) %]<br/><i>Author:</i> [% lateorder.author %][% END %]
96
                   [% IF ( lateorder.author ) %]<br /><i>[% t('Author:') %]</i> [% lateorder.author %][% END %]
96
                   [% IF ( lateorder.publisher ) %]
97
                   [% IF ( lateorder.publisher ) %]
97
                        <br/><i>Published by:</i> [% lateorder.publisher %]
98
                        <br /><i>[% t('Published by:') %]</i> [% lateorder.publisher %]
98
                        [% IF ( lateorder.publicationyear ) %]
99
                        [% IF ( lateorder.publicationyear ) %]
99
                            <i> in </i>[% lateorder.publicationyear %]
100
                            <i> [% t('in') %] </i>[% lateorder.publicationyear %]
100
                        [% END %]
101
                        [% END %]
101
                   [% END %]
102
                   [% END %]
102
            </td>
103
            </td>
103
            <td>
104
            <td>
104
                   [% lateorder.unitpricesupplier %]x[% lateorder.quantity %] = 
105
                   [% lateorder.unitpricesupplier %][% t('x') %][% lateorder.quantity %] = 
105
                   [% lateorder.subtotal %]
106
                   [% lateorder.subtotal %]
106
            </td>
107
            </td>
107
            <td>
108
            <td>
108
                [% IF ( CAN_user_acquisition_order_manage ) %]
109
                [% IF ( CAN_user_acquisition_order_manage ) %]
109
                    <a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket">[% lateorder.basketname %] ([% lateorder.basketno %])</a>
110
                    <a href="basket.pl?basketno=[% lateorder.basketno %]" title="[% t('basket') %]">[% lateorder.basketname %] ([% lateorder.basketno %])</a>
110
                [% ELSE %]
111
                [% ELSE %]
111
                    [% lateorder.basketname %] ([% lateorder.basketno %])
112
                    [% lateorder.basketname %] ([% lateorder.basketno %])
112
                [% END %]
113
                [% END %]
Lines 114-120 Link Here
114
            <td>
115
            <td>
115
                [% IF ( lateorder.basketgroupid ) %]
116
                [% IF ( lateorder.basketgroupid ) %]
116
                    [% IF ( CAN_user_acquisition_group_manage ) %]
117
                    [% IF ( CAN_user_acquisition_group_manage ) %]
117
                        <a href="basketgroup.pl?op=add&booksellerid=[% lateorder.supplierid %]&basketgroupid=[% lateorder.basketgroupid %]" title="basketgroup">[% lateorder.basketgroupname %] ([% lateorder.basketgroupid %])</a>
118
                        <a href="basketgroup.pl?op=add&booksellerid=[% lateorder.supplierid %]&basketgroupid=[% lateorder.basketgroupid %]" title="[% t('basketgroup') %]">[% lateorder.basketgroupname %] ([% lateorder.basketgroupid %])</a>
118
                    [% ELSE %]
119
                    [% ELSE %]
119
                        [% lateorder.basketgroupname %] ([% lateorder.basketgroupid %])</a>
120
                        [% lateorder.basketgroupname %] ([% lateorder.basketgroupid %])</a>
120
                    [% END %]
121
                    [% END %]
Lines 129-135 Link Here
129
                [% IF ( lateorder.claimed_date ) %]
130
                [% IF ( lateorder.claimed_date ) %]
130
                    <span title="[% lateorder.claimed_date %]">[% lateorder.claimed_date | $KohaDates %]</span>
131
                    <span title="[% lateorder.claimed_date %]">[% lateorder.claimed_date | $KohaDates %]</span>
131
                [% ELSE %]
132
                [% ELSE %]
132
                    <span title="0000-00-00"></span>
133
                    <span title="[% t('0000-00-00') %]"></span>
133
                [% END %]
134
                [% END %]
134
            </td>
135
            </td>
135
        </tr>
136
        </tr>
Lines 137-145 Link Here
137
      </tbody>
138
      </tbody>
138
      <tfoot>
139
      <tfoot>
139
        <tr>
140
        <tr>
140
            <th colspan="5">Total</th>
141
            <th colspan="5">[% t('Total') %]</th>
141
            <th>[% total %]</th>
142
            <th>[% total %]</th>
142
            <th colspan="6">&nbsp;</th>
143
            <th colspan="6"> </th>
143
        </tr>
144
        </tr>
144
      </tfoot>
145
      </tfoot>
145
    </table>
146
    </table>
Lines 148-158 Link Here
148
    <p style="display:block;">
149
    <p style="display:block;">
149
        <input type="button" value="Export as CSV" id="ExportSelected" />
150
        <input type="button" value="Export as CSV" id="ExportSelected" />
150
        [% UNLESS lateorder.budget_lock %]
151
        [% UNLESS lateorder.budget_lock %]
151
            <input type="submit"  value="Claim order" />
152
            <input type="submit" value="Claim order" />
152
        [% END %]
153
        [% END %]
153
    </p>
154
    </p>
154
</form>
155
</form>
155
[% ELSE %]<p>There are no late orders.</p>
156
[% ELSE %]<p>[% t('There are no late orders.') %]</p>
156
[% END %]
157
[% END %]
157
</div>
158
</div>
158
</div>
159
</div>
Lines 160-181 Link Here
160
<div class="yui-b">
161
<div class="yui-b">
161
<form action="lateorders.pl" method="get">
162
<form action="lateorders.pl" method="get">
162
<fieldset class="brief">
163
<fieldset class="brief">
163
<h4>Filter results:</h4>
164
<h4>[% t('Filter results:') %]</h4>
164
[% FOREACH ERROR_LOO IN ERROR_LOOP %]
165
[% FOREACH ERROR_LOO IN ERROR_LOOP %]
165
[% IF ( ERROR_LOO.delay_digits ) %]<p class="error">The number of days ([% ERROR_LOO.bad_delay | html %]) must be a number between 0 and 999.</p>[% END %]
166
[% IF ( ERROR_LOO.delay_digits ) %]<p class="error">[% t('The number of days (') %][% ERROR_LOO.bad_delay | html %][% t(') must be a number between 0 and 999.') %]</p>[% END %]
166
[% END %]
167
[% END %]
167
<ol>
168
<ol>
168
    <li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay | html%]" /> days ago</li>
169
    <li><label for="delay">[% t('Order date:') %]</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay | html%]" /> [% t('days ago') %]</li>
169
    <li><label for="from">Estimated delivery date from: </label>
170
    <li><label for="from">[% t('Estimated delivery date from:') %] </label>
170
        <input type="text" size="10" id="from" name="estimateddeliverydatefrom" value="[% estimateddeliverydatefrom %]" class="datepickerfrom" />
171
        <input type="text" size="10" id="from" name="estimateddeliverydatefrom" value="[% estimateddeliverydatefrom %]" class="datepickerfrom" />
171
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
172
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
172
    </li>
173
    </li>
173
    <li><label for="to">To: </label>
174
    <li><label for="to">[% t('To:') %] </label>
174
        <input type="text" size="10" id="to" name="estimateddeliverydateto" value="[% estimateddeliverydateto %]" class="datepickerto" />
175
        <input type="text" size="10" id="to" name="estimateddeliverydateto" value="[% estimateddeliverydateto %]" class="datepickerto" />
175
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
176
        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
176
    </li>
177
    </li>
177
178
178
	<li><label for="booksellerid">Vendor:</label>
179
	<li><label for="booksellerid">[% t('Vendor:') %]</label>
179
		<select id="booksellerid" size="1" tabindex="" name="booksellerid">
180
		<select id="booksellerid" size="1" tabindex="" name="booksellerid">
180
            <option value=""></option>
181
            <option value=""></option>
181
			[% FOREACH SUPPLIER_LOO IN SUPPLIER_LOOP %]
182
			[% FOREACH SUPPLIER_LOO IN SUPPLIER_LOOP %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/modordernotes.tt (-8 / +9 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Acquisition &rsaquo;
3
<title>[% t('Koha › Acquisition ›') %]
3
[%- IF (type == "vendor") -%]
4
[%- IF (type == "vendor") -%]
4
    Change order vendor note
5
    [% t('Change order vendor note') %]
5
[%- ELSE -%]
6
[%- ELSE -%]
6
    Change order internal note
7
    [% t('Change order internal note') %]
7
[%- END -%]
8
[%- END -%]
8
</title>
9
</title>
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
Lines 12-31 Link Here
12
<body id="acq_modordernotes" class="acq">
13
<body id="acq_modordernotes" class="acq">
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisition</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername|html %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketname|html %] ([% basketno %])</a> &rsaquo; Change order [% IF (type == "vendor") %]vendor[% ELSE %]internal[% END %] note</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisition') %]</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername|html %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('Basket') %] [% basketname|html %] ([% basketno %])</a> [% t('› Change order') %] [% IF (type == "vendor") %][% t('vendor') %][% ELSE %][% t('internal') %][% END %] [% t('note') %]</div>
16
17
17
<div class="main container-fluid">
18
<div class="main container-fluid">
18
    <div class="row">
19
    <div class="row">
19
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
20
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
20
21
21
      [% IF (type == "vendor") %]
22
      [% IF (type == "vendor") %]
22
          <h1>Change order vendor note (order no. [% ordernumber %])</h1>
23
          <h1>[% t('Change order vendor note (order no.') %] [% ordernumber %])</h1>
23
      [% ELSE %]
24
      [% ELSE %]
24
          <h1>Change order internal note (order no. [% ordernumber %])</h1>
25
          <h1>[% t('Change order internal note (order no.') %] [% ordernumber %])</h1>
25
      [% END %]
26
      [% END %]
26
      <form action="/cgi-bin/koha/acqui/modordernotes.pl" method="post">
27
      <form action="/cgi-bin/koha/acqui/modordernotes.pl" method="post">
27
        <fieldset class="brief">
28
        <fieldset class="brief">
28
          <label for="ordernotes">Note:</label>
29
          <label for="ordernotes">[% t('Note:') %]</label>
29
          <textarea id="ordernotes" name="ordernotes" rows="3" cols="30" class="focus">[% ordernotes %]</textarea>
30
          <textarea id="ordernotes" name="ordernotes" rows="3" cols="30" class="focus">[% ordernotes %]</textarea>
30
        </fieldset>
31
        </fieldset>
31
        <input type="hidden" name="referrer" value="[% referrer %]" />
32
        <input type="hidden" name="referrer" value="[% referrer %]" />
Lines 34-40 Link Here
34
        <input type="hidden" name="type" value="[% type %]" />
35
        <input type="hidden" name="type" value="[% type %]" />
35
        <fieldset class="action">
36
        <fieldset class="action">
36
          <input type="submit" value="Save" />
37
          <input type="submit" value="Save" />
37
          <a class="cancel" href="[% referrer %]">Cancel</a>
38
          <a class="cancel" href="[% referrer %]">[% t('Cancel') %]</a>
38
        </fieldset>
39
        </fieldset>
39
      </form>
40
      </form>
40
  </div>
41
  </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderbiblio.tt (-19 / +20 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; Acquisitions &rsaquo; Search existing records</title>
5
<title>[% t('Koha › Acquisitions › Search existing records') %]</title>
5
[% Asset.css("css/datatables.css") %]
6
[% Asset.css("css/datatables.css") %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
Lines 10-16 Link Here
10
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'acquisitions-search.inc' %]
12
[% INCLUDE 'acquisitions-search.inc' %]
12
13
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo; Search existing records</div>
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('Basket') %] [% basketno %]</a> [% t('› Search existing records') %]</div>
14
15
15
<div id="doc3" class="yui-t2">
16
<div id="doc3" class="yui-t2">
16
   
17
   
Lines 18-38 Link Here
18
	<div id="yui-main">
19
	<div id="yui-main">
19
	<div class="yui-b">
20
	<div class="yui-b">
20
	
21
	
21
<h1>Search existing records</h1>
22
<h1>[% t('Search existing records') %]</h1>
22
23
23
24
24
[% IF ( total ) %]
25
[% IF ( total ) %]
25
<b>[% total %] results found </b> 
26
<b>[% total %] [% t('results found') %] </b> 
26
<div class="pages">[% pagination_bar %]</div>
27
<div class="pages">[% pagination_bar %]</div>
27
[% ELSE %]
28
[% ELSE %]
28
<h3> No results found</h3>
29
<h3> [% t('No results found') %]</h3>
29
<p>
30
<p>
30
    No results match your search for <span style="font-weight: bold;">&ldquo;[% query %]&rdquo;</span> in [% LibraryName %]
31
    [% t('No results match your search for') %] <span style="font-weight: bold;">“[% query %]”</span> [% t('in') %] [% LibraryName %]
31
</p>
32
</p>
32
[% END %]
33
[% END %]
33
34
34
[% IF ( query_error ) %]
35
[% IF ( query_error ) %]
35
    <div class="dialog alert"><p><strong>Error:</strong> [% query_error %]</p></div>
36
    <div class="dialog alert"><p><strong>[% t('Error:') %]</strong> [% query_error %]</p></div>
36
[% END %]
37
[% END %]
37
38
38
[% IF ( total ) %]
39
[% IF ( total ) %]
Lines 40-50 Link Here
40
    <table id="resultst">
41
    <table id="resultst">
41
    <thead>
42
    <thead>
42
      <tr>
43
      <tr>
43
         <th>Summary</th>
44
         <th>[% t('Summary') %]</th>
44
         <th>Publisher</th>
45
         <th>[% t('Publisher') %]</th>
45
         <th>Copyright</th>
46
         <th>[% t('Copyright') %]</th>
46
         <th>&nbsp;</th>
47
         <th> </th>
47
         <th>&nbsp;</th>
48
         <th> </th>
48
      </tr>
49
      </tr>
49
    </thead>
50
    </thead>
50
    <tbody>
51
    <tbody>
Lines 53-59 Link Here
53
            <td>
54
            <td>
54
                <p><span class="title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title | html %]</a></span>
55
                <p><span class="title"><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title | html %]</a></span>
55
                [% FOREACH subtitle IN biblio.subtitles %] <span class="subtitle">[% subtitle.subfield %]</span>[% END %]
56
                [% FOREACH subtitle IN biblio.subtitles %] <span class="subtitle">[% subtitle.subfield %]</span>[% END %]
56
                [% IF ( biblio.author ) %]  by <span class="author">[% biblio.author %]</span>,[% END %]</p>
57
                [% IF ( biblio.author ) %]  [% t('by') %] <span class="author">[% biblio.author %]</span>,[% END %]</p>
57
                <p>[% IF ( biblio.isbn ) %] [% biblio.isbn %][% END %]
58
                <p>[% IF ( biblio.isbn ) %] [% biblio.isbn %][% END %]
58
                [% IF ( biblio.pages ) %] - [% biblio.pages %][% END %]
59
                [% IF ( biblio.pages ) %] - [% biblio.pages %][% END %]
59
                [% IF ( biblio.notes ) %] : [% biblio.notes %][% END %]
60
                [% IF ( biblio.notes ) %] : [% biblio.notes %][% END %]
Lines 68-78 Link Here
68
                [% biblio.copyrightdate %]
69
                [% biblio.copyrightdate %]
69
            </td>
70
            </td>
70
        <td>
71
        <td>
71
        <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblio.biblionumber %]&amp;viewas=html" class="previewMARC">View MARC</a>
72
        <a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% biblio.biblionumber %]&viewas=html" class="previewMARC">[% t('View MARC') %]</a>
72
        </td>
73
        </td>
73
            <td>
74
            <td>
74
            <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;biblionumber=[% biblio.biblionumber %]" title="Order this one">
75
            <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&biblionumber=[% biblio.biblionumber %]" title="[% t('Order this one') %]">
75
                Order
76
                [% t('Order') %]
76
            </a>
77
            </a>
77
            </td>
78
            </td>
78
        </tr>
79
        </tr>
Lines 84-96 Link Here
84
        <div class="modal-content">
85
        <div class="modal-content">
85
        <div class="modal-header">
86
        <div class="modal-header">
86
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
87
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
87
            <h3 id="marcPreviewLabel">MARC preview</h3>
88
            <h3 id="marcPreviewLabel">[% t('MARC preview') %]</h3>
88
        </div>
89
        </div>
89
        <div class="modal-body">
90
        <div class="modal-body">
90
            <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
91
            <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> [% t('Loading') %] </div>
91
        </div>
92
        </div>
92
        <div class="modal-footer">
93
        <div class="modal-footer">
93
            <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
94
            <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
94
        </div>
95
        </div>
95
        </div>
96
        </div>
96
        </div>
97
        </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-117 / +112 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Acquisitions &rsaquo; Basket [% basketno %] &rsaquo; [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber %])[% ELSE %]New order[% END %]</title>
7
<title>[% t('Koha › Acquisitions › Basket') %] [% basketno %] › [% IF ( ordernumber ) %][% t('Modify order details (line #') %][% ordernumber %])[% ELSE %][% t('New order') %][% END %]</title>
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
9
10
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'acquisitions-search.inc' %]
14
[% INCLUDE 'acquisitions-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo; [% IF ( ordernumber ) %]Modify order details (line #[% ordernumber %])[% ELSE %]New order[% END %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('Basket') %] [% basketno %]</a> › [% IF ( ordernumber ) %][% t('Modify order details (line #') %][% ordernumber %])[% ELSE %][% t('New order') %][% END %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
19
Lines 22-53 Link Here
22
23
23
<h2>
24
<h2>
24
    [% IF ( ordernumber ) %]
25
    [% IF ( ordernumber ) %]
25
        Modify order line
26
        [% t('Modify order line') %]
26
    [% ELSE %]
27
    [% ELSE %]
27
        New order
28
        [% t('New order') %]
28
    [% END %]
29
    [% END %]
29
</h2>
30
</h2>
30
31
31
<div class="error" style="display:none"></div>
32
<div class="error" style="display:none"></div>
32
33
33
[% IF ( basketno ) %]
34
[% IF ( basketno ) %]
34
    <div id="acqui_basket_summary"  class="yui-g">
35
    <div id="acqui_basket_summary" class="yui-g">
35
    <fieldset class="rows">
36
    <fieldset class="rows">
36
        <legend>Basket details</legend>
37
        <legend>[% t('Basket details') %]</legend>
37
        <ol>
38
        <ol>
38
        [% IF ( basketnote ) %]<li><span class="label">Internal note:</span> [% basketnote %]</li>[% END %]
39
        [% IF ( basketnote ) %]<li><span class="label">[% t('Internal note:') %]</span> [% basketnote %]</li>[% END %]
39
        [% IF ( basketbooksellernote ) %]<li><span class="label">Vendor note:</span> [% basketbooksellernote %]</li>[% END %]
40
        [% IF ( basketbooksellernote ) %]<li><span class="label">[% t('Vendor note:') %]</span> [% basketbooksellernote %]</li>[% END %]
40
        [% IF ( basketcontractno ) %]
41
        [% IF ( basketcontractno ) %]
41
            <li><span class="label">Contract number: </span>[% basketcontractno %]</li>
42
            <li><span class="label">[% t('Contract number:') %] </span>[% basketcontractno %]</li>
42
            <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% basketcontractno %]">[% basketcontractname %]</a></li>
43
            <li><span class="label">[% t('Contract name:') %]</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% basketcontractno %]">[% basketcontractname %]</a></li>
43
        [% END %]
44
        [% END %]
44
        [% IF ( authorisedbyname ) %]<li><span class="label">Managed by:</span>  [% authorisedbyname %]</li>[% END %]
45
        [% IF ( authorisedbyname ) %]<li><span class="label">[% t('Managed by:') %]</span>  [% authorisedbyname %]</li>[% END %]
45
        [% IF ( creationdate ) %]<li><span class="label">Open on:</span>  [% creationdate | $KohaDates %]</li>[% END %]
46
        [% IF ( creationdate ) %]<li><span class="label">[% t('Open on:') %]</span>  [% creationdate | $KohaDates %]</li>[% END %]
46
        [% IF ( closedate ) %]
47
        [% IF ( closedate ) %]
47
        <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
48
        <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
48
        <li><span class="label">Closed on:</span>  [% closedate | $KohaDates %]</li>
49
        <li><span class="label">[% t('Closed on:') %]</span>  [% closedate | $KohaDates %]</li>
49
        [% IF ( basketgroups ) %]
50
        [% IF ( basketgroups ) %]
50
            <li>Basketgroup: <select id="basketgroupid" name="basketgroupid">
51
            <li>[% t('Basketgroup:') %] <select id="basketgroupid" name="basketgroupid">
51
                [% FOREACH basketgroup IN basketgroups %]
52
                [% FOREACH basketgroup IN basketgroups %]
52
                    [% IF ( basketgroup.default ) %]
53
                    [% IF ( basketgroup.default ) %]
53
                    <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
54
                    <option value="[% basketgroup.id %]" selected="selected">[% basketgroup.name %]</option>
Lines 69-87 Link Here
69
    </div>
70
    </div>
70
[% END %]
71
[% END %]
71
72
72
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated" id="Aform" onsubmit="return Check(this);" >
73
<form action="/cgi-bin/koha/acqui/addorder.pl" method="post" class="validated" id="Aform" onsubmit="return Check(this);">
73
74
74
    <fieldset class="rows">
75
    <fieldset class="rows">
75
        <legend>Patrons</legend>
76
        <legend>[% t('Patrons') %]</legend>
76
        <ol>
77
        <ol>
77
            <li>
78
            <li>
78
                <span class="label">To notify on receiving:</span>
79
                <span class="label">[% t('To notify on receiving:') %]</span>
79
                <div style="float:left">
80
                <div style="float:left">
80
                    <ul id="users_names" style="padding-left:0">
81
                    <ul id="users_names" style="padding-left:0">
81
                      [% FOREACH user IN users %]
82
                      [% FOREACH user IN users %]
82
                        <li id="user_[% user.borrowernumber %]">
83
                        <li id="user_[% user.borrowernumber %]">
83
                            [% user.firstname %] [% user.surname %]
84
                            [% user.firstname %] [% user.surname %]
84
                            [<a onclick="del_user([% user.borrowernumber %]);" style="cursor:pointer">Delete user</a>]
85
                            [<a onclick="del_user([% user.borrowernumber %]);" style="cursor:pointer">[% t('Delete user') %]</a>]
85
                        </li>
86
                        </li>
86
                      [% END %]
87
                      [% END %]
87
                    </ul>
88
                    </ul>
Lines 95-103 Link Here
95
96
96
<fieldset class="rows">
97
<fieldset class="rows">
97
        <legend>
98
        <legend>
98
            Catalog details
99
            [% t('Catalog details') %]
99
            [% IF ( biblionumber ) %]
100
            [% IF ( biblionumber ) %]
100
                <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]"> Edit record</a></span>
101
                <span><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber %]"> [% t('Edit record') %]</a></span>
101
            [% END %]
102
            [% END %]
102
        </legend>
103
        </legend>
103
        [% UNLESS ( existing ) %]
104
        [% UNLESS ( existing ) %]
Lines 113-202 Link Here
113
        <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
114
        <input type="hidden" name="import_batch_id" value="[% import_batch_id %]" />
114
115
115
        [% FOREACH c IN currencies %]
116
        [% FOREACH c IN currencies %]
116
            <input type="hidden" id="currency_rate_[% c.currency %]"  name="[% c.currency %]" value="[% c.rate %]" />
117
            <input type="hidden" id="currency_rate_[% c.currency %]" name="[% c.currency %]" value="[% c.rate %]" />
117
        [% END %]
118
        [% END %]
118
119
119
        [% IF NOT Koha.Preference('UseACQFrameworkForBiblioRecords') OR NoACQframework %]
120
        [% IF NOT Koha.Preference('UseACQFrameworkForBiblioRecords') OR NoACQframework %]
120
            <ol><li>
121
            <ol><li>
121
                [% IF ( biblionumber ) %]
122
                [% IF ( biblionumber ) %]
122
                <span class="label">Title</span>
123
                <span class="label">[% t('Title') %]</span>
123
                    <input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span>
124
                    <input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span>
124
                [% ELSE %]
125
                [% ELSE %]
125
                <label for="entertitle">Title: </label>
126
                <label for="entertitle">[% t('Title:') %] </label>
126
                    <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" required="required" />
127
                    <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" required="required" />
127
                    <span class="required">Required</span>
128
                    <span class="required">[% t('Required') %]</span>
128
                [% END %]
129
                [% END %]
129
            </li>
130
            </li>
130
            <li>
131
            <li>
131
                [% IF ( biblionumber ) %]
132
                [% IF ( biblionumber ) %]
132
                <span class="label">Author: </span>
133
                <span class="label">[% t('Author:') %] </span>
133
                    <input type="hidden" name="author" id="author" value="[% author %]" />[% author %]
134
                    <input type="hidden" name="author" id="author" value="[% author %]" />[% author %]
134
                [% ELSE %]
135
                [% ELSE %]
135
                <label for="author">Author: </label>
136
                <label for="author">[% t('Author:') %] </label>
136
                    <input type="text" size="50" name="author" id="author" value="[% author %]" />
137
                    <input type="text" size="50" name="author" id="author" value="[% author %]" />
137
                [% END %]
138
                [% END %]
138
            </li>
139
            </li>
139
            <li>
140
            <li>
140
                [% IF ( biblionumber ) %]
141
                [% IF ( biblionumber ) %]
141
                <span class="label">Publisher: </span>
142
                <span class="label">[% t('Publisher:') %] </span>
142
                    <input type="hidden" name="publishercode" id="publishercode" value="[% publishercode %]" />[% publishercode %]
143
                    <input type="hidden" name="publishercode" id="publishercode" value="[% publishercode %]" />[% publishercode %]
143
                [% ELSE %]
144
                [% ELSE %]
144
                <label for="publishercode"> Publisher: </label>
145
                <label for="publishercode"> [% t('Publisher:') %] </label>
145
                    <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />
146
                    <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />
146
                [% END %]
147
                [% END %]
147
            </li>
148
            </li>
148
            <li>
149
            <li>
149
                [% IF ( biblionumber ) %]
150
                [% IF ( biblionumber ) %]
150
                <span class="label">Edition: </span>
151
                <span class="label">[% t('Edition:') %] </span>
151
                    <input type="hidden" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />[% editionstatement %]
152
                    <input type="hidden" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />[% editionstatement %]
152
153
153
                [% ELSE %]
154
                [% ELSE %]
154
                <label for="editionstatement">Edition: </label>
155
                <label for="editionstatement">[% t('Edition:') %] </label>
155
                    <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />
156
                    <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />
156
                [% END %]
157
                [% END %]
157
            </li>
158
            </li>
158
            <li>
159
            <li>
159
                [% IF ( biblionumber ) %]
160
                [% IF ( biblionumber ) %]
160
                <span class="label">Publication year: </span>
161
                <span class="label">[% t('Publication year:') %] </span>
161
                    <input type="hidden" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />[% publicationyear %]
162
                    <input type="hidden" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />[% publicationyear %]
162
                [% ELSE %]
163
                [% ELSE %]
163
                <label for="publicationyear">Publication year: </label>
164
                <label for="publicationyear">[% t('Publication year:') %] </label>
164
                    <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />
165
                    <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />
165
                [% END %]
166
                [% END %]
166
            </li>
167
            </li>
167
            <li>
168
            <li>
168
                [% IF ( biblionumber ) %]
169
                [% IF ( biblionumber ) %]
169
                <span class="label">ISBN: </span>
170
                <span class="label">[% t('ISBN:') %] </span>
170
                    <input type="hidden" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %]
171
                    <input type="hidden" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %]
171
                [% ELSE %]
172
                [% ELSE %]
172
                <label for="ISBN">ISBN: </label>
173
                <label for="ISBN">[% t('ISBN:') %] </label>
173
                    <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" />
174
                    <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" />
174
                [% END %]
175
                [% END %]
175
            </li>
176
            </li>
176
            [% IF (UNIMARC) %]
177
            [% IF (UNIMARC) %]
177
            <li>
178
            <li>
178
                [% IF ( biblionumber ) %]
179
                [% IF ( biblionumber ) %]
179
                <span class="label">EAN: </span>
180
                <span class="label">[% t('EAN:') %] </span>
180
                    <input type="hidden" name="ean" id="EAN" value="[% ean %]" />[% ean %]
181
                    <input type="hidden" name="ean" id="EAN" value="[% ean %]" />[% ean %]
181
                [% ELSE %]
182
                [% ELSE %]
182
                <label for="EAN">EAN: </label>
183
                <label for="EAN">[% t('EAN:') %] </label>
183
                    <input type="text" size="20" name="ean" id="EAN" value="[% ean %]" />
184
                    <input type="text" size="20" name="ean" id="EAN" value="[% ean %]" />
184
                [% END %]
185
                [% END %]
185
            </li>
186
            </li>
186
            [% END %]
187
            [% END %]
187
            <li>
188
            <li>
188
                [% IF ( biblionumber ) %]
189
                [% IF ( biblionumber ) %]
189
                <span class="label">Series: </span>
190
                <span class="label">[% t('Series:') %] </span>
190
                    <input type="hidden" name="series" id="series" value="[% seriestitle %]" />[% seriestitle %]
191
                    <input type="hidden" name="series" id="series" value="[% seriestitle %]" />[% seriestitle %]
191
                [% ELSE %]
192
                [% ELSE %]
192
                <label for="series">Series: </label>
193
                <label for="series">[% t('Series:') %] </label>
193
                    <input type="text" size="50" name="series" id="series" value="[% seriestitle %]" />
194
                    <input type="text" size="50" name="series" id="series" value="[% seriestitle %]" />
194
                [% END %]
195
                [% END %]
195
            </li>
196
            </li>
196
                [% UNLESS ( biblionumber ) %]
197
                [% UNLESS ( biblionumber ) %]
197
                [% IF ( itemtypeloop ) %]
198
                [% IF ( itemtypeloop ) %]
198
                <li>
199
                <li>
199
                    <span class="label">Item type:</span>
200
                    <span class="label">[% t('Item type:') %]</span>
200
                    <select name="itemtype" style="width:12em;">
201
                    <select name="itemtype" style="width:12em;">
201
                    [% FOREACH itemtype IN itemtypeloop %]
202
                    [% FOREACH itemtype IN itemtypeloop %]
202
                        <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
203
                        <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
Lines 235-245 Link Here
235
236
236
    [% IF ( suggestionid ) %]
237
    [% IF ( suggestionid ) %]
237
        <fieldset class="rows">
238
        <fieldset class="rows">
238
        <legend>Suggestion</legend>
239
        <legend>[% t('Suggestion') %]</legend>
239
        <ol>
240
        <ol>
240
          <li>
241
          <li>
241
            <span class="label">Suggested by: </span>
242
            <span class="label">[% t('Suggested by:') %] </span>
242
            [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&amp;op=show">suggestion #[% suggestionid %]</a>)
243
            [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&op=show">[% t('suggestion #') %][% suggestionid %]</a>)
243
          </li>
244
          </li>
244
        </ol>
245
        </ol>
245
        </fieldset>
246
        </fieldset>
Lines 249-274 Link Here
249
      [% IF (AcqCreateItemOrdering) %]
250
      [% IF (AcqCreateItemOrdering) %]
250
251
251
      <div id="items_list" style="display:none">
252
      <div id="items_list" style="display:none">
252
          <p><b>Items list</b></p>
253
          <p><b>[% t('Items list') %]</b></p>
253
          <div style="width:100%;overflow:auto;">
254
          <div style="width:100%;overflow:auto;">
254
              <table>
255
              <table>
255
                  <thead>
256
                  <thead>
256
                      <tr>
257
                      <tr>
257
                          <th>&nbsp;</th>
258
                          <th> </th>
258
                          <th>&nbsp;</th>
259
                          <th> </th>
259
                          <th>Barcode</th>
260
                          <th>[% t('Barcode') %]</th>
260
                          <th>Home library</th>
261
                          <th>[% t('Home library') %]</th>
261
                          <th>Holding library</th>
262
                          <th>[% t('Holding library') %]</th>
262
                          <th>Not for loan</th>
263
                          <th>[% t('Not for loan') %]</th>
263
                          <th>Restricted</th>
264
                          <th>[% t('Restricted') %]</th>
264
                          <th>Location</th>
265
                          <th>[% t('Location') %]</th>
265
                          <th>Call number</th>
266
                          <th>[% t('Call number') %]</th>
266
                          <th>Copy number</th>
267
                          <th>[% t('Copy number') %]</th>
267
                          <th>Inventory number</th>
268
                          <th>[% t('Inventory number') %]</th>
268
                          <th>Collection code</th>
269
                          <th>[% t('Collection code') %]</th>
269
                          <th>Item type</th>
270
                          <th>[% t('Item type') %]</th>
270
                          <th>Materials</th>
271
                          <th>[% t('Materials') %]</th>
271
                          <th>Notes</th>
272
                          <th>[% t('Notes') %]</th>
272
                      </tr>
273
                      </tr>
273
                  </thead>
274
                  </thead>
274
                  <tbody>
275
                  <tbody>
Lines 278-290 Link Here
278
      </div>
279
      </div>
279
280
280
      <fieldset class="rows" id="itemfieldset">
281
      <fieldset class="rows" id="itemfieldset">
281
          <legend>Item</legend>
282
          <legend>[% t('Item') %]</legend>
282
          [% IF ( NoACQframework ) %]
283
          [% IF ( NoACQframework ) %]
283
              <div class="dialog message">No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used</div>
284
              <div class="dialog message">[% t('No ACQ framework, using default. You should create a framework with code ACQ, the items framework would be used') %]</div>
284
          [% END %]
285
          [% END %]
285
286
286
          [% UNLESS Koha.Preference('autoBarcode') == 'OFF' %]
287
          [% UNLESS Koha.Preference('autoBarcode') == 'OFF' %]
287
              <div class="dialog message">The autoBarcode system preference is set to [% Koha.Preference('autoBarcode') %] and items with blank barcodes will have barcodes generated upon save to database</div>
288
              <div class="dialog message">[% t('The autoBarcode system preference is set to') %] [% Koha.Preference('autoBarcode') %] [% t('and items with blank barcodes will have barcodes generated upon save to database') %]</div>
288
          [% END %]
289
          [% END %]
289
290
290
          <div id="outeritemblock"></div>
291
          <div id="outeritemblock"></div>
Lines 293-306 Link Here
293
      [% END %][%# UNLESS subscriptionid %]
294
      [% END %][%# UNLESS subscriptionid %]
294
    [% END %][%# IF (AcqCreateItemOrdering) %]
295
    [% END %][%# IF (AcqCreateItemOrdering) %]
295
    <fieldset class="rows">
296
    <fieldset class="rows">
296
        <legend>Accounting details</legend>
297
        <legend>[% t('Accounting details') %]</legend>
297
        <ol>
298
        <ol>
298
            <li>
299
            <li>
299
                [% IF ( close ) %]
300
                [% IF ( close ) %]
300
                    <span class="label required">Quantity: </span>
301
                    <span class="label required">[% t('Quantity:') %] </span>
301
                    <input type="hidden" name="quantity" value="[% quantity %]" />[% quantity %]
302
                    <input type="hidden" name="quantity" value="[% quantity %]" />[% quantity %]
302
                [% ELSE %]
303
                [% ELSE %]
303
                    <label class="required" for="quantity">Quantity: </label>
304
                    <label class="required" for="quantity">[% t('Quantity:') %] </label>
304
                    [% IF (AcqCreateItemOrdering) %]
305
                    [% IF (AcqCreateItemOrdering) %]
305
                        [% IF subscriptionid || basket.is_standing %]
306
                        [% IF subscriptionid || basket.is_standing %]
306
                            <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
307
                            <input type="text" readonly="readonly" size="20" id="quantity" name="quantity" value="1" />
Lines 314-330 Link Here
314
                            <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec %]" onchange="updateCosts();" />
315
                            <input type="text" size="20" id="quantity" name="quantity" value="[% quantityrec %]" onchange="updateCosts();" />
315
                        [% END %]
316
                        [% END %]
316
                    [% END %]
317
                    [% END %]
317
                    <span class="required">Required</span>
318
                    <span class="required">[% t('Required') %]</span>
318
                [% END %]
319
                [% END %]
319
                <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
320
                <!-- origquantityrec only here for javascript compatibility (additem.js needs it, useless here, usefull when receiveing an order -->
320
                <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
321
                <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="1" />
321
            </li>
322
            </li>
322
            <li>
323
            <li>
323
                [% IF ( close ) %]
324
                [% IF ( close ) %]
324
            <span class="label required">Fund: </span>
325
            <span class="label required">[% t('Fund:') %] </span>
325
                    <input type="hidden" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
326
                    <input type="hidden" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %]
326
                [% ELSE %]
327
                [% ELSE %]
327
                <label class="required" for="budget_id">Fund: </label>
328
                <label class="required" for="budget_id">[% t('Fund:') %] </label>
328
                [% active_count = 0 %]
329
                [% active_count = 0 %]
329
                [% IF !ordernumber %]
330
                [% IF !ordernumber %]
330
                    [% FOREACH budget_loo IN budget_loop %]
331
                    [% FOREACH budget_loo IN budget_loop %]
Lines 332-369 Link Here
332
                    [% END %]
333
                    [% END %]
333
                [% END %]
334
                [% END %]
334
                <select id="budget_id" size="1" name="budget_id">
335
                <select id="budget_id" size="1" name="budget_id">
335
                    <option value="">Select a fund</option>
336
                    <option value="">[% t('Select a fund') %]</option>
336
                [% FOREACH budget_loo IN budget_loop %]
337
                [% FOREACH budget_loo IN budget_loop %]
337
                    [% IF ( budget_loo.b_sel ) %]
338
                    [% IF ( budget_loo.b_sel ) %]
338
                        [% active_count = 0 #select no other fund %]
339
                        [% active_count = 0 #select no other fund %]
339
                        <option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"
340
                        <option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]" style="padding-left:[% budget_loo.b_level %]em;">
340
                                style="padding-left:[% budget_loo.b_level %]em;"
341
                        >
342
                    [% ELSIF active_count==1 && budget_loo.b_active %]
341
                    [% ELSIF active_count==1 && budget_loo.b_active %]
343
                        <option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"
342
                        <option value="[% budget_loo.b_id %]" selected="selected" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]" style="padding-left:[% budget_loo.b_level %]em;">
344
                                style="padding-left:[% budget_loo.b_level %]em;"
345
                        >
346
                    [% ELSE %]
343
                    [% ELSE %]
347
                        [% bdgclass=budget_loo.b_active? "": "b_inactive" %]
344
                        [% bdgclass=budget_loo.b_active? "": "b_inactive" %]
348
                        <option value="[% budget_loo.b_id %]" class="[% bdgclass %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]"
345
                        <option value="[% budget_loo.b_id %]" class="[% bdgclass %]" data-sort1-authcat="[% budget_loo.b_sort1_authcat %]" data-sort2-authcat="[% budget_loo.b_sort2_authcat %]" style="padding-left:[% budget_loo.b_level %]em;">
349
                                style="padding-left:[% budget_loo.b_level %]em;"
350
                        >
351
                    [% END %]
346
                    [% END %]
352
                    [% budget_loo.b_txt %][% IF !budget_loo.b_active %] (inactive)[% END %]
347
                    [% budget_loo.b_txt %][% IF !budget_loo.b_active %] [% t('(inactive)') %][% END %]
353
                    </option>
348
                    </option>
354
                [% END %]
349
                [% END %]
355
                </select>
350
                </select>
356
                <span class="required">Required</span>
351
                <span class="required">[% t('Required') %]</span>
357
                <label for="showallbudgets" style="float:none;">&nbsp;Show inactive:</label>
352
                <label for="showallbudgets" style="float:none;">[% t(' Show inactive:') %]</label>
358
                <input type="checkbox" id="showallbudgets" />
353
                <input type="checkbox" id="showallbudgets" />
359
                [% END %]
354
                [% END %]
360
            </li>
355
            </li>
361
		<li>
356
		<li>
362
                [% IF ( close ) %]
357
                [% IF ( close ) %]
363
			<span class="label">Currency: </span>
358
			<span class="label">[% t('Currency:') %] </span>
364
            <input type="hidden" name="currency" id="currency" value="[% currency %]" />[% currency %]
359
            <input type="hidden" name="currency" id="currency" value="[% currency %]" />[% currency %]
365
                [% ELSE %]
360
                [% ELSE %]
366
			<label for="currency">Currency:</label>
361
			<label for="currency">[% t('Currency:') %]</label>
367
            <select name="currency" id="currency" onchange="updateCosts();">
362
            <select name="currency" id="currency" onchange="updateCosts();">
368
                [% FOREACH c IN currencies %]
363
                [% FOREACH c IN currencies %]
369
                    [% IF ordernumber and c.currency == currency or not ordernumber and c.currency == vendor_currency %]
364
                    [% IF ordernumber and c.currency == currency or not ordernumber and c.currency == vendor_currency %]
Lines 377-394 Link Here
377
                </li>
372
                </li>
378
            <li>
373
            <li>
379
                [% IF ( close ) %]
374
                [% IF ( close ) %]
380
                    <span class="label">Vendor price: </span>
375
                    <span class="label">[% t('Vendor price:') %] </span>
381
                    <input type="hidden" name="listprice" id="listprice" value="[% listprice %]" />[% listprice %] [% IF (listincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
376
                    <input type="hidden" name="listprice" id="listprice" value="[% listprice %]" />[% listprice %] [% IF (listincgst == 1) %][% t('(tax inc.)') %][% ELSE %][% t('(tax exc.)') %][% END %]
382
                [% ELSE %]
377
                [% ELSE %]
383
                <label for="listprice">Vendor price: </label>
378
                <label for="listprice">[% t('Vendor price:') %] </label>
384
                    <input type="text" size="20" name="listprice" id="listprice" value="[% listprice %]" onchange="updateCosts()" /> [% IF (listincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
379
                    <input type="text" size="20" name="listprice" id="listprice" value="[% listprice %]" onchange="updateCosts()" /> [% IF (listincgst == 1) %][% t('(tax inc.)') %][% ELSE %][% t('(tax exc.)') %][% END %]
385
                [% END %]
380
                [% END %]
386
            </li>
381
            </li>
387
            [% UNLESS ( close ) %]
382
            [% UNLESS ( close ) %]
388
            <li>
383
            <li>
389
                    <label for="uncertainprice">Uncertain price: </label>
384
                    <label for="uncertainprice">[% t('Uncertain price:') %] </label>
390
                    [% IF ( uncertainprice ) %]
385
                    [% IF ( uncertainprice ) %]
391
                    <input type="checkbox" name="uncertainprice"  id="uncertainprice" value="1" checked="checked" />
386
                    <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" checked="checked" />
392
                    [% ELSE %]
387
                    [% ELSE %]
393
                    <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
388
                    <input type="checkbox" name="uncertainprice" id="uncertainprice" value="1" />
394
                [% END %]
389
                [% END %]
Lines 397-406 Link Here
397
            [% IF ( gst_values ) %]
392
            [% IF ( gst_values ) %]
398
                <li>
393
                <li>
399
                    [% IF ( close ) %]
394
                    [% IF ( close ) %]
400
                        <span class="label">Tax rate: </span>
395
                        <span class="label">[% t('Tax rate:') %] </span>
401
                        <input type="hidden" name="tax_rate" id="tax_rate" value="[% tax_rate %]" />[% tax_rate %]%
396
                        <input type="hidden" name="tax_rate" id="tax_rate" value="[% tax_rate %]" />[% tax_rate %]%
402
                    [% ELSE %]
397
                    [% ELSE %]
403
                        <label for="tax_rate">Tax rate: </label>
398
                        <label for="tax_rate">[% t('Tax rate:') %] </label>
404
                        <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
399
                        <select name="tax_rate" id="tax_rate" onchange="updateCosts();">
405
                        [% FOREACH gst IN gst_values %]
400
                        [% FOREACH gst IN gst_values %]
406
                          [% IF ( gst.option == tax_rate ) %]
401
                          [% IF ( gst.option == tax_rate ) %]
Lines 416-422 Link Here
416
                </li>
411
                </li>
417
            [% END %]
412
            [% END %]
418
            <li>
413
            <li>
419
                <label for="discount">Discount: </label>
414
                <label for="discount">[% t('Discount:') %] </label>
420
                [% IF ( close ) %]
415
                [% IF ( close ) %]
421
                    [% IF ( orderdiscount ) %]
416
                    [% IF ( orderdiscount ) %]
422
                        <input type="hidden" name="discount" id="discount" value="[% orderdiscount %]" />[% orderdiscount_2dp %]%
417
                        <input type="hidden" name="discount" id="discount" value="[% orderdiscount %]" />[% orderdiscount_2dp %]%
Lines 433-475 Link Here
433
            </li>
428
            </li>
434
            <li>
429
            <li>
435
                [% IF ( close ) %]
430
                [% IF ( close ) %]
436
                    <span class="label">Replacement cost: </span>
431
                    <span class="label">[% t('Replacement cost:') %] </span>
437
                    <input type="hidden" name="rrp" id="rrp" value="[% rrp %]" />[% rrp %]  (adjusted for [% cur_active %], [% IF (listincgst == 1) %]tax inc.[% ELSE %]tax exc.[% END %])
432
                    <input type="hidden" name="rrp" id="rrp" value="[% rrp %]" />[% rrp %]  [% t('(adjusted for') %] [% cur_active %], [% IF (listincgst == 1) %][% t('tax inc.') %][% ELSE %][% t('tax exc.') %][% END %])
438
                [% ELSE %]
433
                [% ELSE %]
439
                    <label for="rrp">Replacement cost: </label>
434
                    <label for="rrp">[% t('Replacement cost:') %] </label>
440
                    <input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /> (adjusted for [% cur_active %], [% IF (listincgst == 1) %]tax inc.[% ELSE %]tax exc.[% END %])
435
                    <input type="text" size="20" name="rrp" id="rrp" value="[% rrp %]" /> [% t('(adjusted for') %] [% cur_active %], [% IF (listincgst == 1) %][% t('tax inc.') %][% ELSE %][% t('tax exc.') %][% END %])
441
                [% END %]
436
                [% END %]
442
            </li>
437
            </li>
443
            <li>
438
            <li>
444
                <label for="ecost">Budgeted cost: </label>
439
                <label for="ecost">[% t('Budgeted cost:') %] </label>
445
                <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" readonly="readonly"  /> [% IF (listincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
440
                <input type="text" size="20" name="ecost" id="ecost" value="[% ecost %]" readonly="readonly" /> [% IF (listincgst == 1) %][% t('(tax inc.)') %][% ELSE %][% t('(tax exc.)') %][% END %]
446
            </li>
441
            </li>
447
            <li>
442
            <li>
448
                <label for="total">Total: </label>
443
                <label for="total">[% t('Total:') %] </label>
449
                <input type="text" id="total" size="20" name="total" value="[% total %]" readonly="readonly" /> (budgeted cost * quantity)
444
                <input type="text" id="total" size="20" name="total" value="[% total %]" readonly="readonly" /> [% t('(budgeted cost * quantity)') %]
450
            </li>
445
            </li>
451
            <li>
446
            <li>
452
                [% IF ( close ) %]
447
                [% IF ( close ) %]
453
                    <label for="unitprice">Actual cost: </label>
448
                    <label for="unitprice">[% t('Actual cost:') %] </label>
454
                    <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" readonly="readonly" /> [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
449
                    <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" readonly="readonly" /> [% IF (invoiceincgst == 1) %][% t('(tax inc.)') %][% ELSE %][% t('(tax exc.)') %][% END %]
455
                [% ELSE %]
450
                [% ELSE %]
456
                    <label for="unitprice">Actual cost: </label>
451
                    <label for="unitprice">[% t('Actual cost:') %] </label>
457
                    <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" /> [% IF (invoiceincgst == 1) %](tax inc.)[% ELSE %](tax exc.)[% END %]
452
                    <input type="text" id="unitprice" size="20" name="unitprice" value="[% unitprice %]" /> [% IF (invoiceincgst == 1) %][% t('(tax inc.)') %][% ELSE %][% t('(tax exc.)') %][% END %]
458
                [% END %]
453
                [% END %]
459
            </li>
454
            </li>
460
            <li>
455
            <li>
461
                <label for="order_internalnote">Internal note: </label>
456
                <label for="order_internalnote">[% t('Internal note:') %] </label>
462
                <textarea id="order_internalnote" cols="30" rows="3" name="order_internalnote" >[% IF ( order_internalnote ) %][% order_internalnote %][% END %]</textarea>
457
                <textarea id="order_internalnote" cols="30" rows="3" name="order_internalnote">[% IF ( order_internalnote ) %][% order_internalnote %][% END %]</textarea>
463
            </li>
458
            </li>
464
            <li>
459
            <li>
465
                <label for="order_vendornote">Vendor note: </label>
460
                <label for="order_vendornote">[% t('Vendor note:') %] </label>
466
                <textarea id="order_vendornote" cols="30" rows="3" name="order_vendornote" >[% IF ( order_vendornote ) %][% order_vendornote %][% END %]</textarea>
461
                <textarea id="order_vendornote" cols="30" rows="3" name="order_vendornote">[% IF ( order_vendornote ) %][% order_vendornote %][% END %]</textarea>
467
            </li>
462
            </li>
468
            <li><div class="hint">The 2 following fields are available for your own usage. They can be useful for statistical purposes</div>
463
            <li><div class="hint">[% t('The 2 following fields are available for your own usage. They can be useful for statistical purposes') %]</div>
469
                <label for="sort1">Statistic 1: </label>
464
                <label for="sort1">[% t('Statistic 1:') %] </label>
470
                <input id="sort1" type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" />
465
                <input id="sort1" type="text" id="sort1" size="20" name="sort1" value="[% sort1 %]" />
471
            <li>
466
            <li>
472
                <label for="sort2">Statistic 2: </label>
467
                <label for="sort2">[% t('Statistic 2:') %] </label>
473
                <input id="sort2" type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" />
468
                <input id="sort2" type="text" id="sort2" size="20" name="sort2" value="[% sort2 %]" />
474
            </li>
469
            </li>
475
        </ol>
470
        </ol>
Lines 478-489 Link Here
478
        <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
473
        <input type="hidden" name="subscriptionid" value="[% subscriptionid %]" />
479
        <input type="submit" value="Save" />
474
        <input type="submit" value="Save" />
480
        [% IF (suggestionid) %]
475
        [% IF (suggestionid) %]
481
            <a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Cancel</a>
476
            <a class="cancel" href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">[% t('Cancel') %]</a>
482
        [% ELSE %]
477
        [% ELSE %]
483
            [% IF subscriptionid %]
478
            [% IF subscriptionid %]
484
                <a class="cancel" href="/cgi-bin/koha/acqui/newordersubscription.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]">Cancel</a>
479
                <a class="cancel" href="/cgi-bin/koha/acqui/newordersubscription.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">[% t('Cancel') %]</a>
485
            [% ELSE %]
480
            [% ELSE %]
486
                <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Cancel</a>
481
                <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('Cancel') %]</a>
487
            [% END %]
482
            [% END %]
488
        [% END %]
483
        [% END %]
489
    </fieldset>
484
    </fieldset>
Lines 493-499 Link Here
493
    <div class="modal-dialog">
488
    <div class="modal-dialog">
494
    <div class="modal-content">
489
    <div class="modal-content">
495
    <div class="modal-body">
490
    <div class="modal-body">
496
    <h3>Processing multiple items</h3>
491
    <h3>[% t('Processing multiple items') %]</h3>
497
    </div>
492
    </div>
498
    </div>
493
    </div>
499
    </div>
494
    </div>
Lines 502-509 Link Here
502
<div id="multiCountModal" class="modal fade" aria-labelledby="multiCountModal" aria-hidden="true">
497
<div id="multiCountModal" class="modal fade" aria-labelledby="multiCountModal" aria-hidden="true">
503
    <div class="modal-dialog">
498
    <div class="modal-dialog">
504
    <div class="modal-content">
499
    <div class="modal-content">
505
    <h3>Invalid number of copies</h3>
500
    <h3>[% t('Invalid number of copies') %]</h3>
506
    <p>Please enter a <b>number</b>, greater than or equal to 1</p>
501
    <p>[% t('Please enter a') %] <b>[% t('number') %]</b>[% t(', greater than or equal to 1') %]</p>
507
    </div>
502
    </div>
508
    </div>
503
    </div>
509
</div>
504
</div>
Lines 739-743 Link Here
739
    <input type="hidden" name="bib_kohafield" value="[% field.kohafield %]" />
734
    <input type="hidden" name="bib_kohafield" value="[% field.kohafield %]" />
740
    <input type="hidden" name="bib_tag" value="[% field.tag %]" />
735
    <input type="hidden" name="bib_tag" value="[% field.tag %]" />
741
    <input type="hidden" name="bib_subfield" value="[% field.subfield %]" />
736
    <input type="hidden" name="bib_subfield" value="[% field.subfield %]" />
742
    [% IF field.mandatory %] <span class="required">Required</span>[% END %]
737
    [% IF field.mandatory %] <span class="required">[% t('Required') %]</span>[% END %]
743
[% END %]
738
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty_duplicate.tt (-13 / +14 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Acquisitions &rsaquo; Basket [% basketno %] &rsaquo; Duplicate warning</title>
3
<title>[% t('Koha › Acquisitions › Basket') %] [% basketno %] [% t('› Duplicate warning') %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
5
<body id="acq_neworderempty_duplicate" class="acq">
6
<body id="acq_neworderempty_duplicate" class="acq">
Lines 7-13 Link Here
7
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'header.inc' %]
8
[% INCLUDE 'acquisitions-search.inc' %]
9
[% INCLUDE 'acquisitions-search.inc' %]
9
10
10
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo; Duplicate warning</div>
11
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('Basket') %] [% basketno %]</a> [% t('› Duplicate warning') %]</div>
11
12
12
<div id="doc3" class="yui-t2">
13
<div id="doc3" class="yui-t2">
13
14
Lines 16-34 Link Here
16
    <div class="yui-b">
17
    <div class="yui-b">
17
18
18
<div class="dialog alert">
19
<div class="dialog alert">
19
<h4>Duplicate warning</h4>
20
<h4>[% t('Duplicate warning') %]</h4>
20
<p>You selected a record from an external source that matches an existing record in your catalog: [% IF ( BiblioDefaultViewmarc ) %]<a class="popup" target="_blank" title="Open in new window" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% biblionumber |url %]">
21
<p>[% t('You selected a record from an external source that matches an existing record in your catalog:') %] [% IF ( BiblioDefaultViewmarc ) %]<a class="popup" target="_blank" title="[% t('Open in new window') %]" href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=[% biblionumber |url %]">
21
[% ELSIF ( BiblioDefaultViewlabeled_marc ) %]<a class="popup" target="_blank" title="Open in new window" href="/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=[% biblionumber |url %]">
22
[% ELSIF ( BiblioDefaultViewlabeled_marc ) %]<a class="popup" target="_blank" title="[% t('Open in new window') %]" href="/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=[% biblionumber |url %]">
22
[% ELSIF ( BiblioDefaultViewisbd ) %]<a class="popup" target="_blank" title="Open in new window" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=[% biblionumber |url %]">
23
[% ELSIF ( BiblioDefaultViewisbd ) %]<a class="popup" target="_blank" title="[% t('Open in new window') %]" href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=[% biblionumber |url %]">
23
[% ELSE %]<a class="popup" target="_blank" title="Open in new window" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber |url %]">[% END %][% duplicatetitle %]</a></p>
24
[% ELSE %]<a class="popup" target="_blank" title="[% t('Open in new window') %]" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblionumber |url %]">[% END %][% duplicatetitle %]</a></p>
24
</div>
25
</div>
25
26
26
<div class="yui-gb">
27
<div class="yui-gb">
27
<div class="yui-u first">
28
<div class="yui-u first">
28
<div style="border: 1px solid #DDD; padding:1em;">
29
<div style="border: 1px solid #DDD; padding:1em;">
29
<form action="/cgi-bin/koha/acqui/neworderempty.pl">
30
<form action="/cgi-bin/koha/acqui/neworderempty.pl">
30
<h4>Use existing record</h4>
31
<h4>[% t('Use existing record') %]</h4>
31
<p>Do not create a duplicate record. Add an order from the existing record in your catalog.</p>
32
<p>[% t('Do not create a duplicate record. Add an order from the existing record in your catalog.') %]</p>
32
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
33
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
33
<input type="hidden" name="basketno" value="[% basketno %]" />
34
<input type="hidden" name="basketno" value="[% basketno %]" />
34
<input type="hidden" name="biblionumber" value="[% biblionumber %]" />
35
<input type="hidden" name="biblionumber" value="[% biblionumber %]" />
Lines 40-47 Link Here
40
<div class="yui-u">
41
<div class="yui-u">
41
<div style="border: 1px solid #DDD; padding:1em;">
42
<div style="border: 1px solid #DDD; padding:1em;">
42
<form action="/cgi-bin/koha/acqui/basket.pl">
43
<form action="/cgi-bin/koha/acqui/basket.pl">
43
<h4>Cancel and return to order</h4>
44
<h4>[% t('Cancel and return to order') %]</h4>
44
<p>Return to the basket without making a new order.</p>
45
<p>[% t('Return to the basket without making a new order.') %]</p>
45
<input type="hidden" name="basketno" value="[% basketno %]" />
46
<input type="hidden" name="basketno" value="[% basketno %]" />
46
<input type="submit" value="Cancel" />
47
<input type="submit" value="Cancel" />
47
</form>
48
</form>
Lines 51-58 Link Here
51
<div class="yui-u">
52
<div class="yui-u">
52
<div style="border: 1px solid #DDD; padding:1em;">
53
<div style="border: 1px solid #DDD; padding:1em;">
53
<form action="/cgi-bin/koha/acqui/neworderempty.pl">
54
<form action="/cgi-bin/koha/acqui/neworderempty.pl">
54
<h4>Create new record</h4>
55
<h4>[% t('Create new record') %]</h4>
55
<p>Create a new record by importing the external (duplicate) record.</p>
56
<p>[% t('Create a new record by importing the external (duplicate) record.') %]</p>
56
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
57
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
57
<input type="hidden" name="basketno" value="[% basketno %]" />
58
<input type="hidden" name="basketno" value="[% basketno %]" />
58
<input type="hidden" name="breedingid" value="[% breedingid %]" />
59
<input type="hidden" name="breedingid" value="[% breedingid %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersubscription.tt (-20 / +21 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE Koha %]
5
[% USE Koha %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Serials [% biblionumber %]</title>
8
<title>[% t('Koha › Serials') %] [% biblionumber %]</title>
8
[% Asset.css("css/datatables.css") %]
9
[% Asset.css("css/datatables.css") %]
9
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
10
</head>
11
</head>
Lines 13-49 Link Here
13
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'header.inc' %]
14
[% INCLUDE 'acquisitions-search.inc' %]
15
[% INCLUDE 'acquisitions-search.inc' %]
15
16
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo; Add order from a subscription</div>
17
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('Basket') %] [% basketno %]</a> [% t('› Add order from a subscription') %]</div>
17
18
18
<div id="doc3" class="yui-t2">
19
<div id="doc3" class="yui-t2">
19
    <div id="bd">
20
    <div id="bd">
20
    <div id="yui-main">
21
    <div id="yui-main">
21
        <div class="yui-b">
22
        <div class="yui-b">
22
            <h2>Serials subscriptions</h2>
23
            <h2>[% t('Serials subscriptions') %]</h2>
23
            [% IF (done_searched) %]
24
            [% IF (done_searched) %]
24
                <label for="show_only_renewed">
25
                <label for="show_only_renewed">
25
                    <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
26
                    <input type="checkbox" style="vertical-align: middle;" id="show_only_renewed" />
26
                    Show only renewed
27
                    [% t('Show only renewed') %]
27
                </label>
28
                </label>
28
                [% IF (subs_loop) %]
29
                [% IF (subs_loop) %]
29
                    <table id="srlt">
30
                    <table id="srlt">
30
                        <thead>
31
                        <thead>
31
                            <tr>
32
                            <tr>
32
                                <th>ISSN</th>
33
                                <th>[% t('ISSN') %]</th>
33
                                <th class="anti-the">Title</th>
34
                                <th class="anti-the">[% t('Title') %]</th>
34
                                <th> Notes </th>
35
                                <th> [% t('Notes') %] </th>
35
                                <th>Vendor</th>
36
                                <th>[% t('Vendor') %]</th>
36
                                <th>Library</th>
37
                                <th>[% t('Library') %]</th>
37
                                <th>Call number</th>
38
                                <th>[% t('Call number') %]</th>
38
                                <th class="title-string">Expiration date</th>
39
                                <th class="title-string">[% t('Expiration date') %]</th>
39
                                <th class="NoSort"></th>
40
                                <th class="NoSort"></th>
40
                            </tr>
41
                            </tr>
41
                        </thead>
42
                        </thead>
42
                        <tbody>
43
                        <tbody>
43
                        [% FOREACH sub IN subs_loop %]
44
                        [% FOREACH sub IN subs_loop %]
44
                            <tr data-reneweddate="[% sub.reneweddate %]" >
45
                            <tr data-reneweddate="[% sub.reneweddate %]">
45
                                <td>[% sub.issn %]</td>
46
                                <td>[% sub.issn %]</td>
46
                                <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% sub.subscriptionid %]" class="button" title="subscription detail">[% IF (sub.title) %][% sub.title |html %][% ELSE %]
47
                                <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% sub.subscriptionid %]" class="button" title="[% t('subscription detail') %]">[% IF (sub.title) %][% sub.title |html %][% ELSE %]
47
                                ---
48
                                ---
48
                            [% END %][% IF (sub.unititle) %], [% sub.unititle %][% END %]</a>
49
                            [% END %][% IF (sub.unititle) %], [% sub.unititle %][% END %]</a>
49
                                </td>
50
                                </td>
Lines 63-80 Link Here
63
                                    [% IF (sub.enddate) %]
64
                                    [% IF (sub.enddate) %]
64
                                        <span title="[% sub.enddate %]">[% sub.enddate | $KohaDates %]</span>
65
                                        <span title="[% sub.enddate %]">[% sub.enddate | $KohaDates %]</span>
65
                                    [% ELSE %]
66
                                    [% ELSE %]
66
                                        <span title="0000-00-00"></span>
67
                                        <span title="[% t('0000-00-00') %]"></span>
67
                                    [% END %]
68
                                    [% END %]
68
                                </td>
69
                                </td>
69
                                <td>
70
                                <td>
70
                                    [% IF (sub.alreadyOnOrder) %]
71
                                    [% IF (sub.alreadyOnOrder) %]
71
                                        Outstanding order (only one order per subscription is allowed)
72
                                        [% t('Outstanding order (only one order per subscription is allowed)') %]
72
                                    [% ELSIF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid%]
73
                                    [% ELSIF not sub.aqbooksellerid || booksellerid == sub.aqbooksellerid%]
73
                                        <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;biblionumber=[% sub.biblionumber %]&amp;from_subscriptionid=[% sub.subscriptionid %]" title="Order this one">
74
                                        <a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&biblionumber=[% sub.biblionumber %]&from_subscriptionid=[% sub.subscriptionid %]" title="[% t('Order this one') %]">
74
                                            Order
75
                                            [% t('Order') %]
75
                                        </a>
76
                                        </a>
76
                                    [% ELSE %]
77
                                    [% ELSE %]
77
                                        <a title="This subscription depends on another supplier" style="cursor:help">Cannot be ordered</a>
78
                                        <a title="[% t('This subscription depends on another supplier') %]" style="cursor:help">[% t('Cannot be ordered') %]</a>
78
                                    [% END %]
79
                                    [% END %]
79
                                </td>
80
                                </td>
80
                            </tr>
81
                            </tr>
Lines 82-91 Link Here
82
                        </tbody>
83
                        </tbody>
83
                    </table>
84
                    </table>
84
                [% ELSE %]
85
                [% ELSE %]
85
                    <p>Sorry, there is no result for your search.</p>
86
                    <p>[% t('Sorry, there is no result for your search.') %]</p>
86
                [% END %]
87
                [% END %]
87
            [% ELSE %]
88
            [% ELSE %]
88
                <p>Use the search form on the left to find subscriptions.</p>
89
                <p>[% t('Use the search form on the left to find subscriptions.') %]</p>
89
            [% END %]
90
            [% END %]
90
        </div>
91
        </div>
91
    </div>
92
    </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt (-18 / +19 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; Acquisitions &rsaquo; Add order from a suggestion</title>
5
<title>[% t('Koha › Acquisitions › Add order from a suggestion') %]</title>
5
[% Asset.css("css/datatables.css") %]
6
[% Asset.css("css/datatables.css") %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
</head>
8
</head>
Lines 10-16 Link Here
10
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'suggestions-add-search.inc' %]
12
[% INCLUDE 'suggestions-add-search.inc' %]
12
13
13
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">Basket [% basketno %]</a> &rsaquo; Add order from a suggestion</div>
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]">[% t('Basket') %] [% basketno %]</a> [% t('› Add order from a suggestion') %]</div>
14
15
15
<div id="doc3" class="yui-t2">
16
<div id="doc3" class="yui-t2">
16
   
17
   
Lines 18-34 Link Here
18
	<div id="yui-main">
19
	<div id="yui-main">
19
	<div class="yui-b">
20
	<div class="yui-b">
20
	
21
	
21
<h1>Suggestions</h1>
22
<h1>[% t('Suggestions') %]</h1>
22
    [% IF ( suggestions_loop ) %]
23
    [% IF ( suggestions_loop ) %]
23
    <a href="#" id="show_only_mine">Show only mine</a> | <a href="#" id="show_all">Show all suggestions</a>
24
    <a href="#" id="show_only_mine">[% t('Show only mine') %]</a> | <a href="#" id="show_all">[% t('Show all suggestions') %]</a>
24
    <table id="suggestionst">
25
    <table id="suggestionst">
25
        <thead>
26
        <thead>
26
        <tr>
27
        <tr>
27
            <th>Mine</th>
28
            <th>[% t('Mine') %]</th>
28
            <th>Suggestion</th>
29
            <th>[% t('Suggestion') %]</th>
29
            <th>Suggested by</th>
30
            <th>[% t('Suggested by') %]</th>
30
            <th>Accepted by</th>
31
            <th>[% t('Accepted by') %]</th>
31
            <th>&nbsp;</th>
32
            <th> </th>
32
        </tr>
33
        </tr>
33
        </thead>
34
        </thead>
34
        <tbody>
35
        <tbody>
Lines 38-49 Link Here
38
                <td>
39
                <td>
39
                    <p>[% suggestions_loo.title |html %] - [% suggestions_loo.author %]</p>
40
                    <p>[% suggestions_loo.title |html %] - [% suggestions_loo.author %]</p>
40
                    <p>
41
                    <p>
41
                        [% IF ( suggestions_loo.copyrightdate ) %]&copy; [% suggestions_loo.copyrightdate %] [% END %]
42
                        [% IF ( suggestions_loo.copyrightdate ) %]© [% suggestions_loo.copyrightdate %] [% END %]
42
                        [% IF ( suggestions_loo.volumedesc ) %]volume: <i>[% suggestions_loo.volumedesc %]</i> [% END %]
43
                        [% IF ( suggestions_loo.volumedesc ) %][% t('volume:') %] <i>[% suggestions_loo.volumedesc %]</i> [% END %]
43
                        [% IF ( suggestions_loo.isbn ) %]ISBN: <i>[% suggestions_loo.isbn %]</i> [% END %]
44
                        [% IF ( suggestions_loo.isbn ) %][% t('ISBN:') %] <i>[% suggestions_loo.isbn %]</i> [% END %]
44
                        [% IF ( suggestions_loo.publishercode ) %]<br />published by: [% suggestions_loo.publishercode %] [% END %]
45
                        [% IF ( suggestions_loo.publishercode ) %]<br />[% t('published by:') %] [% suggestions_loo.publishercode %] [% END %]
45
                        [% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear %]</i> [% END %]
46
                        [% IF ( suggestions_loo.publicationyear ) %] [% t('in') %] <i>[% suggestions_loo.publicationyear %]</i> [% END %]
46
                        [% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place %]</i> [% END %]
47
                        [% IF ( suggestions_loo.place ) %] [% t('in') %] <i>[% suggestions_loo.place %]</i> [% END %]
47
                        [% IF ( suggestions_loo.note ) %]<p><i>([% suggestions_loo.note %])</i></p> [% END %]
48
                        [% IF ( suggestions_loo.note ) %]<p><i>([% suggestions_loo.note %])</i></p> [% END %]
48
                    </p>
49
                    </p>
49
                </td>
50
                </td>
Lines 55-63 Link Here
55
                </td>
56
                </td>
56
                <td class="actions">
57
                <td class="actions">
57
                    [% IF ( suggestions_loo.biblionumber ) %]
58
                    [% IF ( suggestions_loo.biblionumber ) %]
58
                        <a href="neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;suggestionid=[% suggestions_loo.suggestionid %]&amp;biblio=[% suggestions_loo.biblionumber %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Order</a>
59
                        <a href="neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&suggestionid=[% suggestions_loo.suggestionid %]&biblio=[% suggestions_loo.biblionumber %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% t('Order') %]</a>
59
                    [% ELSE %]
60
                    [% ELSE %]
60
                        <a href="neworderempty.pl?booksellerid=[% booksellerid %]&amp;basketno=[% basketno %]&amp;suggestionid=[% suggestions_loo.suggestionid %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Order</a>
61
                        <a href="neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]&suggestionid=[% suggestions_loo.suggestionid %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% t('Order') %]</a>
61
                    [% END %]
62
                    [% END %]
62
                </td>
63
                </td>
63
            </tr>
64
            </tr>
Lines 65-71 Link Here
65
        </tbody>
66
        </tbody>
66
    </table>
67
    </table>
67
    [% ELSE %]
68
    [% ELSE %]
68
        There are no outstanding (accepted) suggestions.
69
        [% t('There are no outstanding (accepted) suggestions.') %]
69
    [% END %]
70
    [% END %]
70
</div>
71
</div>
71
</div>
72
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt (-14 / +15 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE ItemTypes %]
4
[% USE ItemTypes %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Acquisitions &rsaquo; Ordered</title>
7
<title>[% t('Koha › Acquisitions › Ordered') %]</title>
7
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/datatables.css") %]
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'acquisitions-search.inc' %]
14
[% INCLUDE 'acquisitions-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; Ordered - [% fund_code %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> [% t('› Ordered -') %] [% fund_code %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
19
Lines 20-39 Link Here
20
    <div id="yui-main">
21
    <div id="yui-main">
21
        <div class="yui-b">
22
        <div class="yui-b">
22
23
23
<h1>Fund: [% fund_code %]</h1>
24
<h1>[% t('Fund:') %] [% fund_code %]</h1>
24
<h2>Ordered</h2>
25
<h2>[% t('Ordered') %]</h2>
25
26
26
<table id="spent">
27
<table id="spent">
27
    <thead>
28
    <thead>
28
    <tr>
29
    <tr>
29
    <th class="anti-the"> Title </th>
30
    <th class="anti-the"> [% t('Title') %] </th>
30
	<th> Order </th>
31
	<th> [% t('Order') %] </th>
31
	<th> Vendor </th>
32
	<th> [% t('Vendor') %] </th>
32
    <th> Item type </th>
33
    <th> [% t('Item type') %] </th>
33
    <th> Left on order </th>
34
    <th> [% t('Left on order') %] </th>
34
	<th> Estimated cost per unit </th>
35
	<th> [% t('Estimated cost per unit') %] </th>
35
    <th class="title-string"> Date ordered </th>
36
    <th class="title-string"> [% t('Date ordered') %] </th>
36
	<th> Subtotal </th>
37
	<th> [% t('Subtotal') %] </th>
37
    </tr>
38
    </tr>
38
    </thead>
39
    </thead>
39
    <tbody>
40
    <tbody>
Lines 46-52 Link Here
46
	</td>
47
	</td>
47
	<td class="cell">
48
	<td class="cell">
48
        [% IF ( CAN_user_acquisition_order_manage ) %]
49
        [% IF ( CAN_user_acquisition_order_manage ) %]
49
            <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% order.ordernumber %]&amp;booksellerid=[% order.booksellerid %]&amp;basketno=[% order.basketno %]">[% order.ordernumber %]</a>
50
            <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% order.ordernumber %]&booksellerid=[% order.booksellerid %]&basketno=[% order.basketno %]">[% order.ordernumber %]</a>
50
        [% ELSE %]
51
        [% ELSE %]
51
            [% order.ordernumber %]
52
            [% order.ordernumber %]
52
        [% END %]
53
        [% END %]
Lines 74-80 Link Here
74
    </tbody>
75
    </tbody>
75
    <tfoot>
76
    <tfoot>
76
    <tr>
77
    <tr>
77
        <td> Total </td>
78
        <td> [% t('Total') %] </td>
78
        <td> </td>
79
        <td> </td>
79
        <td> </td>
80
        <td> </td>
80
        <td> </td>
81
        <td> </td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt (-68 / +69 lines)
Lines 1-10 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE Branches %]
4
[% USE Branches %]
4
[% USE Price %]
5
[% USE Price %]
5
[% SET footerjs = 1 %]
6
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
[% INCLUDE 'doc-head-open.inc' %]
7
<title>Koha &rsaquo; Acquisitions &rsaquo; Receipt summary for : [% name %] [% IF ( invoice ) %]invoice, [% invoice %][% END %]</title>
8
<title>[% t('Koha › Acquisitions › Receipt summary for :') %] [% name %] [% IF ( invoice ) %][% t('invoice,') %] [% invoice %][% END %]</title>
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
10
11
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'acquisitions-search.inc' %]
14
[% INCLUDE 'acquisitions-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; Receive items from : [% name %] [% IF ( invoice ) %][[% invoice |html %]][% END %] (order #[% ordernumber %])</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> [% t('› Receive items from :') %] [% name %] [% IF ( invoice ) %][[% invoice |html %]][% END %] [% t('(order #') %][% ordernumber %])</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
   
19
   
Lines 20-26 Link Here
20
	<div id="yui-main">
21
	<div id="yui-main">
21
	<div class="yui-b">
22
	<div class="yui-b">
22
23
23
<h1>Receive items from : [% name %] [% IF ( invoice ) %][[% invoice |html %]] [% END %] (order #[% ordernumber %])</h1>
24
<h1>[% t('Receive items from :') %] [% name %] [% IF ( invoice ) %][[% invoice |html %]] [% END %] [% t('(order #') %][% ordernumber %])</h1>
24
25
25
[% IF ( count ) %]
26
[% IF ( count ) %]
26
    <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
27
    <form action="/cgi-bin/koha/acqui/finishreceive.pl" method="post" onsubmit="return Check(this);">
Lines 29-54 Link Here
29
    <div class="error" style="display:none"></div>
30
    <div class="error" style="display:none"></div>
30
31
31
    <fieldset class="rows">
32
    <fieldset class="rows">
32
    <legend>Catalog details</legend>
33
    <legend>[% t('Catalog details') %]</legend>
33
    <ol><li><span class="label">Title: </span><span class="title">[% title |html %]</span></li>
34
    <ol><li><span class="label">[% t('Title:') %] </span><span class="title">[% title |html %]</span></li>
34
    <li> <span class="label">Author: </span>
35
    <li> <span class="label">[% t('Author:') %] </span>
35
        [% author %]</li>
36
        [% author %]</li>
36
    <li><span class="label">Copyright: </span>
37
    <li><span class="label">[% t('Copyright:') %] </span>
37
        [% copyrightdate %]</li>
38
        [% copyrightdate %]</li>
38
    <li> <span class="label">ISBN: </span>
39
    <li> <span class="label">[% t('ISBN:') %] </span>
39
        [% isbn %]</li>
40
        [% isbn %]</li>
40
    <li> <span class="label">Series: </span>
41
    <li> <span class="label">[% t('Series:') %] </span>
41
        [% seriestitle %]</li>
42
        [% seriestitle %]</li>
42
    </ol>
43
    </ol>
43
	</fieldset>
44
	</fieldset>
44
45
45
    [% IF ( suggestionid ) %]
46
    [% IF ( suggestionid ) %]
46
        <fieldset class="rows">
47
        <fieldset class="rows">
47
        <legend>Suggestion</legend>
48
        <legend>[% t('Suggestion') %]</legend>
48
        <ol>
49
        <ol>
49
          <li>
50
          <li>
50
            <span class="label">Suggested by: </span>
51
            <span class="label">[% t('Suggested by:') %] </span>
51
            [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&amp;op=show">suggestion #[% suggestionid %]</a>)
52
            [% surnamesuggestedby %][% IF ( firstnamesuggestedby ) %], [% firstnamesuggestedby %][% END %] (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% suggestionid %]&op=show">[% t('suggestion #') %][% suggestionid %]</a>)
52
          </li>
53
          </li>
53
        </ol>
54
        </ol>
54
        </fieldset>
55
        </fieldset>
Lines 56-81 Link Here
56
57
57
    [% IF (AcqCreateItemReceiving) %]
58
    [% IF (AcqCreateItemReceiving) %]
58
        <div id="items_list" style="display:none">
59
        <div id="items_list" style="display:none">
59
            <p><b>Items list</b></p>
60
            <p><b>[% t('Items list') %]</b></p>
60
            <div style="width:100%;overflow:auto;">
61
            <div style="width:100%;overflow:auto;">
61
                <table>
62
                <table>
62
                    <thead>
63
                    <thead>
63
                        <tr>
64
                        <tr>
64
                            <th>&nbsp;</th>
65
                            <th> </th>
65
                            <th>&nbsp;</th>
66
                            <th> </th>
66
                            <th>Barcode</th>
67
                            <th>[% t('Barcode') %]</th>
67
                            <th>Home library</th>
68
                            <th>[% t('Home library') %]</th>
68
                            <th>Holding library</th>
69
                            <th>[% t('Holding library') %]</th>
69
                            <th>Not for loan</th>
70
                            <th>[% t('Not for loan') %]</th>
70
                            <th>Restricted</th>
71
                            <th>[% t('Restricted') %]</th>
71
                            <th>Location</th>
72
                            <th>[% t('Location') %]</th>
72
                            <th>Call number</th>
73
                            <th>[% t('Call number') %]</th>
73
                            <th>Copy number</th>
74
                            <th>[% t('Copy number') %]</th>
74
                            <th>Inventory number</th>
75
                            <th>[% t('Inventory number') %]</th>
75
                            <th>Collection code</th>
76
                            <th>[% t('Collection code') %]</th>
76
                            <th>Item type</th>
77
                            <th>[% t('Item type') %]</th>
77
                            <th>Materials</th>
78
                            <th>[% t('Materials') %]</th>
78
                            <th>Notes</th>
79
                            <th>[% t('Notes') %]</th>
79
                        </tr>
80
                        </tr>
80
                    </thead>
81
                    </thead>
81
                    <tbody>
82
                    <tbody>
Lines 86-97 Link Here
86
87
87
        [% UNLESS subscriptionid %]
88
        [% UNLESS subscriptionid %]
88
          <fieldset class="rows" id="itemfieldset">
89
          <fieldset class="rows" id="itemfieldset">
89
              <legend>Item</legend>
90
              <legend>[% t('Item') %]</legend>
90
              [% IF ( NoACQframework ) %]
91
              [% IF ( NoACQframework ) %]
91
                  <p class="required">
92
                  <p class="required">
92
                      No ACQ framework, using default. You should create a
93
                      [% t('No ACQ framework, using default. You should create a') %]
93
                      framework with code ACQ, the items framework would be
94
                      [% t('framework with code ACQ, the items framework would be') %]
94
                      used
95
                      [% t('used') %]
95
                  </p>
96
                  </p>
96
              [% END %]
97
              [% END %]
97
              <div id="outeritemblock"></div>
98
              <div id="outeritemblock"></div>
Lines 99-131 Link Here
99
        [% END %]
100
        [% END %]
100
    [% ELSIF (AcqCreateItem == 'ordering') %]
101
    [% ELSIF (AcqCreateItem == 'ordering') %]
101
        [% IF (items.size) %]
102
        [% IF (items.size) %]
102
            <h5>Items</h5>
103
            <h5>[% t('Items') %]</h5>
103
            <div style="width:100%;overflow:auto">
104
            <div style="width:100%;overflow:auto">
104
                <table>
105
                <table>
105
                    <thead>
106
                    <thead>
106
                        <tr>
107
                        <tr>
107
                            <th>Receive?</th>
108
                            <th>[% t('Receive?') %]</th>
108
                            <th>&nbsp;</th>
109
                            <th> </th>
109
                            <th>Barcode</th>
110
                            <th>[% t('Barcode') %]</th>
110
                            <th>Home branch</th>
111
                            <th>[% t('Home branch') %]</th>
111
                            <th>Holding branch</th>
112
                            <th>[% t('Holding branch') %]</th>
112
                            <th>Not for loan</th>
113
                            <th>[% t('Not for loan') %]</th>
113
                            <th>Restricted</th>
114
                            <th>[% t('Restricted') %]</th>
114
                            <th>Location</th>
115
                            <th>[% t('Location') %]</th>
115
                            <th>Call number</th>
116
                            <th>[% t('Call number') %]</th>
116
                            <th>Copy number</th>
117
                            <th>[% t('Copy number') %]</th>
117
                            <th>Inventory number</th>
118
                            <th>[% t('Inventory number') %]</th>
118
                            <th>Collection code</th>
119
                            <th>[% t('Collection code') %]</th>
119
                            <th>Item type</th>
120
                            <th>[% t('Item type') %]</th>
120
                            <th>Materials</th>
121
                            <th>[% t('Materials') %]</th>
121
                            <th>Notes</th>
122
                            <th>[% t('Notes') %]</th>
122
                        </tr>
123
                        </tr>
123
                    </thead>
124
                    </thead>
124
                    <tbody>
125
                    <tbody>
125
                        [% FOREACH item IN items %]
126
                        [% FOREACH item IN items %]
126
                            <tr id="item_[% item.itemnumber %]">
127
                            <tr id="item_[% item.itemnumber %]">
127
                                <td style="text-align:center"><input type="checkbox" name="items_to_receive" value="[% item.itemnumber %]" /></td>
128
                                <td style="text-align:center"><input type="checkbox" name="items_to_receive" value="[% item.itemnumber %]" /></td>
128
                                <td><a style="cursor:pointer" onclick="PopupEditPage([% item.biblionumber %],[% item.itemnumber %]);">Edit</a></td>
129
                                <td><a style="cursor:pointer" onclick="PopupEditPage([% item.biblionumber %],[% item.itemnumber %]);">[% t('Edit') %]</a></td>
129
                                <td>[% item.barcode %]</td>
130
                                <td>[% item.barcode %]</td>
130
                                <td>[% Branches.GetName( item.homebranch )%]</td>
131
                                <td>[% Branches.GetName( item.homebranch )%]</td>
131
                                <td>[% Branches.GetName( item.holdingbranch ) %]</td>
132
                                <td>[% Branches.GetName( item.holdingbranch ) %]</td>
Lines 153-166 Link Here
153
	</div>
154
	</div>
154
	<div class="yui-u">
155
	<div class="yui-u">
155
    <fieldset class="rows">
156
    <fieldset class="rows">
156
    <legend>Accounting details</legend>
157
    <legend>[% t('Accounting details') %]</legend>
157
        <ol>
158
        <ol>
158
            <li>
159
            <li>
159
                <label for="datereceived">Date received: </label>
160
                <label for="datereceived">[% t('Date received:') %] </label>
160
                <input type="text" size="10" id="datereceived" name="datereceived" value="[% datereceived | $KohaDates %]" class="datepicker" />
161
                <input type="text" size="10" id="datereceived" name="datereceived" value="[% datereceived | $KohaDates %]" class="datepicker" />
161
            </li>
162
            </li>
162
       <li><label for="bookfund">Fund: </label><select id="bookfund" name="bookfund">
163
       <li><label for="bookfund">[% t('Fund:') %] </label><select id="bookfund" name="bookfund">
163
            <option value="">Keep current ([% budget_period_description %] - [% bookfund %])</option>
164
            <option value="">[% t('Keep current (') %][% budget_period_description %] - [% bookfund %])</option>
164
            [% FOREACH period IN budget_loop %]
165
            [% FOREACH period IN budget_loop %]
165
                <optgroup label="[% period.description %]">
166
                <optgroup label="[% period.description %]">
166
                [% FOREACH fund IN period.funds %]
167
                [% FOREACH fund IN period.funds %]
Lines 172-187 Link Here
172
                [% END %]
173
                [% END %]
173
            [% END %]
174
            [% END %]
174
       </select></li>
175
       </select></li>
175
       <li><label>&nbsp;</label><span>(Current: [% budget_period_description %] - [% bookfund %])</span></li>
176
       <li><label> </label><span>[% t('(Current:') %] [% budget_period_description %] - [% bookfund %])</span></li>
176
       <li><label for="creator">Created by: </label><span> [% IF ( memberfirstname and membersurname ) %][% IF ( memberfirstname ) %][% memberfirstname %][% END %] [% membersurname %][% ELSE %]No name[% END %]</span></li>
177
       <li><label for="creator">[% t('Created by:') %] </label><span> [% IF ( memberfirstname and membersurname ) %][% IF ( memberfirstname ) %][% memberfirstname %][% END %] [% membersurname %][% ELSE %][% t('No name') %][% END %]</span></li>
177
       <li><label for="quantity_to_receive">Quantity to receive: </label><span class="label">
178
       <li><label for="quantity_to_receive">[% t('Quantity to receive:') %] </label><span class="label">
178
           [% IF ( edit and not subscriptionid) %]
179
           [% IF ( edit and not subscriptionid) %]
179
               <input type="text" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
180
               <input type="text" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
180
           [% ELSE%]
181
           [% ELSE%]
181
               <input type="text" readonly="readonly" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
182
               <input type="text" readonly="readonly" id="quantity_to_receive" name="quantity" value="[% quantity %]" />
182
           [% END %]
183
           [% END %]
183
           </span></li>
184
           </span></li>
184
        <li><label for="quantity">Quantity received: </label>
185
        <li><label for="quantity">[% t('Quantity received:') %] </label>
185
          [% IF (AcqCreateItemReceiving) %]
186
          [% IF (AcqCreateItemReceiving) %]
186
            [% IF ( subscriptionid ) %]
187
            [% IF ( subscriptionid ) %]
187
              <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="1" />
188
              <input readonly="readonly" type="text" size="20" name="quantityrec" id="quantity" value="1" />
Lines 210-224 Link Here
210
                <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="0" />
211
                <input id="origquantityrec" readonly="readonly" type="hidden" name="origquantityrec" value="0" />
211
            [% END %]
212
            [% END %]
212
            <div id="qtyrecerror" style="display:none">
213
            <div id="qtyrecerror" style="display:none">
213
                <p class="error">Warning, you have entered more items than expected.
214
                <p class="error">[% t('Warning, you have entered more items than expected.') %]
214
                Items will not be created.</p>
215
                [% t('Items will not be created.') %]</p>
215
            </div>
216
            </div>
216
          [% END %][%# IF (AcqCreateItemReceiving) %]
217
          [% END %][%# IF (AcqCreateItemReceiving) %]
217
		</li>
218
		</li>
218
219
219
        [% IF ( gst_values ) %]
220
        [% IF ( gst_values ) %]
220
            <li>
221
            <li>
221
                <label for="tax_rate">Tax rate: </label>
222
                <label for="tax_rate">[% t('Tax rate:') %] </label>
222
                <select name="tax_rate" id="tax_rate">
223
                <select name="tax_rate" id="tax_rate">
223
                [% FOREACH gst IN gst_values %]
224
                [% FOREACH gst IN gst_values %]
224
                    [% IF gst.option == tax_rate %]
225
                    [% IF gst.option == tax_rate %]
Lines 233-258 Link Here
233
            <input type="hidden" name="tax_rate" value="0" />
234
            <input type="hidden" name="tax_rate" value="0" />
234
        [% END %]
235
        [% END %]
235
236
236
        <li><label for="rrp">Replacement cost: </label>[% rrp | $Price %]</li>
237
        <li><label for="rrp">[% t('Replacement cost:') %] </label>[% rrp | $Price %]</li>
237
        <li><label for="ecost">Budgeted cost: </label>[% ecost | $Price %]</li>
238
        <li><label for="ecost">[% t('Budgeted cost:') %] </label>[% ecost | $Price %]</li>
238
        <li>
239
        <li>
239
            <label for="unitprice">Actual cost:</label>
240
            <label for="unitprice">[% t('Actual cost:') %]</label>
240
            <input type="text" size="20" name="unitprice" id="unitprice" value="[% unitprice | $Price %]" />
241
            <input type="text" size="20" name="unitprice" id="unitprice" value="[% unitprice | $Price %]" />
241
        </li>
242
        </li>
242
        <li><label for="order_internalnote">Internal note: </label><textarea name="order_internalnote" width="40" rows="8" >[% order_internalnote %]</textarea></li>
243
        <li><label for="order_internalnote">[% t('Internal note:') %] </label><textarea name="order_internalnote" width="40" rows="8">[% order_internalnote %]</textarea></li>
243
        [% IF order_vendornote %]
244
        [% IF order_vendornote %]
244
            <li><label for="order_vendornote">Vendor note: </label><span>[% order_vendornote %]</span></li>
245
            <li><label for="order_vendornote">[% t('Vendor note:') %] </label><span>[% order_vendornote %]</span></li>
245
        [% END %]
246
        [% END %]
246
        </ol>
247
        </ol>
247
    </fieldset>
248
    </fieldset>
248
249
249
</div>
250
</div>
250
</div><div class="yui-g"><fieldset class="action">
251
</div><div class="yui-g"><fieldset class="action">
251
        <input type="submit"  value="Save" class="button" accesskey="w" />
252
        <input type="submit" value="Save" class="button" accesskey="w" />
252
        <a class="cancel" href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&sticky_filters=1">Cancel</a>
253
        <a class="cancel" href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&sticky_filters=1">[% t('Cancel') %]</a>
253
</fieldset></div>    </form>
254
</fieldset></div>    </form>
254
[% ELSE %]
255
[% ELSE %]
255
    This ordernumber does not exist.
256
    [% t('This ordernumber does not exist.') %]
256
[% END %]
257
[% END %]
257
258
258
</div>
259
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt (-125 / +126 lines)
Lines 1-3 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
Lines 5-12 Link Here
5
[% USE currency = format('%.2f') -%]
6
[% USE currency = format('%.2f') -%]
6
[% SET footerjs = 1 %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( date ) %]
9
<title>[% t('Koha › Acquisitions ›') %] [% IF ( date ) %]
9
            Receipt summary for [% name %] [% IF ( invoice ) %]invoice [% invoice %][% END %] on [% datereceived | $KohaDates %][% ELSE %]Receive orders from [% name %][% END %]</title>
10
            [% t('Receipt summary for') %] [% name %] [% IF ( invoice ) %][% t('invoice') %] [% invoice %][% END %] [% t('on') %] [% datereceived | $KohaDates %][% ELSE %][% t('Receive orders from') %] [% name %][% END %]</title>
10
[% Asset.css("css/datatables.css") %]
11
[% Asset.css("css/datatables.css") %]
11
[% INCLUDE 'doc-head-close.inc' %]
12
[% INCLUDE 'doc-head-close.inc' %]
12
</head>
13
</head>
Lines 15-29 Link Here
15
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'header.inc' %]
16
[% INCLUDE 'acquisitions-search.inc' %]
17
[% INCLUDE 'acquisitions-search.inc' %]
17
18
18
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo;
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> ›
19
    [% IF datereceived %]
20
    [% IF datereceived %]
20
        Receipt summary for <i>[% name %]</i>
21
        [% t('Receipt summary for') %] <i>[% name %]</i>
21
        [% IF ( invoice ) %]
22
        [% IF ( invoice ) %]
22
            <i>[ [% invoice |html %] ]</i>
23
            <i>[ [% invoice |html %] ]</i>
23
        [% END %]
24
        [% END %]
24
        on <i>[% datereceived | $KohaDates %]</i>
25
        [% t('on') %] <i>[% datereceived | $KohaDates %]</i>
25
    [% ELSE %]
26
    [% ELSE %]
26
        Receive orders from [% name %]
27
        [% t('Receive orders from') %] [% name %]
27
    [% END %]
28
    [% END %]
28
</div>
29
</div>
29
30
Lines 34-79 Link Here
34
	<div class="yui-b">
35
	<div class="yui-b">
35
	[% IF ( receive_error ) %]
36
	[% IF ( receive_error ) %]
36
	<div class="dialog alert">
37
	<div class="dialog alert">
37
	<h3>Error adding items:</h3>
38
	<h3>[% t('Error adding items:') %]</h3>
38
	<ul>
39
	<ul>
39
	[% FOREACH error_loo IN error_loop %]
40
	[% FOREACH error_loo IN error_loop %]
40
		<li>[% error_loo.error_param %][% IF ( error_loo.error_duplicate_barcode ) %]Duplicate Barcode[% END %] <!-- todo: other error conditions come here. --></li>
41
		<li>[% error_loo.error_param %][% IF ( error_loo.error_duplicate_barcode ) %][% t('Duplicate Barcode') %][% END %] <!-- todo: other error conditions come here. --></li>
41
	[% END %]
42
	[% END %]
42
	</ul>
43
	</ul>
43
	</div>
44
	</div>
44
	[% END %]
45
	[% END %]
45
    <h1>
46
    <h1>
46
        [% IF datereceived %]
47
        [% IF datereceived %]
47
            Receipt summary for <i>[% name %]</i> [% IF ( invoice ) %] <i> [ [% invoice |html %] ] </i>[% END %] on <i>[% datereceived | $KohaDates %]</i>
48
            [% t('Receipt summary for') %] <i>[% name %]</i> [% IF ( invoice ) %] <i> [ [% invoice |html %] ] </i>[% END %] [% t('on') %] <i>[% datereceived | $KohaDates %]</i>
48
        [% ELSE %]
49
        [% ELSE %]
49
            Receive orders from [% name %]
50
            [% t('Receive orders from') %] [% name %]
50
        [% END %]
51
        [% END %]
51
    </h1>
52
    </h1>
52
53
53
    [% IF ( success_delorder ) %]
54
    [% IF ( success_delorder ) %]
54
    <div class="dialog message">The order has been successfully canceled.</div>
55
    <div class="dialog message">[% t('The order has been successfully canceled.') %]</div>
55
    [% ELSE %]
56
    [% ELSE %]
56
	[% IF ( error_delitem ) %]
57
	[% IF ( error_delitem ) %]
57
	    <div class="dialog alert">The order has been canceled, although one or more items could not have been deleted.</div>
58
	    <div class="dialog alert">[% t('The order has been canceled, although one or more items could not have been deleted.') %]</div>
58
	[% END %]
59
	[% END %]
59
	[% IF ( error_delbiblio ) %]
60
	[% IF ( error_delbiblio ) %]
60
	    <div class="dialog alert">The order has been canceled, although the record has not been deleted.</div>
61
	    <div class="dialog alert">[% t('The order has been canceled, although the record has not been deleted.') %]</div>
61
	[% END %]
62
	[% END %]
62
    [% END %]
63
    [% END %]
63
64
64
    [% IF (error_cancelling_receipt) %]
65
    [% IF (error_cancelling_receipt) %]
65
      <div class="dialog error">
66
      <div class="dialog error">
66
      Cannot cancel receipt. Possible reasons :
67
      [% t('Cannot cancel receipt. Possible reasons :') %]
67
      <ul>
68
      <ul>
68
        <li>
69
        <li>
69
          The order line you trying to cancel was created from a partial receipt
70
          [% t('The order line you trying to cancel was created from a partial receipt') %]
70
          of another order line which is already received. Try to cancel this
71
          [% t('of another order line which is already received. Try to cancel this') %]
71
          one first and retry.
72
          [% t('one first and retry.') %]
72
        </li>
73
        </li>
73
        <li>
74
        <li>
74
          The order line you trying to cancel was created from a partial receipt
75
          [% t('The order line you trying to cancel was created from a partial receipt') %]
75
          of another order line which has been deleted. Cancellation is not
76
          [% t('of another order line which has been deleted. Cancellation is not') %]
76
          possible.
77
          [% t('possible.') %]
77
        </li>
78
        </li>
78
      </ul>
79
      </ul>
79
      </div>
80
      </div>
Lines 81-126 Link Here
81
82
82
    [% IF error_invoice_not_known %]
83
    [% IF error_invoice_not_known %]
83
        <div class="dialog error">
84
        <div class="dialog error">
84
            The invoice referenced by this invoiceid does not exist.
85
            [% t('The invoice referenced by this invoiceid does not exist.') %]
85
        </div>
86
        </div>
86
    [% END %]
87
    [% END %]
87
88
88
[% UNLESS no_orders_to_display %]
89
[% UNLESS no_orders_to_display %]
89
<div id="acqui_receive_summary">
90
<div id="acqui_receive_summary">
90
<p><strong>Invoice number:</strong> [% invoice |html %] <strong>Received by:</strong> [% loggedinusername %] <strong>On:</strong> [% datereceived | $KohaDates %]</p>
91
<p><strong>[% t('Invoice number:') %]</strong> [% invoice |html %] <strong>[% t('Received by:') %]</strong> [% loggedinusername %] <strong>[% t('On:') %]</strong> [% datereceived | $KohaDates %]</p>
91
</div>
92
</div>
92
[% UNLESS (invoiceclosedate) %]
93
[% UNLESS (invoiceclosedate) %]
93
  <div id="acqui_receive_search">
94
  <div id="acqui_receive_search">
94
    <h3>Pending orders</h3>
95
    <h3>[% t('Pending orders') %]</h3>
95
96
96
    [% IF ( loop_orders ) %]
97
    [% IF ( loop_orders ) %]
97
      <table id="pendingt">
98
      <table id="pendingt">
98
        <thead>
99
        <thead>
99
          <tr>
100
          <tr>
100
            <th>Basket search</th>
101
            <th>[% t('Basket search') %]</th>
101
            <th>Basket group search</th>
102
            <th>[% t('Basket group search') %]</th>
102
            <th>Order line search</th>
103
            <th>[% t('Order line search') %]</th>
103
            <th>Summary search</th>
104
            <th>[% t('Summary search') %]</th>
104
            <th>&nbsp;</th>
105
            <th> </th>
105
            <th>Quantity search</th>
106
            <th>[% t('Quantity search') %]</th>
106
            <th>Unit cost search</th>
107
            <th>[% t('Unit cost search') %]</th>
107
            <th>Order cost search</th>
108
            <th>[% t('Order cost search') %]</th>
108
            <th>Fund search</th>
109
            <th>[% t('Fund search') %]</th>
109
            <th>&nbsp;</th>
110
            <th> </th>
110
            <th>&nbsp;</th>
111
            <th> </th>
111
          </tr>
112
          </tr>
112
          <tr>
113
          <tr>
113
            <th>Basket</th>
114
            <th>[% t('Basket') %]</th>
114
            <th>Basket group</th>
115
            <th>[% t('Basket group') %]</th>
115
            <th>Order line</th>
116
            <th>[% t('Order line') %]</th>
116
            <th>Summary</th>
117
            <th>[% t('Summary') %]</th>
117
            <th>View record</th>
118
            <th>[% t('View record') %]</th>
118
            <th>Quantity</th>
119
            <th>[% t('Quantity') %]</th>
119
            <th>Unit cost</th>
120
            <th>[% t('Unit cost') %]</th>
120
            <th>Order cost</th>
121
            <th>[% t('Order cost') %]</th>
121
            <th>Fund</th>
122
            <th>[% t('Fund') %]</th>
122
            <th>&nbsp;</th>
123
            <th> </th>
123
            <th>&nbsp;</th>
124
            <th> </th>
124
          </tr>
125
          </tr>
125
        </thead>
126
        </thead>
126
        <tbody class="filterclass">
127
        <tbody class="filterclass">
Lines 131-233 Link Here
131
                  [% IF loop_order.basketgroupid %]
132
                  [% IF loop_order.basketgroupid %]
132
                    [% loop_order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% loop_order.booksellerid %]">[% loop_order.basketgroupid %]</a>)
133
                    [% loop_order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% loop_order.booksellerid %]">[% loop_order.basketgroupid %]</a>)
133
                  [% ELSE %]
134
                  [% ELSE %]
134
                    No basket group
135
                    [% t('No basket group') %]
135
                  [% END %]
136
                  [% END %]
136
                </td>
137
                </td>
137
                <td class="orderfilterclass"><a href="neworderempty.pl?ordernumber=[% loop_order.ordernumber %]&amp;booksellerid=[% loop_order.booksellerid %]">[% loop_order.ordernumber %]</a></td>
138
                <td class="orderfilterclass"><a href="neworderempty.pl?ordernumber=[% loop_order.ordernumber %]&booksellerid=[% loop_order.booksellerid %]">[% loop_order.ordernumber %]</a></td>
138
                <td class="summaryfilterclass">
139
                <td class="summaryfilterclass">
139
                  <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_order.biblionumber %]">[% loop_order.title |html %]</a>
140
                  <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% loop_order.biblionumber %]">[% loop_order.title |html %]</a>
140
                [% IF ( loop_order.author ) %] by [% loop_order.author %][% END %]
141
                [% IF ( loop_order.author ) %] [% t('by') %] [% loop_order.author %][% END %]
141
                [% IF ( loop_order.isbn ) %] &ndash; [% loop_order.isbn %][% END %]
142
                [% IF ( loop_order.isbn ) %] – [% loop_order.isbn %][% END %]
142
                [% IF ( loop_order.publishercode ) %]
143
                [% IF ( loop_order.publishercode ) %]
143
                    <br />Publisher: [% loop_order.publishercode %]
144
                    <br />[% t('Publisher:') %] [% loop_order.publishercode %]
144
                    [%- IF    ( loop_order.publicationyear > 0) -%], [% loop_order.publicationyear %]
145
                    [%- IF    ( loop_order.publicationyear > 0) -%], [% loop_order.publicationyear %]
145
                    [%- ELSIF ( loop_order.copyrightdate   > 0) -%] [% loop_order.copyrightdate %]
146
                    [%- ELSIF ( loop_order.copyrightdate   > 0) -%] [% loop_order.copyrightdate %]
146
                    [% END %]
147
                    [% END %]
147
                [% END %]
148
                [% END %]
148
                [% IF ( loop_order.suggestionid ) %]
149
                [% IF ( loop_order.suggestionid ) %]
149
                    <br/>
150
                    <br />
150
                    Suggested by: [% loop_order.surnamesuggestedby %][% IF ( loop_order.firstnamesuggestedby ) %], [% loop_order.firstnamesuggestedby %] [% END %]
151
                    [% t('Suggested by:') %] [% loop_order.surnamesuggestedby %][% IF ( loop_order.firstnamesuggestedby ) %], [% loop_order.firstnamesuggestedby %] [% END %]
151
                    (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% loop_order.suggestionid %]&amp;op=show">suggestion #[% loop_order.suggestionid %]</a>)
152
                    (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% loop_order.suggestionid %]&op=show">[% t('suggestion #') %][% loop_order.suggestionid %]</a>)
152
                [% END %]
153
                [% END %]
153
                <br />
154
                <br />
154
                [% IF ( loop_order.order_internalnote ) %]
155
                [% IF ( loop_order.order_internalnote ) %]
155
                    <p class="ordernote"><strong>Internal note: </strong>[% loop_order.order_internalnote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=internal">Change internal note</a>]</p>
156
                    <p class="ordernote"><strong>[% t('Internal note:') %] </strong>[% loop_order.order_internalnote|html %] [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=internal">[% t('Change internal note') %]</a>]</p>
156
                [% ELSE %]
157
                [% ELSE %]
157
                    [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=internal">Add internal note</a>]
158
                    [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=internal">[% t('Add internal note') %]</a>]
158
                [% END %]
159
                [% END %]
159
                [% IF ( loop_order.order_vendornote ) %]
160
                [% IF ( loop_order.order_vendornote ) %]
160
                    <p class="ordernote"><strong>Vendor note: </strong>[% loop_order.order_vendornote|html %]</p>
161
                    <p class="ordernote"><strong>[% t('Vendor note:') %] </strong>[% loop_order.order_vendornote|html %]</p>
161
                [% ELSE %]
162
                [% ELSE %]
162
                    [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&amp;referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=vendor">Add vendor note</a>]
163
                    [<a href="/cgi-bin/koha/acqui/modordernotes.pl?ordernumber=[% loop_order.ordernumber %]&referrer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]&type=vendor">[% t('Add vendor note') %]</a>]
163
                [% END %]
164
                [% END %]
164
                </td>
165
                </td>
165
                <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_order.biblionumber %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% loop_order.biblionumber %]" class="previewData">Card</a></td>
166
                <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% loop_order.biblionumber %]" class="previewData">[% t('MARC') %]</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% loop_order.biblionumber %]" class="previewData">[% t('Card') %]</a></td>
166
                <td>[% loop_order.quantity %]</td>
167
                <td>[% loop_order.quantity %]</td>
167
                <td>[% loop_order.ecost | $Price %]</td>
168
                <td>[% loop_order.ecost | $Price %]</td>
168
                <td>[% loop_order.total | $Price %]</td>
169
                <td>[% loop_order.total | $Price %]</td>
169
                <td>[% loop_order.budget_name %]</td>
170
                <td>[% loop_order.budget_name %]</td>
170
				<td>
171
				<td>
171
                              <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&amp;invoiceid=[% invoiceid %]">Receive</a>
172
                              <a href="orderreceive.pl?ordernumber=[% loop_order.ordernumber %]&invoiceid=[% invoiceid %]">[% t('Receive') %]</a>
172
                    <br />
173
                    <br />
173
                    <a href="#" onclick="transfer_order_popup([% loop_order.ordernumber %]); return false;">Transfer</a>
174
                    <a href="#" onclick="transfer_order_popup([% loop_order.ordernumber %]); return false;">[% t('Transfer') %]</a>
174
				</td>
175
				</td>
175
				<td>
176
				<td>
176
                        [% IF ( loop_order.left_holds_on_order ) %]
177
                        [% IF ( loop_order.left_holds_on_order ) %]
177
                        <span class="button" title="Can't cancel order, ([% loop_order.holds_on_order %]) holds are linked with this order cancel holds first">Can't cancel order</span><br>
178
                        <span class="button" title="[% t('Can\'t cancel order, (') %][% loop_order.holds_on_order %][% t(') holds are linked with this order cancel holds first') %]">[% t('Can\'t cancel order') %]</span><br>
178
                        [% ELSE %]
179
                        [% ELSE %]
179
                        <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% loop_order.ordernumber %]&biblionumber=[% loop_order.biblionumber %]&referrer=[% '/cgi-bin/koha/acqui/parcel.pl?invoiceid=' _ invoiceid | uri %]">Cancel order</a><br />
180
                        <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% loop_order.ordernumber %]&biblionumber=[% loop_order.biblionumber %]&referrer=[% '/cgi-bin/koha/acqui/parcel.pl?invoiceid=' _ invoiceid | uri %]">[% t('Cancel order') %]</a><br />
180
                        [% END %]
181
                        [% END %]
181
                        [% IF ( loop_order.can_del_bib ) %]
182
                        [% IF ( loop_order.can_del_bib ) %]
182
                        <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% loop_order.ordernumber %]&biblionumber=[% loop_order.biblionumber %]&del_biblio=1&referrer=[% '/cgi-bin/koha/acqui/parcel.pl?invoiceid=' _ invoiceid | uri %]">Cancel order and catalog record</a><br />
183
                        <a href="/cgi-bin/koha/acqui/cancelorder.pl?ordernumber=[% loop_order.ordernumber %]&biblionumber=[% loop_order.biblionumber %]&del_biblio=1&referrer=[% '/cgi-bin/koha/acqui/parcel.pl?invoiceid=' _ invoiceid | uri %]">[% t('Cancel order and catalog record') %]</a><br />
183
                        [% ELSE %]
184
                        [% ELSE %]
184
                        <span class="button" title="Can't delete catalog record, see constraints below">Can't cancel order and delete catalog record</span><br>
185
                        <span class="button" title="[% t('Can\'t delete catalog record, see constraints below') %]">[% t('Can\'t cancel order and delete catalog record') %]</span><br>
185
                        [% END %]
186
                        [% END %]
186
                        [% IF ( loop_order.left_item ) %]
187
                        [% IF ( loop_order.left_item ) %]
187
                        <b title="Can't delete catalog record, because of [% loop_order.items %] existing item(s)" >[% loop_order.items %] item(s) left</b><br>
188
                        <b title="[% t('Can\'t delete catalog record, because of') %] [% loop_order.items %] [% t('existing item(s)') %]">[% loop_order.items %] [% t('item(s) left') %]</b><br>
188
                        [% END %]
189
                        [% END %]
189
                        [% IF ( loop_order.left_biblio ) %]
190
                        [% IF ( loop_order.left_biblio ) %]
190
                        <b title="Can't delete catalog record, delete other orders linked to it first">[% loop_order.biblios %] order(s) left</b><br>
191
                        <b title="[% t('Can\'t delete catalog record, delete other orders linked to it first') %]">[% loop_order.biblios %] [% t('order(s) left') %]</b><br>
191
                        [% END %]
192
                        [% END %]
192
                        [% IF ( loop_order.left_subscription ) %]
193
                        [% IF ( loop_order.left_subscription ) %]
193
                        <b title="Can't delete catalog record, delete subscriptions first">[% loop_order.subscriptions %] subscription(s) left</b><br>
194
                        <b title="[% t('Can\'t delete catalog record, delete subscriptions first') %]">[% loop_order.subscriptions %] [% t('subscription(s) left') %]</b><br>
194
                        [% END %]
195
                        [% END %]
195
                        [% IF ( loop_order.left_holds ) %]
196
                        [% IF ( loop_order.left_holds ) %]
196
                        <b title="Can't delete catalog record or order, cancel holds first">[% loop_order.holds %] hold(s) left</b>
197
                        <b title="[% t('Can\'t delete catalog record or order, cancel holds first') %]">[% loop_order.holds %] [% t('hold(s) left') %]</b>
197
                        [% END %]
198
                        [% END %]
198
                    </td>
199
                    </td>
199
                </tr>
200
                </tr>
200
        [% END %]
201
        [% END %]
201
        </tbody>
202
        </tbody>
202
      </table>
203
      </table>
203
    [% ELSE %]There are no pending orders.[% END %]
204
    [% ELSE %][% t('There are no pending orders.') %][% END %]
204
  </div>
205
  </div>
205
[% ELSE %]
206
[% ELSE %]
206
    <p>
207
    <p>
207
        Invoice is closed, so you can't receive orders anymore.
208
        [% t('Invoice is closed, so you can\'t receive orders anymore.') %]
208
        <a href="/cgi-bin/koha/acqui/invoice.pl?op=reopen&invoiceid=[% invoiceid %]&referer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]">Reopen it</a>.
209
        <a href="/cgi-bin/koha/acqui/invoice.pl?op=reopen&invoiceid=[% invoiceid %]&referer=/cgi-bin/koha/acqui/parcel.pl%3Finvoiceid=[% invoiceid %]">[% t('Reopen it') %]</a>.
209
    </p>
210
    </p>
210
[% END %]
211
[% END %]
211
212
212
<div id="acqui_receive_receivelist">
213
<div id="acqui_receive_receivelist">
213
    <h3>Already received</h3>
214
    <h3>[% t('Already received') %]</h3>
214
215
215
   [% IF ( loop_received ) %]
216
   [% IF ( loop_received ) %]
216
   <form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform">
217
   <form action="/cgi-bin/koha/acqui/parcel.pl" method="get" name="orderform">
217
    <table id="receivedt">
218
    <table id="receivedt">
218
      <thead>
219
      <thead>
219
        <tr>
220
        <tr>
220
          <th>Basket</th>
221
          <th>[% t('Basket') %]</th>
221
          <th>Basket group</th>
222
          <th>[% t('Basket group') %]</th>
222
          <th>Order line</th>
223
          <th>[% t('Order line') %]</th>
223
          <th title="Item holds / Total holds">Holds</th>
224
          <th title="[% t('Item holds / Total holds') %]">[% t('Holds') %]</th>
224
          <th>Summary</th>
225
          <th>[% t('Summary') %]</th>
225
          <th>View record</th>
226
          <th>[% t('View record') %]</th>
226
          <th>Quantity</th>
227
          <th>[% t('Quantity') %]</th>
227
          <th>Fund</th>
228
          <th>[% t('Fund') %]</th>
228
          <th>Est cost</th>
229
          <th>[% t('Est cost') %]</th>
229
          <th>Actual cost</th>
230
          <th>[% t('Actual cost') %]</th>
230
          <th>TOTAL</th>
231
          <th>[% t('TOTAL') %]</th>
231
          <th></th>
232
          <th></th>
232
        </tr>
233
        </tr>
233
      </thead>
234
      </thead>
Lines 235-265 Link Here
235
        [% FOREACH key IN subtotal_for_funds.keys.sort %]
236
        [% FOREACH key IN subtotal_for_funds.keys.sort %]
236
            <tr>
237
            <tr>
237
                [% IF invoiceincgst %]
238
                [% IF invoiceincgst %]
238
                    <td colspan="6" class="total">(Tax inc.)</td>
239
                    <td colspan="6" class="total">[% t('(Tax inc.)') %]</td>
239
                [% ELSE %]
240
                [% ELSE %]
240
                    <td colspan="6" class="total">(Tax exc.)</td>
241
                    <td colspan="6" class="total">[% t('(Tax exc.)') %]</td>
241
                [% END %]
242
                [% END %]
242
                <td colspan="2"><i>Subtotal for</i> [% key %]</td>
243
                <td colspan="2"><i>[% t('Subtotal for') %]</i> [% key %]</td>
243
                <td>[% subtotal_for_funds.$key.ecost | $Price %]</td>
244
                <td>[% subtotal_for_funds.$key.ecost | $Price %]</td>
244
                <td>[% subtotal_for_funds.$key.unitprice | $Price  %]</td>
245
                <td>[% subtotal_for_funds.$key.unitprice | $Price  %]</td>
245
                <td>&nbsp;</td>
246
                <td> </td>
246
                <td>&nbsp;</td>
247
                <td> </td>
247
            </tr>
248
            </tr>
248
        [% END %]
249
        [% END %]
249
        <tr>
250
        <tr>
250
            <th colspan="10" class="total">Total tax exc.</th>
251
            <th colspan="10" class="total">[% t('Total tax exc.') %]</th>
251
            <th>[% total_tax_excluded | $Price %]</th>
252
            <th>[% total_tax_excluded | $Price %]</th>
252
            <th></th>
253
            <th></th>
253
        </tr>
254
        </tr>
254
        [% FOREACH book_foot IN book_foot_loop %]
255
        [% FOREACH book_foot IN book_foot_loop %]
255
            <tr>
256
            <tr>
256
                <th colspan="10">Total (GST [% book_foot.tax_rate * 100 %]%)</th>
257
                <th colspan="10">[% t('Total (GST') %] [% book_foot.tax_rate * 100 %]%)</th>
257
                <th>[% book_foot.tax_value | $Price %]</th>
258
                <th>[% book_foot.tax_value | $Price %]</th>
258
                <th></th>
259
                <th></th>
259
            </tr>
260
            </tr>
260
        [% END %]
261
        [% END %]
261
        <tr>
262
        <tr>
262
            <th colspan="10" class="total">Total tax inc.</th>
263
            <th colspan="10" class="total">[% t('Total tax inc.') %]</th>
263
            <th>[% total_tax_included | $Price %]</th>
264
            <th>[% total_tax_included | $Price %]</th>
264
            <th></th>
265
            <th></th>
265
        </tr>
266
        </tr>
Lines 272-284 Link Here
272
                  [% IF order.basketgroupid %]
273
                  [% IF order.basketgroupid %]
273
                    [% order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% order.booksellerid %]">[% order.basketgroupid %]</a>)
274
                    [% order.basketgroupname %] (<a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% order.booksellerid %]">[% order.basketgroupid %]</a>)
274
                  [% ELSE %]
275
                  [% ELSE %]
275
                    No basket group
276
                    [% t('No basket group') %]
276
                  [% END %]
277
                  [% END %]
277
                </td>
278
                </td>
278
                <td>
279
                <td>
279
                  <a href="neworderempty.pl?ordernumber=[% order.ordernumber %]&amp;booksellerid=[% booksellerid %]">[% order.ordernumber %]</a>
280
                  <a href="neworderempty.pl?ordernumber=[% order.ordernumber %]&booksellerid=[% booksellerid %]">[% order.ordernumber %]</a>
280
                  [% IF (order.parent_ordernumber && (order.parent_ordernumber != order.ordernumber)) %]
281
                  [% IF (order.parent_ordernumber && (order.parent_ordernumber != order.ordernumber)) %]
281
                    (<a href="neworderempty.pl?ordernumber=[% order.parent_ordernumber %]&amp;booksellerid=[% booksellerid %]" title="Original order line">[% order.parent_ordernumber %]</a>)
282
                    (<a href="neworderempty.pl?ordernumber=[% order.parent_ordernumber %]&booksellerid=[% booksellerid %]" title="[% t('Original order line') %]">[% order.parent_ordernumber %]</a>)
282
                  [% END %]
283
                  [% END %]
283
                </td>
284
                </td>
284
                <td>
285
                <td>
Lines 286-315 Link Here
286
                    [% IF order.item_holds > 0 %]
287
                    [% IF order.item_holds > 0 %]
287
                      <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.item_holds %]</a></span>
288
                      <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.item_holds %]</a></span>
288
                    [% ELSE %]
289
                    [% ELSE %]
289
                      0
290
                      [% t('0') %]
290
                    [% END %]
291
                    [% END %]
291
                    /
292
                    /
292
                    <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.total_holds %]</a></span>
293
                    <span class="error"><a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% order.biblionumber %]">[% order.total_holds %]</a></span>
293
                  [% ELSE %]
294
                  [% ELSE %]
294
                    0
295
                    [% t('0') %]
295
                  [% END %]
296
                  [% END %]
296
                </td>
297
                </td>
297
                <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a>
298
                <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title |html %]</a>
298
                [% IF ( order.author ) %] / [% order.author %][% END %]
299
                [% IF ( order.author ) %] / [% order.author %][% END %]
299
                [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
300
                [% IF ( order.isbn ) %] - [% order.isbn %][% END %]
300
                [% IF ( order.publishercode ) %]
301
                [% IF ( order.publishercode ) %]
301
                    <br />Publisher: [% order.publishercode %]
302
                    <br />[% t('Publisher:') %] [% order.publishercode %]
302
                    [%- IF    ( order.publicationyear > 0) -%], [% order.publicationyear %]
303
                    [%- IF    ( order.publicationyear > 0) -%], [% order.publicationyear %]
303
                    [%- ELSIF ( order.copyrightdate   > 0) -%] [% order.copyrightdate %]
304
                    [%- ELSIF ( order.copyrightdate   > 0) -%] [% order.copyrightdate %]
304
                    [% END %]
305
                    [% END %]
305
                [% END %]
306
                [% END %]
306
                [% IF ( order.suggestionid ) %]
307
                [% IF ( order.suggestionid ) %]
307
                    <br/>
308
                    <br />
308
                    Suggested by: [% order.surnamesuggestedby %][% IF ( order.firstnamesuggestedby ) %], [% order.firstnamesuggestedby %] [% END %]
309
                    [% t('Suggested by:') %] [% order.surnamesuggestedby %][% IF ( order.firstnamesuggestedby ) %], [% order.firstnamesuggestedby %] [% END %]
309
                    (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% order.suggestionid %]&amp;op=show">suggestion #[% order.suggestionid %]</a>)
310
                    (<a href="/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% order.suggestionid %]&op=show">[% t('suggestion #') %][% order.suggestionid %]</a>)
310
                [% END %]
311
                [% END %]
311
                </td>
312
                </td>
312
                <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% order.biblionumber %]" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=[% order.biblionumber %]" class="previewData">Card</a></td>
313
                <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=[% order.biblionumber %]" class="previewData">[% t('MARC') %]</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&id=[% order.biblionumber %]" class="previewData">[% t('Card') %]</a></td>
313
                <td>[% order.quantityreceived %]</td>
314
                <td>[% order.quantityreceived %]</td>
314
                <td>[% order.budget.budget_name %]</td>
315
                <td>[% order.budget.budget_name %]</td>
315
                <td>[% order.ecost | $Price %]</td>
316
                <td>[% order.ecost | $Price %]</td>
Lines 319-342 Link Here
319
                    [% IF loop_receive.cannot_cancel or ( order.basket.effective_create_items == "receiving" and loop_receive.holds > 0 ) %]
320
                    [% IF loop_receive.cannot_cancel or ( order.basket.effective_create_items == "receiving" and loop_receive.holds > 0 ) %]
320
                      [% IF loop_receive.cannot_cancel %]
321
                      [% IF loop_receive.cannot_cancel %]
321
                        [% span_title = BLOCK %]
322
                        [% span_title = BLOCK %]
322
                            Cannot cancel receipt of this order line because it
323
                            [% t('Cannot cancel receipt of this order line because it') %]
323
                            was created from a partial receipt of order line no.
324
                            [% t('was created from a partial receipt of order line no.') %]
324
                            [% order.parent_ordernumber %], which is
325
                            [% order.parent_ordernumber %][% t(', which is') %]
325
                            already received. Try cancelling this one first and
326
                            [% t('already received. Try cancelling this one first and') %]
326
                            retry.
327
                            [% t('retry.') %]
327
                        [% END %]
328
                        [% END %]
328
                      [% ELSE %]
329
                      [% ELSE %]
329
                        [%# FIXME Here we block the cancellation if holds exist. Actually it could be possible if items will be exist after the deletion %]
330
                        [%# FIXME Here we block the cancellation if holds exist. Actually it could be possible if items will be exist after the deletion %]
330
                        [%# Some additional checks should be added in the pl file %]
331
                        [%# Some additional checks should be added in the pl file %]
331
                        [% span_title = BLOCK %]
332
                        [% span_title = BLOCK %]
332
                          Cannot cancel receipt of this order line because at least one reservation exists on the records.
333
                          [% t('Cannot cancel receipt of this order line because at least one reservation exists on the records.') %]
333
                        [% END %]
334
                        [% END %]
334
                      [% END %]
335
                      [% END %]
335
                      <span title="[% span_title | collapse %]">
336
                      <span title="[% span_title | collapse %]">
336
                          Can't cancel receipt
337
                          [% t('Can\'t cancel receipt') %]
337
                      </span>
338
                      </span>
338
                    [% ELSE %]
339
                    [% ELSE %]
339
                        <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% order.ordernumber %]">Cancel receipt</a>
340
                        <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]&op=cancelreceipt&ordernumber=[% order.ordernumber %]">[% t('Cancel receipt') %]</a>
340
                    [% END %]
341
                    [% END %]
341
                </td>
342
                </td>
342
            </tr>
343
            </tr>
Lines 345-351 Link Here
345
    </table>
346
    </table>
346
    </form>
347
    </form>
347
348
348
	[% ELSE %]There are no received orders.[% END %]
349
	[% ELSE %][% t('There are no received orders.') %][% END %]
349
</div>
350
</div>
350
351
351
<div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
352
<div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
Lines 353-372 Link Here
353
    <div class="modal-content">
354
    <div class="modal-content">
354
    <div class="modal-header">
355
    <div class="modal-header">
355
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
356
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
356
        <h3 id="dataPreviewLabel">MARC preview</h3>
357
        <h3 id="dataPreviewLabel">[% t('MARC preview') %]</h3>
357
    </div>
358
    </div>
358
    <div class="modal-body">
359
    <div class="modal-body">
359
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
360
        <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> [% t('Loading') %] </div>
360
    </div>
361
    </div>
361
    <div class="modal-footer">
362
    <div class="modal-footer">
362
        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
363
        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
363
    </div>
364
    </div>
364
    </div>
365
    </div>
365
    </div>
366
    </div>
366
</div>
367
</div>
367
368
368
[% IF (invoiceclosedate) %]
369
[% IF (invoiceclosedate) %]
369
    <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">View invoice</a>
370
    <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid %]">[% t('View invoice') %]</a>
370
[% ELSE %]
371
[% ELSE %]
371
    <form action="/cgi-bin/koha/acqui/invoice.pl" method="get">
372
    <form action="/cgi-bin/koha/acqui/invoice.pl" method="get">
372
        <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
373
        <input type="hidden" name="invoiceid" value="[% invoiceid %]" />
Lines 385-412 Link Here
385
<div class="yui-b">
386
<div class="yui-b">
386
<form action="/cgi-bin/koha/acqui/parcel.pl" id="filterform" method="post">
387
<form action="/cgi-bin/koha/acqui/parcel.pl" id="filterform" method="post">
387
  <fieldset class="brief">
388
  <fieldset class="brief">
388
    <h4>Filter</h4>
389
    <h4>[% t('Filter') %]</h4>
389
    <ol>
390
    <ol>
390
      <li>
391
      <li>
391
        <label for="summaryfilter">ISBN, author or title :</label>
392
        <label for="summaryfilter">[% t('ISBN, author or title :') %]</label>
392
        <input type="text" name="summaryfilter" id="summaryfilter" value="[% summaryfilter %]"/>
393
        <input type="text" name="summaryfilter" id="summaryfilter" value="[% summaryfilter %]" />
393
      </li>
394
      </li>
394
      <li>
395
      <li>
395
        <label for="basketfilter">Basket :</label>
396
        <label for="basketfilter">[% t('Basket :') %]</label>
396
        <input type="text" name="basketfilter" id="basketfilter" value="[% basketfilter %]"/>
397
        <input type="text" name="basketfilter" id="basketfilter" value="[% basketfilter %]" />
397
      </li>
398
      </li>
398
      <li>
399
      <li>
399
          <label for="basketgroupnamefilter">Basket group name :</label>
400
          <label for="basketgroupnamefilter">[% t('Basket group name :') %]</label>
400
          <input type="text" name="basketgroupnamefilter" id="basketgroupnamefilter" value="[% basketgroupnamefilter %]" />
401
          <input type="text" name="basketgroupnamefilter" id="basketgroupnamefilter" value="[% basketgroupnamefilter %]" />
401
      </li>
402
      </li>
402
      <li>
403
      <li>
403
        <label for="orderfilter">Order line :</label>
404
        <label for="orderfilter">[% t('Order line :') %]</label>
404
        <input type="text" name="orderfilter" id="orderfilter" value="[% orderfilter %]"/>
405
        <input type="text" name="orderfilter" id="orderfilter" value="[% orderfilter %]" />
405
      </li>
406
      </li>
406
      [% IF (UNIMARC) %]
407
      [% IF (UNIMARC) %]
407
        <li>
408
        <li>
408
          <label for="eanfilter">EAN :</label>
409
          <label for="eanfilter">[% t('EAN :') %]</label>
409
          <input type="text" name="eanfilter" id="eanfilter" value="[% eanfilter %]"/>
410
          <input type="text" name="eanfilter" id="eanfilter" value="[% eanfilter %]" />
410
        </li>
411
        </li>
411
      [% END %]
412
      [% END %]
412
    </ol>
413
    </ol>
Lines 414-420 Link Here
414
      <input type="hidden" value="search" name="op" />
415
      <input type="hidden" value="search" name="op" />
415
      <input type="hidden" value="[% invoiceid %]" name="invoiceid" />
416
      <input type="hidden" value="[% invoiceid %]" name="invoiceid" />
416
      <input type="submit" value="Filter" />
417
      <input type="submit" value="Filter" />
417
      <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Clear</a>
418
      <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">[% t('Clear') %]</a>
418
    </fieldset>
419
    </fieldset>
419
  </fieldset>
420
  </fieldset>
420
</form>
421
</form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt (-43 / +44 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Acquisitions &rsaquo; Receive shipment from vendor [% name %]</title>
6
<title>[% t('Koha › Acquisitions › Receive shipment from vendor') %] [% name %]</title>
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
Lines 11-17 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'acquisitions-search.inc' %]
13
[% INCLUDE 'acquisitions-search.inc' %]
13
14
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>  &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> &rsaquo; Receive shipment from vendor [% name %]</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a>  › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a> [% t('› Receive shipment from vendor') %] [% name %]</div>
15
16
16
[% IF ( count ) %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
17
[% IF ( count ) %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
17
   
18
   
Lines 21-42 Link Here
21
22
22
[% IF ( error_failed_to_create_invoice ) %]
23
[% IF ( error_failed_to_create_invoice ) %]
23
    <div id="error" class="dialog alert">
24
    <div id="error" class="dialog alert">
24
        <p>An error has occurred. Invoice cannot be created.</p>
25
        <p>[% t('An error has occurred. Invoice cannot be created.') %]</p>
25
    </div>
26
    </div>
26
[% END %]
27
[% END %]
27
<h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a></h1>
28
<h1>[% t('Receive shipment from vendor') %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a></h1>
28
29
29
    [% IF duplicate_invoices %]
30
    [% IF duplicate_invoices %]
30
    <div id="parcels_duplicate_invoice" class="dialog alert">
31
    <div id="parcels_duplicate_invoice" class="dialog alert">
31
        <p>This invoice number has already been used. Would you like to receive on an existing invoice?</p>
32
        <p>[% t('This invoice number has already been used. Would you like to receive on an existing invoice?') %]</p>
32
        <table>
33
        <table>
33
            <thead><tr><th>Invoice no.</th><th>Shipment date</th><th></th></tr></thead>
34
            <thead><tr><th>[% t('Invoice no.') %]</th><th>[% t('Shipment date') %]</th><th></th></tr></thead>
34
            <tbody>
35
            <tbody>
35
                [% FOREACH invoice IN duplicate_invoices %]
36
                [% FOREACH invoice IN duplicate_invoices %]
36
                    <tr>
37
                    <tr>
37
                        <td>[% invoice.invoicenumber %]</td>
38
                        <td>[% invoice.invoicenumber %]</td>
38
                        <td>[% invoice.shipmentdate | $KohaDates %]</td>
39
                        <td>[% invoice.shipmentdate | $KohaDates %]</td>
39
                        <td><a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoice.invoiceid %]">Receive</a></td>
40
                        <td><a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoice.invoiceid %]">[% t('Receive') %]</a></td>
40
                    </tr>
41
                    </tr>
41
                [% END %]
42
                [% END %]
42
            </tbody>
43
            </tbody>
Lines 55-73 Link Here
55
56
56
57
57
[% IF ( count ) %]
58
[% IF ( count ) %]
58
<p> [% count %] shipments</p>
59
<p> [% count %] [% t('shipments') %]</p>
59
<div id="resultlist">
60
<div id="resultlist">
60
<!-- Search Results Table -->
61
<!-- Search Results Table -->
61
62
62
<table class="small" id="parcelst">
63
<table class="small" id="parcelst">
63
    <thead>
64
    <thead>
64
        <tr>
65
        <tr>
65
            <th>Line</th>
66
            <th>[% t('Line') %]</th>
66
            <th class="title-string">Date received</th>
67
            <th class="title-string">[% t('Date received') %]</th>
67
            <th>Invoice number</th>
68
            <th>[% t('Invoice number') %]</th>
68
            <th>Item count</th>
69
            <th>[% t('Item count') %]</th>
69
            <th>Biblio count</th>
70
            <th>[% t('Biblio count') %]</th>
70
            <th>Items expected</th>
71
            <th>[% t('Items expected') %]</th>
71
        </tr>
72
        </tr>
72
    </thead>
73
    </thead>
73
    <tbody>
74
    <tbody>
Lines 84-90 Link Here
84
                [% IF ( searchresult.code ) %]
85
                [% IF ( searchresult.code ) %]
85
                    <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid %]">[% searchresult.code |html %]</a>
86
                    <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid %]">[% searchresult.code |html %]</a>
86
                [% ELSE %]
87
                [% ELSE %]
87
                    <abbr title="not available">n/a</abbr>
88
                    <abbr title="[% t('not available') %]">[% t('n/a') %]</abbr>
88
                [% END %]
89
                [% END %]
89
            </td>
90
            </td>
90
            <td>
91
            <td>
Lines 104-120 Link Here
104
<div id="resultnumber">
105
<div id="resultnumber">
105
<!-- Row of numbers corresponding to search result pages -->
106
<!-- Row of numbers corresponding to search result pages -->
106
[% IF ( displayprev ) %]
107
[% IF ( displayprev ) %]
107
    <a href="parcels.pl?booksellerid=[% booksellerid %]&amp;startfrom=[% prevstartfrom %][% IF ( datefrom ) %]&amp;datefrom=[% datefrom %][% END %][% IF ( dateto ) %]&amp;dateto=[% dateto %][% END %][% IF ( code ) %]&amp;filter=[% code %][% END %][% IF ( orderby ) %]&amp;orderby=[% orderby %][% END %][% IF ( resultsperpage ) %]&amp;resultsperpage=[% resultsperpage %][% END %]&amp;type=intra">&lt;&lt; Previous</a>
108
    <a href="parcels.pl?booksellerid=[% booksellerid %]&startfrom=[% prevstartfrom %][% IF ( datefrom ) %]&datefrom=[% datefrom %][% END %][% IF ( dateto ) %]&dateto=[% dateto %][% END %][% IF ( code ) %]&filter=[% code %][% END %][% IF ( orderby ) %]&orderby=[% orderby %][% END %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage %][% END %]&type=intra">[% t('&lt;&lt; Previous') %]</a>
108
[% END %]
109
[% END %]
109
[% FOREACH number IN numbers %]
110
[% FOREACH number IN numbers %]
110
    [% IF ( number.highlight ) %]
111
    [% IF ( number.highlight ) %]
111
    <span class="current">[% number.number %]</span>
112
    <span class="current">[% number.number %]</span>
112
    [% ELSE %]
113
    [% ELSE %]
113
    <a href="parcels.pl?booksellerid=[% booksellerid %]&amp;startfrom=[% number.startfrom %][% IF ( number.datefrom ) %]&amp;datefrom=[% number.datefrom %][% END %][% IF ( number.dateto ) %]&amp;dateto=[% number.dateto %][% END %][% IF ( number.code ) %]&amp;filter=[% number.code %][% END %][% IF ( number.orderby ) %]&amp;orderby=[% number.orderby %][% END %][% IF ( number.resultsperpage ) %]&amp;resultsperpage=[% number.resultsperpage %][% END %]&amp;type=intra">[% number.number %]</a>
114
    <a href="parcels.pl?booksellerid=[% booksellerid %]&startfrom=[% number.startfrom %][% IF ( number.datefrom ) %]&datefrom=[% number.datefrom %][% END %][% IF ( number.dateto ) %]&dateto=[% number.dateto %][% END %][% IF ( number.code ) %]&filter=[% number.code %][% END %][% IF ( number.orderby ) %]&orderby=[% number.orderby %][% END %][% IF ( number.resultsperpage ) %]&resultsperpage=[% number.resultsperpage %][% END %]&type=intra">[% number.number %]</a>
114
    [% END %]
115
    [% END %]
115
[% END %]
116
[% END %]
116
[% IF ( displaynext ) %]
117
[% IF ( displaynext ) %]
117
    <a href="parcels.pl?booksellerid=[% booksellerid %]&amp;startfrom=[% nextstartfrom %][% IF ( datefrom ) %]&amp;datefrom=[% datefrom %][% END %][% IF ( dateto ) %]&amp;dateto=[% dateto %][% END %][% IF ( code ) %]&amp;filter=[% code %][% END %][% IF ( orderby ) %]&amp;orderby=[% orderby %][% END %][% IF ( resultsperpage ) %]&amp;resultsperpage=[% resultsperpage %][% END %]&amp;type=intra">Next &gt;&gt;</a>
118
    <a href="parcels.pl?booksellerid=[% booksellerid %]&startfrom=[% nextstartfrom %][% IF ( datefrom ) %]&datefrom=[% datefrom %][% END %][% IF ( dateto ) %]&dateto=[% dateto %][% END %][% IF ( code ) %]&filter=[% code %][% END %][% IF ( orderby ) %]&orderby=[% orderby %][% END %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage %][% END %]&type=intra">[% t('Next &gt;&gt;') %]</a>
118
[% END %]
119
[% END %]
119
</div>
120
</div>
120
</div>
121
</div>
Lines 123-138 Link Here
123
    <div id="parcels_new_parcel">
124
    <div id="parcels_new_parcel">
124
        <form method="get" action="parcels.pl" class="validated">
125
        <form method="get" action="parcels.pl" class="validated">
125
    <fieldset class="rows">
126
    <fieldset class="rows">
126
    <legend>Receive a new shipment</legend>
127
    <legend>[% t('Receive a new shipment') %]</legend>
127
       <ol> <li>
128
       <ol> <li>
128
            <label for="invoice" class="required">Vendor invoice:</label>
129
            <label for="invoice" class="required">[% t('Vendor invoice:') %]</label>
129
            <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
130
            <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
130
            <input type="hidden" name="op" value="new" />
131
            <input type="hidden" name="op" value="new" />
131
            <input type="text" size="20" id="invoice" name="invoice" class="focus required" required="required" />
132
            <input type="text" size="20" id="invoice" name="invoice" class="focus required" required="required" />
132
        </li>
133
        </li>
133
		[% IF ( gst ) %]
134
		[% IF ( gst ) %]
134
        <li>
135
        <li>
135
            <label for="gst">GST:</label>
136
            <label for="gst">[% t('GST:') %]</label>
136
            <input type="text" size="20" id="gst" name="gst" />
137
            <input type="text" size="20" id="gst" name="gst" />
137
        </li>
138
        </li>
138
		[% END %]
139
		[% END %]
Lines 142-174 Link Here
142
            <input type="text" size="20" id="freight" name="freight" />
143
            <input type="text" size="20" id="freight" name="freight" />
143
        </li> -->
144
        </li> -->
144
         <li>
145
         <li>
145
            <label for="shipmentdate">Shipment date: </label>
146
            <label for="shipmentdate">[% t('Shipment date:') %] </label>
146
            <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today | $KohaDates %]" class="datepicker" />
147
            <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today | $KohaDates %]" class="datepicker" />
147
            <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
148
            <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
148
        </li>
149
        </li>
149
        <li>
150
        <li>
150
            <label for="shipmentcost">Shipping cost: </label>
151
            <label for="shipmentcost">[% t('Shipping cost:') %] </label>
151
            <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
152
            <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
152
        </li>
153
        </li>
153
        <li>
154
        <li>
154
            <label for="shipmentcost_budgetid">Shipping fund: </label>
155
            <label for="shipmentcost_budgetid">[% t('Shipping fund:') %] </label>
155
            <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
156
            <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
156
                <option value="">No fund</option>
157
                <option value="">[% t('No fund') %]</option>
157
                [% FOREACH budget IN budgets %]
158
                [% FOREACH budget IN budgets %]
158
                    [% IF ( budget.b_active ) %]
159
                    [% IF ( budget.b_active ) %]
159
                        <option value="[% budget.b_id %]">[% budget.b_txt %]</option>
160
                        <option value="[% budget.b_id %]">[% budget.b_txt %]</option>
160
                    [% ELSE %]
161
                    [% ELSE %]
161
                        <option value="[% budget.b_id %]" class="b_inactive">[% budget.b_txt %] (inactive)</option>
162
                        <option value="[% budget.b_id %]" class="b_inactive">[% budget.b_txt %] [% t('(inactive)') %]</option>
162
                    [% END %]
163
                    [% END %]
163
                [% END %]
164
                [% END %]
164
            </select>
165
            </select>
165
            <label for="showallfunds" style="float:none;width:auto;">&nbsp;Show inactive:</label>
166
            <label for="showallfunds" style="float:none;width:auto;">[% t(' Show inactive:') %]</label>
166
            <input type="checkbox" id="showallfunds" />
167
            <input type="checkbox" id="showallfunds" />
167
168
168
        </li>
169
        </li>
169
		</ol>
170
		</ol>
170
    </fieldset>
171
    </fieldset>
171
            <fieldset class="action"><input type="submit" class="button" value="Next" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">Cancel</a></fieldset>
172
            <fieldset class="action"><input type="submit" class="button" value="Next" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% t('Cancel') %]</a></fieldset>
172
        </form>
173
        </form>
173
    </div>
174
    </div>
174
</div>
175
</div>
Lines 176-201 Link Here
176
<div class="yui-b">
177
<div class="yui-b">
177
[% IF ( count ) %]<form method="get" action="parcels.pl">
178
[% IF ( count ) %]<form method="get" action="parcels.pl">
178
    <fieldset class="brief">
179
    <fieldset class="brief">
179
	<h4>Filter</h4>
180
	<h4>[% t('Filter') %]</h4>
180
        <ol>
181
        <ol>
181
            <li> <input type="hidden" name="booksellerid" value="[% booksellerid %]" /></li>
182
            <li> <input type="hidden" name="booksellerid" value="[% booksellerid %]" /></li>
182
            <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li>
183
            <li><label for="filter">[% t('Invoice number:') %]</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li>
183
            <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" class="datepicker" /><br />
184
            <li><label for="datefrom">[% t('From:') %]</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" class="datepicker" /><br />
184
                <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" class="datepicker" /></li>
185
                <label for="dateto">[% t('To:') %]</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" class="datepicker" /></li>
185
            <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
186
            <li><label for="orderby">[% t('Sort by :') %]</label><select name="orderby" id="orderby">
186
                <option value="invoicenumber">Invoice number</option>
187
                <option value="invoicenumber">[% t('Invoice number') %]</option>
187
                <option value="shipmentdate">Shipment date</option>
188
                <option value="shipmentdate">[% t('Shipment date') %]</option>
188
                <option value="shipmentdate desc">Shipment date reverse</option>
189
                <option value="shipmentdate desc">[% t('Shipment date reverse') %]</option>
189
                <option value="invoicenumber desc">Invoice number reverse</option>
190
                <option value="invoicenumber desc">[% t('Invoice number reverse') %]</option>
190
                </select><br />
191
                </select><br />
191
                <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
192
                <label for="resultsperpage">[% t('Results per page :') %]</label><select name="resultsperpage" id="resultsperpage">
192
                <option value="20">20</option>
193
                <option value="20">[% t('20') %]</option>
193
                <option value="30">30</option>
194
                <option value="30">[% t('30') %]</option>
194
                <option value="50">50</option>
195
                <option value="50">[% t('50') %]</option>
195
                <option value="100">100</option>
196
                <option value="100">[% t('100') %]</option>
196
                </select></li>
197
                </select></li>
197
        </ol>
198
        </ol>
198
	<fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]">Clear</a></fieldset>
199
	<fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]">[% t('Clear') %]</a></fieldset>
199
	</fieldset>
200
	</fieldset>
200
</form>[% END %]
201
</form>[% END %]
201
</div>
202
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt (-17 / +18 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% USE ItemTypes %]
4
[% USE ItemTypes %]
4
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
<title>Koha &rsaquo; Acquisitions &rsaquo; Spent</title>
7
<title>[% t('Koha › Acquisitions › Spent') %]</title>
7
[% Asset.css("css/datatables.css") %]
8
[% Asset.css("css/datatables.css") %]
8
[% INCLUDE 'doc-head-close.inc' %]
9
[% INCLUDE 'doc-head-close.inc' %]
9
</head>
10
</head>
Lines 12-18 Link Here
12
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'header.inc' %]
13
[% INCLUDE 'acquisitions-search.inc' %]
14
[% INCLUDE 'acquisitions-search.inc' %]
14
15
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; Spent - [% fund_code %]</div>
16
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> [% t('› Spent -') %] [% fund_code %]</div>
16
17
17
<div id="doc3" class="yui-t2">
18
<div id="doc3" class="yui-t2">
18
19
Lines 20-41 Link Here
20
    <div id="yui-main">
21
    <div id="yui-main">
21
        <div class="yui-b">
22
        <div class="yui-b">
22
23
23
<h1>Fund: [% fund_code %]</h1>
24
<h1>[% t('Fund:') %] [% fund_code %]</h1>
24
<h2>Spent</h2>
25
<h2>[% t('Spent') %]</h2>
25
26
26
<table id="spent">
27
<table id="spent">
27
    <thead>
28
    <thead>
28
        <tr>
29
        <tr>
29
           <th class="anti-the">Title</th>
30
           <th class="anti-the">[% t('Title') %]</th>
30
           <th>Order</th>
31
           <th>[% t('Order') %]</th>
31
           <th>Vendor</th>
32
           <th>[% t('Vendor') %]</th>
32
           <th>Invoice</th>
33
           <th>[% t('Invoice') %]</th>
33
           <th>Item type</th>
34
           <th>[% t('Item type') %]</th>
34
           <th>Received</th>
35
           <th>[% t('Received') %]</th>
35
           <th>Unit price</th>
36
           <th>[% t('Unit price') %]</th>
36
           <th class="title-string">Date ordered</th>
37
           <th class="title-string">[% t('Date ordered') %]</th>
37
           <th class="title-string">Date received</th>
38
           <th class="title-string">[% t('Date received') %]</th>
38
           <th>Subtotal</th>
39
           <th>[% t('Subtotal') %]</th>
39
        </tr>
40
        </tr>
40
    </thead>
41
    </thead>
41
42
Lines 79-97 Link Here
79
    <tfoot>
80
    <tfoot>
80
        [% IF shipmentcosts.size %]
81
        [% IF shipmentcosts.size %]
81
            <tr valign="top">
82
            <tr valign="top">
82
                <td colspan="9"> Sub total </td>
83
                <td colspan="9"> [% t('Sub total') %] </td>
83
                <td class="data"> [% subtotal %] </td>
84
                <td class="data"> [% subtotal %] </td>
84
            </tr>
85
            </tr>
85
            [% FOREACH shipmentcost IN shipmentcosts %]
86
            [% FOREACH shipmentcost IN shipmentcosts %]
86
                <tr>
87
                <tr>
87
                    <td></td>
88
                    <td></td>
88
                    <td colspan="8">Shipping cost for invoice [% shipmentcost.invoicenumber %]</td>
89
                    <td colspan="8">[% t('Shipping cost for invoice') %] [% shipmentcost.invoicenumber %]</td>
89
                    <td class="data total">[% shipmentcost.shipmentcost %]</td>
90
                    <td class="data total">[% shipmentcost.shipmentcost %]</td>
90
                </tr>
91
                </tr>
91
            [% END %]
92
            [% END %]
92
        [% END %]
93
        [% END %]
93
        <tr>
94
        <tr>
94
            <td colspan="9">TOTAL</td>
95
            <td colspan="9">[% t('TOTAL') %]</td>
95
            <td class="data total">[% total %]</td>
96
            <td class="data total">[% total %]</td>
96
        </tr>
97
        </tr>
97
    </tfoot>
98
    </tfoot>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt (-108 / +109 lines)
Lines 1-51 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% BLOCK edit_contact %]
4
[% BLOCK edit_contact %]
4
    <ol id="contact-form">
5
    <ol id="contact-form">
5
        <input type="hidden" name="contact_id" value="[% contact.id %]" />
6
        <input type="hidden" name="contact_id" value="[% contact.id %]" />
6
        <li><label for="contact_name[% contact.id %]">Contact name: </label>
7
        <li><label for="contact_name[% contact.id %]">[% t('Contact name:') %] </label>
7
            <input type="text" size="40" id="contact_name[% contact.id %]" name="contact_name" value="[% contact.name %]" /></li>
8
            <input type="text" size="40" id="contact_name[% contact.id %]" name="contact_name" value="[% contact.name %]" /></li>
8
        <li><label for="contact_position[% contact.id %]">Position: </label>
9
        <li><label for="contact_position[% contact.id %]">[% t('Position:') %] </label>
9
            <input type="text" size="40" id="contact_position[% contact.id %]" name="contact_position" value="[% contact.position %]" /></li>
10
            <input type="text" size="40" id="contact_position[% contact.id %]" name="contact_position" value="[% contact.position %]" /></li>
10
        <li><label for="contact_phone[% contact.id %]">Phone: </label>
11
        <li><label for="contact_phone[% contact.id %]">[% t('Phone:') %] </label>
11
                <input type="text" size="20" id="contact_phone[% contact.id %]" name="contact_phone" value="[% contact.phone %]" /> </li>
12
                <input type="text" size="20" id="contact_phone[% contact.id %]" name="contact_phone" value="[% contact.phone %]" /> </li>
12
        <li><label for="contact_altphone[% contact.id %]">Alternative phone: </label>
13
        <li><label for="contact_altphone[% contact.id %]">[% t('Alternative phone:') %] </label>
13
            <input type="text" size="20" id="contact_altphone[% contact.id %]" name="contact_altphone" value="[% contact.altphone %]" /></li>
14
            <input type="text" size="20" id="contact_altphone[% contact.id %]" name="contact_altphone" value="[% contact.altphone %]" /></li>
14
        <li><label for="contact_fax[% contact.id %]">Fax: </label>
15
        <li><label for="contact_fax[% contact.id %]">[% t('Fax:') %] </label>
15
            <input type="text" size="20" id="contact_fax[% contact.id %]" name="contact_fax" value="[% contact.fax %]" /></li>
16
            <input type="text" size="20" id="contact_fax[% contact.id %]" name="contact_fax" value="[% contact.fax %]" /></li>
16
        <li><label for="contact_email[% contact.id %]">Email: </label>
17
        <li><label for="contact_email[% contact.id %]">[% t('Email:') %] </label>
17
            <input type="text" size="40" id="contact_email[% contact.id %]" name="contact_email" value="[% contact.email %]" class="email" /></li>
18
            <input type="text" size="40" id="contact_email[% contact.id %]" name="contact_email" value="[% contact.email %]" class="email" /></li>
18
        <li><label for="contact_notes[% contact.id %]">Notes: </label>
19
        <li><label for="contact_notes[% contact.id %]">[% t('Notes:') %] </label>
19
            <textarea id="contact_notes[% contact.id %]" name="contact_notes" cols="40" rows="4">[% contact.notes %]</textarea></li>
20
            <textarea id="contact_notes[% contact.id %]" name="contact_notes" cols="40" rows="4">[% contact.notes %]</textarea></li>
20
        <li><label for="contact_acqprimary[% contact.id %]">Primary acquisitions contact:</label>
21
        <li><label for="contact_acqprimary[% contact.id %]">[% t('Primary acquisitions contact:') %]</label>
21
            [% IF contact.acqprimary %]
22
            [% IF contact.acqprimary %]
22
                <input type="checkbox" id="contact_acqprimary[% contact.id %]" class="contact_acqprimary" checked="checked"></input>
23
                <input type="checkbox" id="contact_acqprimary[% contact.id %]" class="contact_acqprimary" checked="checked"></input>
23
            [% ELSE %]
24
            [% ELSE %]
24
                <input type="checkbox" id="contact_acqprimary[% contact.id %]" class="contact_acqprimary"></input>
25
                <input type="checkbox" id="contact_acqprimary[% contact.id %]" class="contact_acqprimary"></input>
25
            [% END %]
26
            [% END %]
26
            <input type="hidden" class="contact_acqprimary_hidden" name="contact_acqprimary" value="[% contact.acqprimary %]"></input>
27
            <input type="hidden" class="contact_acqprimary_hidden" name="contact_acqprimary" value="[% contact.acqprimary %]"></input>
27
        <li><label for="contact_serialsprimary[% contact.id %]">Primary serials contact:</label>
28
        <li><label for="contact_serialsprimary[% contact.id %]">[% t('Primary serials contact:') %]</label>
28
            [% IF contact.serialsprimary %]
29
            [% IF contact.serialsprimary %]
29
                <input type="checkbox" id="contact_serialsprimary[% contact.id %]" class="contact_serialsprimary" checked="checked"></input>
30
                <input type="checkbox" id="contact_serialsprimary[% contact.id %]" class="contact_serialsprimary" checked="checked"></input>
30
            [% ELSE %]
31
            [% ELSE %]
31
                <input type="checkbox" id="contact_serialsprimary[% contact.id %]" class="contact_serialsprimary"></input>
32
                <input type="checkbox" id="contact_serialsprimary[% contact.id %]" class="contact_serialsprimary"></input>
32
            [% END %]
33
            [% END %]
33
            <input type="hidden" class="contact_serialsprimary_hidden" name="contact_serialsprimary" value="[% contact.serialsprimary %]"></input>
34
            <input type="hidden" class="contact_serialsprimary_hidden" name="contact_serialsprimary" value="[% contact.serialsprimary %]"></input>
34
        <li><label for="contact_orderacquisition[% contact.id %]">Contact when ordering?</label>
35
        <li><label for="contact_orderacquisition[% contact.id %]">[% t('Contact when ordering?') %]</label>
35
            [% IF contact.orderacquisition %]
36
            [% IF contact.orderacquisition %]
36
                <input type="checkbox" id="contact_orderacquisition[% contact.id %]" class="contact_orderacquisition" checked="checked"></input>
37
                <input type="checkbox" id="contact_orderacquisition[% contact.id %]" class="contact_orderacquisition" checked="checked"></input>
37
            [% ELSE %]
38
            [% ELSE %]
38
                <input type="checkbox" id="contact_orderacquisition[% contact.id %]" class="contact_orderacquisition"></input>
39
                <input type="checkbox" id="contact_orderacquisition[% contact.id %]" class="contact_orderacquisition"></input>
39
            [% END %]
40
            [% END %]
40
            <input type="hidden" class="contact_orderacquisition_hidden" name="contact_orderacquisition" value="[% contact.orderacquisition %]"></input>
41
            <input type="hidden" class="contact_orderacquisition_hidden" name="contact_orderacquisition" value="[% contact.orderacquisition %]"></input>
41
        <li><label for="contact_claimacquisition[% contact.id %]">Contact about late orders?</label>
42
        <li><label for="contact_claimacquisition[% contact.id %]">[% t('Contact about late orders?') %]</label>
42
            [% IF contact.claimacquisition %]
43
            [% IF contact.claimacquisition %]
43
                <input type="checkbox" id="contact_claimacquisition[% contact.id %]" class="contact_claimacquisition" checked="checked"></input>
44
                <input type="checkbox" id="contact_claimacquisition[% contact.id %]" class="contact_claimacquisition" checked="checked"></input>
44
            [% ELSE %]
45
            [% ELSE %]
45
                <input type="checkbox" id="contact_claimacquisition[% contact.id %]" class="contact_claimacquisition"></input>
46
                <input type="checkbox" id="contact_claimacquisition[% contact.id %]" class="contact_claimacquisition"></input>
46
            [% END %]
47
            [% END %]
47
            <input type="hidden" class="contact_claimacquisition_hidden" name="contact_claimacquisition" value="[% contact.claimacquisition %]"></input>
48
            <input type="hidden" class="contact_claimacquisition_hidden" name="contact_claimacquisition" value="[% contact.claimacquisition %]"></input>
48
        <li><label for="contact_claimissues[% contact.id %]">Contact about late issues?</label>
49
        <li><label for="contact_claimissues[% contact.id %]">[% t('Contact about late issues?') %]</label>
49
            [% IF contact.claimissues %]
50
            [% IF contact.claimissues %]
50
                <input type="checkbox" id="contact_claimissues[% contact.id %]" class="contact_claimissues" checked="checked"></input>
51
                <input type="checkbox" id="contact_claimissues[% contact.id %]" class="contact_claimissues" checked="checked"></input>
51
            [% ELSE %]
52
            [% ELSE %]
Lines 53-94 Link Here
53
            [% END %]
54
            [% END %]
54
            <input type="hidden" class="contact_claimissues_hidden" name="contact_claimissues" value="[% contact.claimissues %]"></input>
55
            <input type="hidden" class="contact_claimissues_hidden" name="contact_claimissues" value="[% contact.claimissues %]"></input>
55
        </li>
56
        </li>
56
        [% IF contact.id %]<li><button class="btn btn-default delete-contact"><i class="fa fa-trash"></i> Delete contact</li>[% END %]
57
        [% IF contact.id %]<li><button class="btn btn-default delete-contact"><i class="fa fa-trash"></i> [% t('Delete contact') %]</li>[% END %]
57
    </ol>
58
    </ol>
58
[% END %]
59
[% END %]
59
60
60
[% BLOCK show_contact %]
61
[% BLOCK show_contact %]
61
    <h3>[% contact.name |html %]</h3>
62
    <h3>[% contact.name |html %]</h3>
62
    <p><span class="label">Position: </span>[% contact.position |html %]</p>
63
    <p><span class="label">[% t('Position:') %] </span>[% contact.position |html %]</p>
63
    <p><span class="label">Phone: </span>[% contact.phone |html %]</p>
64
    <p><span class="label">[% t('Phone:') %] </span>[% contact.phone |html %]</p>
64
    <p><span class="label">Alternative phone: </span>[% contact.altphone |html %]</p>
65
    <p><span class="label">[% t('Alternative phone:') %] </span>[% contact.altphone |html %]</p>
65
    <p><span class="label">Fax: </span>[% contact.fax |html %]</p>
66
    <p><span class="label">[% t('Fax:') %] </span>[% contact.fax |html %]</p>
66
    [% IF ( contact.email ) %]
67
    [% IF ( contact.email ) %]
67
        <p><span class="label">Email: </span><a href="mailto:[% contact.email %]">[% contact.email %]</a></p>
68
        <p><span class="label">[% t('Email:') %] </span><a href="mailto:[% contact.email %]">[% contact.email %]</a></p>
68
    [% END %]
69
    [% END %]
69
    [% IF ( contact.notes ) %]
70
    [% IF ( contact.notes ) %]
70
        <p><span class="label">Notes: </span>[% contact.notes |html %]</p>
71
        <p><span class="label">[% t('Notes:') %] </span>[% contact.notes |html %]</p>
71
    [% END %]
72
    [% END %]
72
    [% IF ( contact.acqprimary ) %]
73
    [% IF ( contact.acqprimary ) %]
73
        <p><span class="label">Primary acquisitions contact</span></p>
74
        <p><span class="label">[% t('Primary acquisitions contact') %]</span></p>
74
    [% END %]
75
    [% END %]
75
    [% IF ( contact.serialsprimary ) %]
76
    [% IF ( contact.serialsprimary ) %]
76
        <p><span class="label">Primary serials contact</span></p>
77
        <p><span class="label">[% t('Primary serials contact') %]</span></p>
77
    [% END %]
78
    [% END %]
78
    [% IF ( contact.orderacquisition ) %]
79
    [% IF ( contact.orderacquisition ) %]
79
        <p><span class="label">Receives orders</span></p>
80
        <p><span class="label">[% t('Receives orders') %]</span></p>
80
    [% END %]
81
    [% END %]
81
    [% IF ( contact.claimacquisition ) %]
82
    [% IF ( contact.claimacquisition ) %]
82
        <p><span class="label">Receives claims for late orders</span></p>
83
        <p><span class="label">[% t('Receives claims for late orders') %]</span></p>
83
    [% END %]
84
    [% END %]
84
    [% IF ( contact.claimissues ) %]
85
    [% IF ( contact.claimissues ) %]
85
        <p><span class="label">Receives claims for late issues</span></p>
86
        <p><span class="label">[% t('Receives claims for late issues') %]</span></p>
86
    [% END %]
87
    [% END %]
87
[% END %]
88
[% END %]
88
89
89
[% SET footerjs = 1 %]
90
[% SET footerjs = 1 %]
90
[% INCLUDE 'doc-head-open.inc' %]
91
[% INCLUDE 'doc-head-open.inc' %]
91
<title>Koha &rsaquo; Vendor [% name %]</title>
92
<title>[% t('Koha › Vendor') %] [% name %]</title>
92
[% Asset.css("css/datatables.css") %]
93
[% Asset.css("css/datatables.css") %]
93
[% INCLUDE 'doc-head-close.inc' %]
94
[% INCLUDE 'doc-head-close.inc' %]
94
</head>
95
</head>
Lines 97-103 Link Here
97
[% INCLUDE 'header.inc' %]
98
[% INCLUDE 'header.inc' %]
98
[% INCLUDE 'acquisitions-search.inc' %]
99
[% INCLUDE 'acquisitions-search.inc' %]
99
100
100
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; [% IF ( enter ) %][% IF ( booksellerid ) %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name |html %]</a> &rsaquo; Update: [% name |html %][% ELSE %]Add vendor[% END %] [% ELSE %][% name |html %][% END %]</div>
101
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › [% IF ( enter ) %][% IF ( booksellerid ) %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name |html %]</a> [% t('› Update:') %] [% name |html %][% ELSE %][% t('Add vendor') %][% END %] [% ELSE %][% name |html %][% END %]</div>
101
102
102
<div id="doc3" class="yui-t2">
103
<div id="doc3" class="yui-t2">
103
104
Lines 106-114 Link Here
106
    <div class="yui-b">
107
    <div class="yui-b">
107
    [% IF ( enter ) %]
108
    [% IF ( enter ) %]
108
        [% IF ( booksellerid ) %]
109
        [% IF ( booksellerid ) %]
109
        <h1>Update: [% name |html %]</h1>
110
        <h1>[% t('Update:') %] [% name |html %]</h1>
110
    [% ELSE %]
111
    [% ELSE %]
111
        <h1>Add vendor</h1>
112
        <h1>[% t('Add vendor') %]</h1>
112
    [% END %]
113
    [% END %]
113
    [% END %]
114
    [% END %]
114
[% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %]
115
[% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %]
Lines 117-167 Link Here
117
    <div class="yui-g">
118
    <div class="yui-g">
118
        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
119
        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
119
        <fieldset class="rows">
120
        <fieldset class="rows">
120
            <legend>Company details</legend>
121
            <legend>[% t('Company details') %]</legend>
121
            <ol><li><label for="company" class="required">Name:</label>
122
            <ol><li><label for="company" class="required">[% t('Name:') %]</label>
122
                <input type="text" size="40" id="company" name="company" value="[% name %]" required="required" class="required" /><span class="required">Required</span></li>
123
                <input type="text" size="40" id="company" name="company" value="[% name %]" required="required" class="required" /><span class="required">[% t('Required') %]</span></li>
123
            <li><label for="company_postal">Postal address: </label>
124
            <li><label for="company_postal">[% t('Postal address:') %] </label>
124
                    <textarea id="company_postal" name="company_postal" cols="40" rows="3">[% postal %]</textarea></li>
125
                    <textarea id="company_postal" name="company_postal" cols="40" rows="3">[% postal %]</textarea></li>
125
            <li><label for="physical">Physical address: </label>
126
            <li><label for="physical">[% t('Physical address:') %] </label>
126
                <textarea id="physical" name="physical" cols="40" rows="3">[% address1 %][% address2 %][% address3 %][% address4 %]</textarea></li>
127
                <textarea id="physical" name="physical" cols="40" rows="3">[% address1 %][% address2 %][% address3 %][% address4 %]</textarea></li>
127
            <li><label for="company_phone">Phone: </label>
128
            <li><label for="company_phone">[% t('Phone:') %] </label>
128
                <input type="text" size="20" id="company_phone" name="company_phone" value="[% phone %]" /></li>
129
                <input type="text" size="20" id="company_phone" name="company_phone" value="[% phone %]" /></li>
129
            <li><label for="company_fax">Fax: </label>
130
            <li><label for="company_fax">[% t('Fax:') %] </label>
130
                <input type="text" size="20" id="company_fax" name="company_fax" value="[% fax %]" /></li>
131
                <input type="text" size="20" id="company_fax" name="company_fax" value="[% fax %]" /></li>
131
            <li><label for="website">Website: </label>
132
            <li><label for="website">[% t('Website:') %] </label>
132
                <input type="text" size="40" id="website" name="website" value="[% url %]" class="url" /></li>
133
                <input type="text" size="40" id="website" name="website" value="[% url %]" class="url" /></li>
133
            <li><label for="accountnumber">Account number: </label>
134
            <li><label for="accountnumber">[% t('Account number:') %] </label>
134
                <input type="text" size="40" id="accountnumber" name="accountnumber" value="[% accountnumber %]" /></li></ol>
135
                <input type="text" size="40" id="accountnumber" name="accountnumber" value="[% accountnumber %]" /></li></ol>
135
        </fieldset>
136
        </fieldset>
136
        <fieldset class="rows">
137
        <fieldset class="rows">
137
            <legend>Contacts</legend>
138
            <legend>[% t('Contacts') %]</legend>
138
            <fieldset id="contact-template" class="supplier-contact">
139
            <fieldset id="contact-template" class="supplier-contact">
139
                <legend>Contact details</legend>
140
                <legend>[% t('Contact details') %]</legend>
140
                [% INCLUDE edit_contact %]
141
                [% INCLUDE edit_contact %]
141
            </fieldset>
142
            </fieldset>
142
            [% FOREACH contact IN contacts %]
143
            [% FOREACH contact IN contacts %]
143
                <fieldset class="supplier-contact">
144
                <fieldset class="supplier-contact">
144
                    <legend>Contact details</legend>
145
                    <legend>[% t('Contact details') %]</legend>
145
                    [% INCLUDE edit_contact %]
146
                    [% INCLUDE edit_contact %]
146
                </fieldset>
147
                </fieldset>
147
            [% END %]
148
            [% END %]
148
            <button id="add-contact" class="btn btn-default"><i class="fa fa-plus"></i> Add another contact</button>
149
            <button id="add-contact" class="btn btn-default"><i class="fa fa-plus"></i> [% t('Add another contact') %]</button>
149
        </fieldset>
150
        </fieldset>
150
    </div>
151
    </div>
151
        <div class="yui-g">
152
        <div class="yui-g">
152
        <fieldset class="rows">
153
        <fieldset class="rows">
153
            <legend>Ordering information</legend>
154
            <legend>[% t('Ordering information') %]</legend>
154
            <ol class="radio"><li><label for="activestatus" class="radio">Vendor is:</label>
155
            <ol class="radio"><li><label for="activestatus" class="radio">[% t('Vendor is:') %]</label>
155
                    [% IF ( active ) %]
156
                    [% IF ( active ) %]
156
                        <label for="activestatus">Active</label> <input type="radio" id="activestatus" name="status" value="1" checked="checked" />
157
                        <label for="activestatus">[% t('Active') %]</label> <input type="radio" id="activestatus" name="status" value="1" checked="checked" />
157
                        <label for="inactivestatus">Inactive</label> <input type="radio" id="inactivestatus" name="status" value="0" />
158
                        <label for="inactivestatus">[% t('Inactive') %]</label> <input type="radio" id="inactivestatus" name="status" value="0" />
158
                    [% ELSE %]
159
                    [% ELSE %]
159
                        <label for="activestatus">Active</label> <input type="radio" id="activestatus" name="status" value="1" />
160
                        <label for="activestatus">[% t('Active') %]</label> <input type="radio" id="activestatus" name="status" value="1" />
160
                        <label for="inactivestatus">Inactive</label> <input type="radio" id="inactivestatus" name="status" value="0" checked="checked" />
161
                        <label for="inactivestatus">[% t('Inactive') %]</label> <input type="radio" id="inactivestatus" name="status" value="0" checked="checked" />
161
                    [% END %]</li>
162
                    [% END %]</li>
162
            </ol>
163
            </ol>
163
            <ol>
164
            <ol>
164
            <li><label for="list_currency">List prices are: </label>
165
            <li><label for="list_currency">[% t('List prices are:') %] </label>
165
                <select name="list_currency" id="list_currency">
166
                <select name="list_currency" id="list_currency">
166
                    [% FOREACH c IN currencies %]
167
                    [% FOREACH c IN currencies %]
167
                        [% IF booksellerid and c.currency == listprice or not booksellerid and c.active %]
168
                        [% IF booksellerid and c.currency == listprice or not booksellerid and c.active %]
Lines 172-178 Link Here
172
                    [% END %]
173
                    [% END %]
173
                </select>
174
                </select>
174
            </li>
175
            </li>
175
            <li><label for="invoice_currency">Invoice prices are: </label>
176
            <li><label for="invoice_currency">[% t('Invoice prices are:') %] </label>
176
                <select name="invoice_currency" id="invoice_currency">
177
                <select name="invoice_currency" id="invoice_currency">
177
                    [% FOREACH c IN currencies %]
178
                    [% FOREACH c IN currencies %]
178
                        [% IF booksellerid and c.currency == invoiceprice or not booksellerid and c.active %]
179
                        [% IF booksellerid and c.currency == invoiceprice or not booksellerid and c.active %]
Lines 185-221 Link Here
185
            </li>
186
            </li>
186
            </ol>
187
            </ol>
187
            <ol class="radio">
188
            <ol class="radio">
188
            <li><label for="gstyes" class="radio">Tax number registered:</label>
189
            <li><label for="gstyes" class="radio">[% t('Tax number registered:') %]</label>
189
                [% IF ( gstreg ) %]
190
                [% IF ( gstreg ) %]
190
                    <label for="gstyes">Yes</label> <input type="radio" name="gst" id="gstyes" value="1" checked="checked" />
191
                    <label for="gstyes">[% t('Yes') %]</label> <input type="radio" name="gst" id="gstyes" value="1" checked="checked" />
191
                    <label for="gstno">No</label> <input type="radio" name="gst" id="gstno" value="0" />
192
                    <label for="gstno">[% t('No') %]</label> <input type="radio" name="gst" id="gstno" value="0" />
192
                [% ELSE %]
193
                [% ELSE %]
193
                    <label for="gstyes">Yes</label> <input type="radio" name="gst" id="gstyes" value="1" />
194
                    <label for="gstyes">[% t('Yes') %]</label> <input type="radio" name="gst" id="gstyes" value="1" />
194
                    <label for="gstno">No</label> <input type="radio" name="gst" id="gstno" value="0" checked="checked" />
195
                    <label for="gstno">[% t('No') %]</label> <input type="radio" name="gst" id="gstno" value="0" checked="checked" />
195
                [% END %]</li>
196
                [% END %]</li>
196
            
197
            
197
            <li><label for="list_gstyes" class="radio">List prices:</label>
198
            <li><label for="list_gstyes" class="radio">[% t('List prices:') %]</label>
198
                [% IF ( listincgst ) %]
199
                [% IF ( listincgst ) %]
199
                    <label for="list_gstyes">Include tax</label> <input type="radio" id="list_gstyes" name="list_gst" value="1" checked="checked" />
200
                    <label for="list_gstyes">[% t('Include tax') %]</label> <input type="radio" id="list_gstyes" name="list_gst" value="1" checked="checked" />
200
                    <label for="list_gstno">Don't include tax</label> <input type="radio" id="list_gstno" name="list_gst" value="0" />
201
                    <label for="list_gstno">[% t('Don\'t include tax') %]</label> <input type="radio" id="list_gstno" name="list_gst" value="0" />
201
                [% ELSE %]
202
                [% ELSE %]
202
                    <label for="list_gstyes">Include tax</label> <input type="radio" id="list_gstyes" name="list_gst" value="1" />
203
                    <label for="list_gstyes">[% t('Include tax') %]</label> <input type="radio" id="list_gstyes" name="list_gst" value="1" />
203
                    <label for="list_gstno">Don't include tax</label> <input type="radio" id="list_gstno" name="list_gst" value="0" checked="checked" />
204
                    <label for="list_gstno">[% t('Don\'t include tax') %]</label> <input type="radio" id="list_gstno" name="list_gst" value="0" checked="checked" />
204
                [% END %]</li>
205
                [% END %]</li>
205
            
206
            
206
            <li><label for="invoice_gstyes" class="radio">Invoice prices:</label>
207
            <li><label for="invoice_gstyes" class="radio">[% t('Invoice prices:') %]</label>
207
                [% IF ( invoiceincgst ) %]
208
                [% IF ( invoiceincgst ) %]
208
                    <label for="invoice_gstyes">Include tax</label> <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" checked="checked" />
209
                    <label for="invoice_gstyes">[% t('Include tax') %]</label> <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" checked="checked" />
209
                    <label for="invoice_gstno">Don't include tax</label> <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" />
210
                    <label for="invoice_gstno">[% t('Don\'t include tax') %]</label> <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" />
210
                    [% ELSE %]
211
                    [% ELSE %]
211
                    <label for="invoice_gstyes">Include tax</label> <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" />
212
                    <label for="invoice_gstyes">[% t('Include tax') %]</label> <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" />
212
                    <label for="invoice_gstno">Don't include tax</label> <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" checked="checked" />
213
                    <label for="invoice_gstno">[% t('Don\'t include tax') %]</label> <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" checked="checked" />
213
                [% END %]</li>
214
                [% END %]</li>
214
            </ol>
215
            </ol>
215
            [% IF gst_values %]
216
            [% IF gst_values %]
216
                <ol>
217
                <ol>
217
                  <li>
218
                  <li>
218
                    <label for="tax_rate">Tax rate: </label>
219
                    <label for="tax_rate">[% t('Tax rate:') %] </label>
219
                    <select name="tax_rate" id="tax_rate">
220
                    <select name="tax_rate" id="tax_rate">
220
                    [% FOREACH gst IN gst_values %]
221
                    [% FOREACH gst IN gst_values %]
221
                      [% IF ( tax_rate == gst.option ) %]
222
                      [% IF ( tax_rate == gst.option ) %]
Lines 231-298 Link Here
231
                <input type="hidden" name="tax_rate" value="0" />
232
                <input type="hidden" name="tax_rate" value="0" />
232
            [% END %]
233
            [% END %]
233
            <ol>
234
            <ol>
234
            <li><label for="discount">Discount: </label>
235
            <li><label for="discount">[% t('Discount:') %] </label>
235
                <input type="text" size="6" id="discount" name="discount" value="[% discount | format ('%.1f') %]" />%</li>
236
                <input type="text" size="6" id="discount" name="discount" value="[% discount | format ('%.1f') %]" />%</li>
236
            <li>
237
            <li>
237
                <label for="deliverytime">Delivery time: </label>
238
                <label for="deliverytime">[% t('Delivery time:') %] </label>
238
                <input type="text" size="2" id="deliverytime" name="deliverytime" value="[% deliverytime %]" /> days
239
                <input type="text" size="2" id="deliverytime" name="deliverytime" value="[% deliverytime %]" /> [% t('days') %]
239
            </li>
240
            </li>
240
            <li><label for="notes">Notes: </label>
241
            <li><label for="notes">[% t('Notes:') %] </label>
241
                <textarea cols="40" rows="4" id="notes" name="notes" >[% notes %]</textarea></li></ol>
242
                <textarea cols="40" rows="4" id="notes" name="notes">[% notes %]</textarea></li></ol>
242
        </fieldset>
243
        </fieldset>
243
        <fieldset class="action"><input type="submit" value="Save" /> [% IF ( booksellerid ) %]
244
        <fieldset class="action"><input type="submit" value="Save" /> [% IF ( booksellerid ) %]
244
        <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
245
        <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% ELSE %]<a class="cancel" href="/cgi-bin/koha/acqui/acqui-home.pl">
245
        [% END %]Cancel</a></fieldset>
246
        [% END %][% t('Cancel') %]</a></fieldset>
246
        </div>
247
        </div>
247
    </form>
248
    </form>
248
[% ELSE %]
249
[% ELSE %]
249
    <h1>[% name |html %]</h1>
250
    <h1>[% name |html %]</h1>
250
        <div class="yui-g">
251
        <div class="yui-g">
251
            <div id="supplier-company-details" class="yui-u first">
252
            <div id="supplier-company-details" class="yui-u first">
252
                <h2>Vendor details</h2>
253
                <h2>[% t('Vendor details') %]</h2>
253
                <p><span class="label">Company name: </span>[% name |html %]</p>
254
                <p><span class="label">[% t('Company name:') %] </span>[% name |html %]</p>
254
                <p><span class="label">Postal address: </span>[% postal |html %]</p>
255
                <p><span class="label">[% t('Postal address:') %] </span>[% postal |html %]</p>
255
                <p><span class="label">Physical address: </span>[% address1 |html %][% address2 |html %][% address3 |html %][% address4 |html %]</p>
256
                <p><span class="label">[% t('Physical address:') %] </span>[% address1 |html %][% address2 |html %][% address3 |html %][% address4 |html %]</p>
256
                <p><span class="label">Phone: </span>[% phone |html %]</p>
257
                <p><span class="label">[% t('Phone:') %] </span>[% phone |html %]</p>
257
                <p><span class="label">Fax: </span>[% fax |html %]</p>
258
                <p><span class="label">[% t('Fax:') %] </span>[% fax |html %]</p>
258
                [% IF ( url ) %]
259
                [% IF ( url ) %]
259
                    <p><span class="label">Website: </span><a href="[% url %]">[% url %]</a></p>
260
                    <p><span class="label">[% t('Website:') %] </span><a href="[% url %]">[% url %]</a></p>
260
                [% END %]
261
                [% END %]
261
                [% IF ( accountnumber ) %]
262
                [% IF ( accountnumber ) %]
262
                    <p><span class="label">Account number: </span>[% accountnumber |html %]</p>
263
                    <p><span class="label">[% t('Account number:') %] </span>[% accountnumber |html %]</p>
263
                [% END %]
264
                [% END %]
264
265
265
            <div id="supplier-ordering-information">
266
            <div id="supplier-ordering-information">
266
            <h2>Ordering information</h2>
267
            <h2>[% t('Ordering information') %]</h2>
267
                <p><strong>Vendor is: </strong>
268
                <p><strong>[% t('Vendor is:') %] </strong>
268
                        [% IF ( active ) %]
269
                        [% IF ( active ) %]
269
                            Active
270
                            [% t('Active') %]
270
                        [% ELSE %]
271
                        [% ELSE %]
271
                            Inactive
272
                            [% t('Inactive') %]
272
                        [% END %]</p>
273
                        [% END %]</p>
273
                <p><strong>List prices are: </strong>[% listprice %]</p>
274
                <p><strong>[% t('List prices are:') %] </strong>[% listprice %]</p>
274
                <p><strong>Invoice prices are: </strong>[% invoiceprice %]</p>
275
                <p><strong>[% t('Invoice prices are:') %] </strong>[% invoiceprice %]</p>
275
                [% IF ( tax_rate ) %]<p><strong>Tax number registered: </strong>
276
                [% IF ( tax_rate ) %]<p><strong>[% t('Tax number registered:') %] </strong>
276
                        [% IF ( gstreg ) %]Yes[% ELSE %]No[% END %]</p>
277
                        [% IF ( gstreg ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</p>
277
                <p><strong>List item price includes tax: </strong>
278
                <p><strong>[% t('List item price includes tax:') %] </strong>
278
                        [% IF ( listincgst ) %]Yes[% ELSE %]No[% END %]</p>
279
                        [% IF ( listincgst ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</p>
279
                <p><strong>Invoice item price includes tax: </strong>
280
                <p><strong>[% t('Invoice item price includes tax:') %] </strong>
280
                        [% IF ( invoiceincgst ) %]Yes[% ELSE %]No[% END %]</p>[% END %]
281
                        [% IF ( invoiceincgst ) %][% t('Yes') %][% ELSE %][% t('No') %][% END %]</p>[% END %]
281
                <p><strong>Discount: </strong>
282
                <p><strong>[% t('Discount:') %] </strong>
282
                    [% discount | format('%.1f') %] %</p>
283
                    [% discount | format('%.1f') %] %</p>
283
                <p><strong>Tax rate: </strong>
284
                <p><strong>[% t('Tax rate:') %] </strong>
284
                    [% ( tax_rate || 0 ) * 100 %] %</p>
285
                    [% ( tax_rate || 0 ) * 100 %] %</p>
285
                [% IF deliverytime.defined %]
286
                [% IF deliverytime.defined %]
286
                    <p><strong>Delivery time: </strong>
287
                    <p><strong>[% t('Delivery time:') %] </strong>
287
                        [% deliverytime %] days</p>
288
                        [% deliverytime %] [% t('days') %]</p>
288
                [% END %]
289
                [% END %]
289
                [% IF ( notes ) %]<p><strong>Notes: </strong>
290
                [% IF ( notes ) %]<p><strong>[% t('Notes:') %] </strong>
290
                    [% notes |html %]</p>[% END %]
291
                    [% notes |html %]</p>[% END %]
291
            </div>
292
            </div>
292
            </div>
293
            </div>
293
294
294
            <div class="supplier-contact-details yui-u">
295
            <div class="supplier-contact-details yui-u">
295
                <h2>Contact</h2>
296
                <h2>[% t('Contact') %]</h2>
296
                [% FOREACH contact IN contacts %]
297
                [% FOREACH contact IN contacts %]
297
                    [% INCLUDE show_contact %]
298
                    [% INCLUDE show_contact %]
298
                [% END %]
299
                [% END %]
Lines 301-308 Link Here
301
            <div>
302
            <div>
302
303
303
                <div class="subscription-details">
304
                <div class="subscription-details">
304
                    <h2>Subscription details</h2>
305
                    <h2>[% t('Subscription details') %]</h2>
305
                    <p><strong>Number of subscriptions: </strong>[% subscriptioncount %]</p>
306
                    <p><strong>[% t('Number of subscriptions:') %] </strong>[% subscriptioncount %]</p>
306
                </div>
307
                </div>
307
308
308
            </div>
309
            </div>
Lines 311-339 Link Here
311
312
312
        [% IF ( contracts ) %]
313
        [% IF ( contracts ) %]
313
            <div id="supplier-contracts" class="yui-g">
314
            <div id="supplier-contracts" class="yui-g">
314
                <h2>Contract(s)</h2>
315
                <h2>[% t('Contract(s)') %]</h2>
315
                <table id="contractst">
316
                <table id="contractst">
316
                  <thead>
317
                  <thead>
317
                    <tr>
318
                    <tr>
318
                        <th scope="col">Name</th>
319
                        <th scope="col">[% t('Name') %]</th>
319
                        <th scope="col">Description</th>
320
                        <th scope="col">[% t('Description') %]</th>
320
                        <th scope="col" class="title-string">Start date</th>
321
                        <th scope="col" class="title-string">[% t('Start date') %]</th>
321
                        <th scope="col" class="title-string">End date</th>
322
                        <th scope="col" class="title-string">[% t('End date') %]</th>
322
                        <th scope="col">Actions</th>
323
                        <th scope="col">[% t('Actions') %]</th>
323
                    </tr>
324
                    </tr>
324
                  </thead>
325
                  </thead>
325
                  <tbody>
326
                  <tbody>
326
                    [% FOREACH contract IN contracts %]
327
                    [% FOREACH contract IN contracts %]
327
                        <tr>
328
                        <tr>
328
                        <td>
329
                        <td>
329
                            <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]">[% contract.contractname %]</a>
330
                            <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]">[% contract.contractname %]</a>
330
                        </td>
331
                        </td>
331
                        <td>[% contract.contractdescription %]</td>
332
                        <td>[% contract.contractdescription %]</td>
332
                        <td><span title="[% contract.contractstartdate %]">[% contract.contractstartdate | $KohaDates %]</span></td>
333
                        <td><span title="[% contract.contractstartdate %]">[% contract.contractstartdate | $KohaDates %]</span></td>
333
                        <td><span title="[% contract.contractenddate %]">[% contract.contractenddate | $KohaDates %]</span></td>
334
                        <td><span title="[% contract.contractenddate %]">[% contract.contractenddate | $KohaDates %]</span></td>
334
                        <td class="actions">
335
                        <td class="actions">
335
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]"><i class="fa fa-pencil"></i> Edit</a>
336
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]"><i class="fa fa-pencil"></i> [% t('Edit') %]</a>
336
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&amp;contractnumber=[% contract.contractnumber %]&amp;booksellerid=[% contract.booksellerid %]"><i class="fa fa-trash"></i> Delete</a>
337
                            <a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/aqcontract.pl?op=delete_confirm&contractnumber=[% contract.contractnumber %]&booksellerid=[% contract.booksellerid %]"><i class="fa fa-trash"></i> [% t('Delete') %]</a>
337
                        </td>
338
                        </td>
338
                        </tr>
339
                        </tr>
339
                    [% END %]
340
                    [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt (-29 / +30 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% SET footerjs = 1 %]
2
[% SET footerjs = 1 %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Acquisitions &rsaquo; Transfer order</title>
4
<title>[% t('Koha › Acquisitions › Transfer order') %]</title>
4
[%- USE KohaDates -%]
5
[%- USE KohaDates -%]
5
[% INCLUDE 'doc-head-close.inc' %]
6
[% INCLUDE 'doc-head-close.inc' %]
6
</head>
7
</head>
Lines 8-23 Link Here
8
<body id="acq_transferorder" class="acq">
9
<body id="acq_transferorder" class="acq">
9
    <div class="container-fluid">
10
    <div class="container-fluid">
10
        [% IF ( bookselleridfrom ) %]
11
        [% IF ( bookselleridfrom ) %]
11
            <h3>Search for a vendor to transfer to</h3>
12
            <h3>[% t('Search for a vendor to transfer to') %]</h3>
12
              <div class="transferinfo">
13
              <div class="transferinfo">
13
                <ul>
14
                <ul>
14
                  <li><span class="label">From vendor: </span>[% booksellerfromname %]</li>
15
                  <li><span class="label">[% t('From vendor:') %] </span>[% booksellerfromname %]</li>
15
                  <li><span class="label">Basket: </span>[% basketfromname %]</li>
16
                  <li><span class="label">[% t('Basket:') %] </span>[% basketfromname %]</li>
16
                  <li><span class="label">Order: </span>[% ordernumber %]</li>
17
                  <li><span class="label">[% t('Order:') %] </span>[% ordernumber %]</li>
17
                </ul>
18
                </ul>
18
              </div>
19
              </div>
19
        [% ELSE %]
20
        [% ELSE %]
20
            <h3>Search for a vendor to transfer from</h3>
21
            <h3>[% t('Search for a vendor to transfer from') %]</h3>
21
        [% END %]
22
        [% END %]
22
        <form method="get" action="transferorder.pl">
23
        <form method="get" action="transferorder.pl">
23
            <fieldset>
24
            <fieldset>
Lines 28-48 Link Here
28
            [% IF ( bookselleridfrom ) %]
29
            [% IF ( bookselleridfrom ) %]
29
                <input type="hidden" name="bookselleridfrom" value="[% bookselleridfrom %]" />
30
                <input type="hidden" name="bookselleridfrom" value="[% bookselleridfrom %]" />
30
            [% END %]
31
            [% END %]
31
            <label for="query">Vendor:</label>
32
            <label for="query">[% t('Vendor:') %]</label>
32
            <input type="text" id="query" name="query" />
33
            <input type="text" id="query" name="query" />
33
            <input type="submit" value="Search" />
34
            <input type="submit" value="Search" />
34
            </fieldset>
35
            </fieldset>
35
        </form>
36
        </form>
36
        [% IF ( show_baskets ) %]
37
        [% IF ( show_baskets ) %]
37
            <h3>Baskets for [% booksellertoname %]</h3>
38
            <h3>[% t('Baskets for') %] [% booksellertoname %]</h3>
38
            [% IF ( basketsloop ) %]
39
            [% IF ( basketsloop ) %]
39
                <table>
40
                <table>
40
                    <thead>
41
                    <thead>
41
                        <tr>
42
                        <tr>
42
                            <th>Basket (#)</th>
43
                            <th>[% t('Basket (#)') %]</th>
43
                            <th>Created by</th>
44
                            <th>[% t('Created by') %]</th>
44
                            <th>Date</th>
45
                            <th>[% t('Date') %]</th>
45
                            <th>&nbsp;</th>
46
                            <th> </th>
46
                        </tr>
47
                        </tr>
47
                    </thead>
48
                    </thead>
48
                    <tbody>
49
                    <tbody>
Lines 51-73 Link Here
51
                            <td>[% basket.basketname %] (#[% basket.basketno %])</td>
52
                            <td>[% basket.basketname %] (#[% basket.basketno %])</td>
52
                            <td>[% basket.createdby %]</td>
53
                            <td>[% basket.createdby %]</td>
53
                            <td>[% basket.creationdate | $KohaDates %]</td>
54
                            <td>[% basket.creationdate | $KohaDates %]</td>
54
                            <td><a class="btn btn-default btn-xs confirm_transfer" href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %]">Choose</a>
55
                            <td><a class="btn btn-default btn-xs confirm_transfer" href="transferorder.pl?basketno=[% basket.basketno %]&ordernumber=[% ordernumber %]">[% t('Choose') %]</a>
55
                          </tr>
56
                          </tr>
56
                        [% END %]
57
                        [% END %]
57
                    </tbody>
58
                    </tbody>
58
                </table>
59
                </table>
59
            [% ELSE %]
60
            [% ELSE %]
60
                <p>There are no open baskets for this vendor.</p>
61
                <p>[% t('There are no open baskets for this vendor.') %]</p>
61
            [% END %]
62
            [% END %]
62
        [% END %]
63
        [% END %]
63
        [% IF ( ordersloop ) %]
64
        [% IF ( ordersloop ) %]
64
            <h3>Orders for [% booksellerfromname %]</h3>
65
            <h3>[% t('Orders for') %] [% booksellerfromname %]</h3>
65
            <table>
66
            <table>
66
                <thead>
67
                <thead>
67
                    <tr>
68
                    <tr>
68
                        <th>Order</th>
69
                        <th>[% t('Order') %]</th>
69
                        <th>Summary</th>
70
                        <th>[% t('Summary') %]</th>
70
                        <th>&nbsp;</th>
71
                        <th> </th>
71
                    </tr>
72
                    </tr>
72
                </thead>
73
                </thead>
73
                <tbody>
74
                <tbody>
Lines 76-91 Link Here
76
                        <td><a href="neworderempty.pl?ordernumber=[% ordersloo.ordernumber %]">[% ordersloo.ordernumber %]</a></td>
77
                        <td><a href="neworderempty.pl?ordernumber=[% ordersloo.ordernumber %]">[% ordersloo.ordernumber %]</a></td>
77
                        <td>
78
                        <td>
78
                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber %]">[% ordersloo.title |html %]</a>
79
                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber %]">[% ordersloo.title |html %]</a>
79
                            [% IF ( ordersloo.author ) %] by [% ordersloo.author %][% END %]
80
                            [% IF ( ordersloo.author ) %] [% t('by') %] [% ordersloo.author %][% END %]
80
                            [% IF ( ordersloo.isbn ) %] &ndash; [% ordersloo.isbn %][% END %]
81
                            [% IF ( ordersloo.isbn ) %] – [% ordersloo.isbn %][% END %]
81
                            [% IF ( ordersloo.publishercode ) %]
82
                            [% IF ( ordersloo.publishercode ) %]
82
                                <br />Publisher: [% ordersloo.publishercode %]
83
                                <br />[% t('Publisher:') %] [% ordersloo.publishercode %]
83
                                [%- IF    ( ordersloo.publicationyear > 0) -%], [% ordersloo.publicationyear %]
84
                                [%- IF    ( ordersloo.publicationyear > 0) -%], [% ordersloo.publicationyear %]
84
                                [%- ELSIF ( ordersloo.copyrightdate   > 0) -%] [% ordersloo.copyrightdate %]
85
                                [%- ELSIF ( ordersloo.copyrightdate   > 0) -%] [% ordersloo.copyrightdate %]
85
                                [% END %]
86
                                [% END %]
86
                            [% END %]
87
                            [% END %]
87
                        </td>
88
                        </td>
88
                        <td><a class="btn btn-default btn-xs" href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %]">Transfer</a></td>
89
                        <td><a class="btn btn-default btn-xs" href="transferorder.pl?bookselleridfrom=[% ordersloo.bookselleridfrom %]&ordernumber=[% ordersloo.ordernumber %]">[% t('Transfer') %]</a></td>
89
                      </tr>
90
                      </tr>
90
                    [% END %]
91
                    [% END %]
91
                </tbody>
92
                </tbody>
Lines 93-125 Link Here
93
        [% END %]
94
        [% END %]
94
        [% IF ( do_search ) %]
95
        [% IF ( do_search ) %]
95
            [% IF ( bookselleridfrom ) %]
96
            [% IF ( bookselleridfrom ) %]
96
                <h3>Choose a vendor to transfer to</h3>
97
                <h3>[% t('Choose a vendor to transfer to') %]</h3>
97
            [% ELSE %]
98
            [% ELSE %]
98
                <h3>Choose a vendor to transfer from</h3>
99
                <h3>[% t('Choose a vendor to transfer from') %]</h3>
99
            [% END %]
100
            [% END %]
100
            [% IF ( booksellersloop ) %]
101
            [% IF ( booksellersloop ) %]
101
                <table>
102
                <table>
102
                    <thead>
103
                    <thead>
103
                        <tr>
104
                        <tr>
104
                            <th>Name</th>
105
                            <th>[% t('Name') %]</th>
105
                            <th>&nbsp;</th>
106
                            <th> </th>
106
                        </tr>
107
                        </tr>
107
                    </thead>
108
                    </thead>
108
                    <tbody>
109
                    <tbody>
109
                        [% FOREACH bookseller IN booksellersloop %]
110
                        [% FOREACH bookseller IN booksellersloop %]
110
                          <tr>
111
                          <tr>
111
                            <td>[% bookseller.name %]</td>
112
                            <td>[% bookseller.name %]</td>
112
                            <td><a class="btn btn-default btn-xs" href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id %][% IF (ordernumber) %]&ordernumber=[% ordernumber %][% END %]">Choose</a></td>
113
                            <td><a class="btn btn-default btn-xs" href="transferorder.pl?[% IF (bookselleridfrom) %]bookselleridto[% ELSE %]bookselleridfrom[% END %]=[% bookseller.id %][% IF (ordernumber) %]&ordernumber=[% ordernumber %][% END %]">[% t('Choose') %]</a></td>
113
                          </tr>
114
                          </tr>
114
                        [% END %]
115
                        [% END %]
115
                    </tbody>
116
                    </tbody>
116
                 </table>
117
                 </table>
117
            [% ELSE %]
118
            [% ELSE %]
118
                <p>No results found.</p>
119
                <p>[% t('No results found.') %]</p>
119
            [% END %]
120
            [% END %]
120
        [% END %]
121
        [% END %]
121
122
122
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">Cancel</a></div>
123
<div id="closewindow"><a href="#" class="btn btn-default btn-default close">[% t('Cancel') %]</a></div>
123
124
124
[% MACRO jsinclude BLOCK %]
125
[% MACRO jsinclude BLOCK %]
125
    [% IF transferred %]
126
    [% IF transferred %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt (-26 / +27 lines)
Lines 1-8 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Asset %]
2
[% USE Asset %]
2
[% USE Koha %]
3
[% USE Koha %]
3
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
4
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( booksellername ) %]Orders with uncertain prices for vendor [% booksellername %][% ELSE %]Orders with uncertain prices[% END %]</title>
6
<title>[% t('Koha › Acquisitions ›') %] [% IF ( booksellername ) %][% t('Orders with uncertain prices for vendor') %] [% booksellername %][% ELSE %][% t('Orders with uncertain prices') %][% END %]</title>
6
[% Asset.css("css/datatables.css") %]
7
[% Asset.css("css/datatables.css") %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
8
</head>
9
</head>
Lines 11-17 Link Here
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'acquisitions-search.inc' %]
13
[% INCLUDE 'acquisitions-search.inc' %]
13
14
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; [% IF ( booksellername ) %]<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo; Uncertain prices for vendor [% booksellername %][% ELSE %]Uncertain prices[% END %]</div>
15
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › [% IF ( booksellername ) %]<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> [% t('› Uncertain prices for vendor') %] [% booksellername %][% ELSE %][% t('Uncertain prices') %][% END %]</div>
15
16
16
<div id="doc3" class="yui-t2">
17
<div id="doc3" class="yui-t2">
17
18
Lines 22-33 Link Here
22
[% INCLUDE 'acquisitions-toolbar.inc' %]
23
[% INCLUDE 'acquisitions-toolbar.inc' %]
23
        [% IF ( validate ) %]
24
        [% IF ( validate ) %]
24
            [% SET metacontent = '0; url=' _  scriptname  _ '?booksellerid=' _  booksellerid %]
25
            [% SET metacontent = '0; url=' _  scriptname  _ '?booksellerid=' _  booksellerid %]
25
            <META HTTP-EQUIV=Refresh CONTENT="[% metacontent %]">
26
            <meta http-equiv="Refresh" content="[% metacontent %]">
26
        [% ELSE %]
27
        [% ELSE %]
27
        [% IF ( booksellername ) %]
28
        [% IF ( booksellername ) %]
28
            <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a></h1>
29
            <h1>[% t('Orders with uncertain prices for vendor') %] <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a></h1>
29
            <h2>Contact information</h2>
30
            <h2>[% t('Contact information') %]</h2>
30
            <p><strong>Address: </strong>
31
            <p><strong>[% t('Address:') %] </strong>
31
                [% booksellerpostal %]
32
                [% booksellerpostal %]
32
                [% bookselleraddress1 %]
33
                [% bookselleraddress1 %]
33
                [% bookselleraddress2 %]
34
                [% bookselleraddress2 %]
Lines 35-46 Link Here
35
                [% bookselleraddress4 %]
36
                [% bookselleraddress4 %]
36
                <a href="[% booksellerurl %]">[% booksellerurl %]</a>
37
                <a href="[% booksellerurl %]">[% booksellerurl %]</a>
37
            </p>
38
            </p>
38
            <p><strong>Phone: </strong>
39
            <p><strong>[% t('Phone:') %] </strong>
39
                [% booksellerphone %] / Fax:
40
                [% booksellerphone %] [% t('/ Fax:') %]
40
                [% booksellerfax %]</p>
41
                [% booksellerfax %]</p>
41
            <dl>
42
            <dl>
42
                [% FOREACH contact IN contacts %]
43
                [% FOREACH contact IN contacts %]
43
                    <dt><strong>Contact: </strong></dt>
44
                    <dt><strong>[% t('Contact:') %] </strong></dt>
44
                    <dd>[% contact.name %]
45
                    <dd>[% contact.name %]
45
                        [% contact.position %]
46
                        [% contact.position %]
46
                        [% contact.phone %]
47
                        [% contact.phone %]
Lines 51-72 Link Here
51
                [% END %]
52
                [% END %]
52
            </dl>
53
            </dl>
53
            [% IF ( booksellernotes ) %]
54
            [% IF ( booksellernotes ) %]
54
            <p><strong>Notes: </strong>
55
            <p><strong>[% t('Notes:') %] </strong>
55
                [% booksellernotes %]</p>
56
                [% booksellernotes %]</p>
56
            [% END %]
57
            [% END %]
57
        [% END %]
58
        [% END %]
58
59
59
        <h2>Orders with uncertain prices</h2>
60
        <h2>[% t('Orders with uncertain prices') %]</h2>
60
        <form action="[% scriptname %]" method="post">
61
        <form action="[% scriptname %]" method="post">
61
        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
62
        <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
62
        <label for="owner">Orders from:</label>
63
        <label for="owner">[% t('Orders from:') %]</label>
63
        <select id="owner" name="owner">
64
        <select id="owner" name="owner">
64
            [% IF ( owner ) %]
65
            [% IF ( owner ) %]
65
            <option value="0">Everyone</option>
66
            <option value="0">[% t('Everyone') %]</option>
66
            <option value="1" selected="selected">me</option>
67
            <option value="1" selected="selected">[% t('me') %]</option>
67
            [% ELSE %]
68
            [% ELSE %]
68
            <option value="0" selected="selected">Everyone</option>
69
            <option value="0" selected="selected">[% t('Everyone') %]</option>
69
            <option value="1">me</option>
70
            <option value="1">[% t('me') %]</option>
70
            [% END %]
71
            [% END %]
71
        </select>
72
        </select>
72
        <input type="submit" value="Filter" />
73
        <input type="submit" value="Filter" />
Lines 77-88 Link Here
77
        <table id="uncertainpricet">
78
        <table id="uncertainpricet">
78
        <thead>
79
        <thead>
79
	    <tr>
80
	    <tr>
80
            <th>Basket</th>
81
            <th>[% t('Basket') %]</th>
81
           <th>Order</th>
82
           <th>[% t('Order') %]</th>
82
            <th>By</th>
83
            <th>[% t('By') %]</th>
83
            <th>Uncertain</th>
84
            <th>[% t('Uncertain') %]</th>
84
            <th>Price</th>
85
            <th>[% t('Price') %]</th>
85
            <th>Quantity</th>
86
            <th>[% t('Quantity') %]</th>
86
	    </tr>
87
	    </tr>
87
        </thead>
88
        </thead>
88
        <tbody>
89
        <tbody>
Lines 93-109 Link Here
93
        </td>
94
        </td>
94
	    <td>
95
	    <td>
95
            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% uncertainpriceorder.biblionumber %]">[% uncertainpriceorder.title |html %]</a>
96
            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% uncertainpriceorder.biblionumber %]">[% uncertainpriceorder.title |html %]</a>
96
            [% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author %][% END %]
97
            [% IF ( uncertainpriceorder.author ) %] <em>[% t('by') %]</em> [% uncertainpriceorder.author %][% END %]
97
            [% IF ( uncertainpriceorder.publishercode ) %]
98
            [% IF ( uncertainpriceorder.publishercode ) %]
98
                <br /><em>Publisher:</em> [% uncertainpriceorder.publishercode %]
99
                <br /><em>[% t('Publisher:') %]</em> [% uncertainpriceorder.publishercode %]
99
                [%- IF    ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear %]
100
                [%- IF    ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear %]
100
                [%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate %]
101
                [%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate %]
101
                [% END %]
102
                [% END %]
102
            [% END %]
103
            [% END %]
103
            [% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn %][% END %]
104
            [% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn %][% END %]
104
            <br />
105
            <br />
105
            <a href="neworderempty.pl?ordernumber=[% uncertainpriceorder.ordernumber %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% uncertainpriceorder.basketno %]">
106
            <a href="neworderempty.pl?ordernumber=[% uncertainpriceorder.ordernumber %]&booksellerid=[% booksellerid %]&basketno=[% uncertainpriceorder.basketno %]">
106
                Edit
107
                [% t('Edit') %]
107
            </a>
108
            </a>
108
        </td>
109
        </td>
109
        <td>
110
        <td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt (-53 / +53 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; Acquisitions &rsaquo; [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source &rsaquo; Search results[% END %]</title>
5
<title>[% t('Koha › Acquisitions ›') %] [% IF ( opsearch ) %][% t('Order from external source') %][% ELSE %][% t('Order from external source › Search results') %][% END %]</title>
5
[% Asset.css("css/datatables.css") %]
6
[% Asset.css("css/datatables.css") %]
6
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
7
<style type="text/css">
8
<style type="text/css">
Lines 16-51 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
16
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'header.inc' %]
17
[% INCLUDE 'acquisitions-search.inc' %]
18
[% INCLUDE 'acquisitions-search.inc' %]
18
19
19
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name %]</a> &rsaquo; <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a> &rsaquo; [% IF ( opsearch ) %]Order from external source[% ELSE %]<a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Order from external source</a> &rsaquo; Search results[% END %]</div>
20
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">[% t('Acquisitions') %]</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name %]</a> › <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">[% t('Basket') %] [% basketno | html %]</a> › [% IF ( opsearch ) %][% t('Order from external source') %][% ELSE %]<a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">[% t('Order from external source') %]</a> [% t('› Search results') %][% END %]</div>
20
21
21
<div class="main container-fluid">
22
<div class="main container-fluid">
22
    <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
23
    <form method="post" action="z3950_search.pl" name="f" class="checkboxed">
23
    <div class="row">
24
    <div class="row">
24
      [% IF ( opsearch ) %]
25
      [% IF ( opsearch ) %]
25
    <div class="col-sm-6">
26
    <div class="col-sm-6">
26
    <h2>Order from external source</h2>
27
    <h2>[% t('Order from external source') %]</h2>
27
    <input type="hidden" name="op" id="op" value="do_search" />
28
    <input type="hidden" name="op" id="op" value="do_search" />
28
	    <fieldset class="rows">
29
	    <fieldset class="rows">
29
         <ol>
30
         <ol>
30
             <li><label for="searchtitle">Title: </label> <input type="text" id="searchtitle"  name="title" value="[% title |html %]" class="focus" /></li>
31
             <li><label for="searchtitle">[% t('Title:') %] </label> <input type="text" id="searchtitle" name="title" value="[% title |html %]" class="focus" /></li>
31
             <li><label for="isbn">ISBN: </label> <input type="text" id="isbn" name="isbn" value="[% isbn | html %]" /></li>
32
             <li><label for="isbn">[% t('ISBN:') %] </label> <input type="text" id="isbn" name="isbn" value="[% isbn | html %]" /></li>
32
             <li><label for="lccall">LC call number: </label> <input type="text" id="lccall" name="lccall" value="" /></li>
33
             <li><label for="lccall">[% t('LC call number:') %] </label> <input type="text" id="lccall" name="lccall" value="" /></li>
33
             <li><label for="controlnumber">Control no.: </label> <input type="text" id="controlnumber" name="controlnumber" value="" /></li>
34
             <li><label for="controlnumber">[% t('Control no.:') %] </label> <input type="text" id="controlnumber" name="controlnumber" value="" /></li>
34
             <li><label for="author">Author: </label> <input type="text" id="author" name="author" value="[% author | html %]" /></li>
35
             <li><label for="author">[% t('Author:') %] </label> <input type="text" id="author" name="author" value="[% author | html %]" /></li>
35
             <li><label for="issn">ISSN: </label> <input type="text" id="issn" name="issn" value="[% issn | html %]" /></li>
36
             <li><label for="issn">[% t('ISSN:') %] </label> <input type="text" id="issn" name="issn" value="[% issn | html %]" /></li>
36
             <li><label for="subject">Subject heading: </label> <input type="text" id="subject" name="subject" value="" /></li>
37
             <li><label for="subject">[% t('Subject heading:') %] </label> <input type="text" id="subject" name="subject" value="" /></li>
37
             <li><label for="srchany">Keyword (any): </label> <input type="text" id="srchany" name="srchany" value="" /></li>
38
             <li><label for="srchany">[% t('Keyword (any):') %] </label> <input type="text" id="srchany" name="srchany" value="" /></li>
38
             <li><label for="dewey">Dewey: </label> <input type="text" id="dewey" name="dewey" value="" /></li>
39
             <li><label for="dewey">[% t('Dewey:') %] </label> <input type="text" id="dewey" name="dewey" value="" /></li>
39
             <li><label for="stdid">Standard ID: </label> <input type="text" id="stdid" name="stdid" value="" /></li>
40
             <li><label for="stdid">[% t('Standard ID:') %] </label> <input type="text" id="stdid" name="stdid" value="" /></li>
40
             <li><label for="frameworkcode" >Select MARC framework:</label>
41
             <li><label for="frameworkcode">[% t('Select MARC framework:') %]</label>
41
             <select id="frameworkcode" name="frameworkcode" >
42
             <select id="frameworkcode" name="frameworkcode">
42
             <option value="">Default</option>
43
             <option value="">[% t('Default') %]</option>
43
                 [% FOREACH framework IN frameworks %]
44
                 [% FOREACH framework IN frameworks %]
44
                    <option value="[% framework.frameworkcode %]" >[% framework.frameworktext %]</option>
45
                    <option value="[% framework.frameworkcode %]">[% framework.frameworktext %]</option>
45
                 [% END %]
46
                 [% END %]
46
              </select>
47
              </select>
47
              </li>
48
              </li>
48
              <li><a id="resetZ3950Search" href="#"><i class="fa fa-trash"></i> Clear search form</a></li>
49
              <li><a id="resetZ3950Search" href="#"><i class="fa fa-trash"></i> [% t('Clear search form') %]</a></li>
49
         </ol>
50
         </ol>
50
    </fieldset>
51
    </fieldset>
51
    <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
52
    <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
Lines 53-61 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
53
    <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
54
    <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
54
	    </div>
55
	    </div>
55
<div class="col-sm-6">
56
<div class="col-sm-6">
56
<h2>Search targets</h2>
57
<h2>[% t('Search targets') %]</h2>
57
    <div id="z3950_search_targets_acq">
58
    <div id="z3950_search_targets_acq">
58
        <span class="z3950checks"><span class="checkall"><a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a></span> | <span class="clearall"><a id="CheckNone" href="#"><i class="fa fa-remove"></i> Clear all</a></span></span>
59
        <span class="z3950checks"><span class="checkall"><a id="CheckAll" href="#"><i class="fa fa-check"></i> [% t('Select all') %]</a></span> | <span class="clearall"><a id="CheckNone" href="#"><i class="fa fa-remove"></i> [% t('Clear all') %]</a></span></span>
59
    [% FOREACH serverloo IN serverloop %]
60
    [% FOREACH serverloo IN serverloop %]
60
        <p>
61
        <p>
61
            [% IF ( serverloo.checked ) %]
62
            [% IF ( serverloo.checked ) %]
Lines 73-79 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
73
74
74
<div class="row">
75
<div class="row">
75
    <div class="col-md-12">
76
    <div class="col-md-12">
76
    <fieldset class="action"><input type="submit"  class="submit" value="Search" /> <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Cancel</a></fieldset>
77
    <fieldset class="action"><input type="submit" class="submit" value="Search" /> <a class="cancel" href="/cgi-bin/koha/acqui/basket.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">[% t('Cancel') %]</a></fieldset>
77
</div>
78
</div>
78
</form>
79
</form>
79
</div>
80
</div>
Lines 81-121 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
81
82
82
[% ELSE %]
83
[% ELSE %]
83
    <div class="col-md-12">
84
    <div class="col-md-12">
84
    <h2>Search results</h2>
85
    <h2>[% t('Search results') %]</h2>
85
86
86
    <p>You searched for:
87
    <p>[% t('You searched for:') %]
87
        [% IF ( title ) %]<em>Title: </em><span class=term>[% title | html %]</span> [% END %]
88
        [% IF ( title ) %]<em>[% t('Title:') %] </em><span class="term">[% title | html %]</span> [% END %]
88
        [% IF ( author ) %]<em>Author: </em><span class=term>[% author | html %]</span> [% END %]
89
        [% IF ( author ) %]<em>[% t('Author:') %] </em><span class="term">[% author | html %]</span> [% END %]
89
        [% IF ( isbn ) %]<em>ISBN: </em><span class=term>[% isbn | html %]</span> [% END %]
90
        [% IF ( isbn ) %]<em>[% t('ISBN:') %] </em><span class="term">[% isbn | html %]</span> [% END %]
90
        [% IF ( issn ) %]<em>ISSN: </em><span class=term>[% issn | html %]</span> [% END %]
91
        [% IF ( issn ) %]<em>[% t('ISSN:') %] </em><span class="term">[% issn | html %]</span> [% END %]
91
        [% IF ( lccall ) %]<em>LC call number: </em><span class=term>[% lccall | html %]</span> [% END %]
92
        [% IF ( lccall ) %]<em>[% t('LC call number:') %] </em><span class="term">[% lccall | html %]</span> [% END %]
92
        [% IF ( subject ) %]<em>Subject heading: </em><span class=term>[% subject | html %]</span> [% END %]
93
        [% IF ( subject ) %]<em>[% t('Subject heading:') %] </em><span class="term">[% subject | html %]</span> [% END %]
93
        [% IF ( controlnumber ) %]<em>Control no: </em><span class=term>[% controlnumber | html %]</span> [% END %]
94
        [% IF ( controlnumber ) %]<em>[% t('Control no:') %] </em><span class="term">[% controlnumber | html %]</span> [% END %]
94
        [% IF ( dewey ) %]<em>Dewey: </em><span class=term>[% dewey | html %]</span> [%END %]
95
        [% IF ( dewey ) %]<em>[% t('Dewey:') %] </em><span class="term">[% dewey | html %]</span> [%END %]
95
    </p>
96
    </p>
96
97
97
    [% IF ( breeding_loop ) %]
98
    [% IF ( breeding_loop ) %]
98
    <table id="resultst">
99
    <table id="resultst">
99
<thead>    <tr>
100
<thead>    <tr>
100
        <th>Server</th>
101
        <th>[% t('Server') %]</th>
101
        <th>Title</th>
102
        <th>[% t('Title') %]</th>
102
        <th>Author</th>
103
        <th>[% t('Author') %]</th>
103
        <th>ISBN</th>
104
        <th>[% t('ISBN') %]</th>
104
        <th>LCCN</th>
105
        <th>[% t('LCCN') %]</th>
105
        <th>Preview</th>
106
        <th>[% t('Preview') %]</th>
106
		<th>&nbsp;</th>
107
		<th> </th>
107
    </tr></thead>
108
    </tr></thead>
108
    <tbody>[% FOREACH breeding_loo IN breeding_loop %]
109
    <tbody>[% FOREACH breeding_loo IN breeding_loop %]
109
        [% IF ( breeding_loo.breedingid ) %]
110
        [% IF ( breeding_loo.breedingid ) %]
110
111
111
        <tr>
112
        <tr>
112
            <td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewData">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid %]" class="previewData">Preview card</a> <a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri  %]&amp;breedingid=[% breeding_loo.breedingid %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Order</a> <a href="#" id="closemenu" title="Close this menu"> X </a></div></td>
113
            <td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewData">[% t('Preview MARC') %]</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" class="previewData">[% t('Preview card') %]</a> <a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri  %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">[% t('Order') %]</a> <a href="#" id="closemenu" title="[% t('Close this menu') %]"> [% t('X') %] </a></div></td>
113
            <td>[% breeding_loo.title |html %]</td>
114
            <td>[% breeding_loo.title |html %]</td>
114
            <td>[% breeding_loo.author %]</td>
115
            <td>[% breeding_loo.author %]</td>
115
            <td>[% breeding_loo.isbn %]</td>
116
            <td>[% breeding_loo.isbn %]</td>
116
            <td>[% breeding_loo.lccn %]</td>
117
            <td>[% breeding_loo.lccn %]</td>
117
            <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" title="MARC" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid %]" title="Card" class="previewData">Card</a></td>
118
            <td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" title="[% t('MARC') %]" class="previewData">[% t('MARC') %]</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" title="[% t('Card') %]" class="previewData">[% t('Card') %]</a></td>
118
            <td><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri %]&amp;breedingid=[% breeding_loo.breedingid %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">Order</a></td>
119
            <td><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]">[% t('Order') %]</a></td>
119
120
120
        </tr>
121
        </tr>
121
        [% END %]
122
        [% END %]
Lines 128-140 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
128
        <div class="modal-content">
129
        <div class="modal-content">
129
        <div class="modal-header">
130
        <div class="modal-header">
130
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
131
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
131
            <h3 id="dataPreviewLabel">MARC preview</h3>
132
            <h3 id="dataPreviewLabel">[% t('MARC preview') %]</h3>
132
        </div>
133
        </div>
133
        <div class="modal-body">
134
        <div class="modal-body">
134
            <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> Loading </div>
135
            <div id="loading"> <img src="[% interface %]/[% theme %]/img/spinner-small.gif" alt="" /> [% t('Loading') %] </div>
135
        </div>
136
        </div>
136
        <div class="modal-footer">
137
        <div class="modal-footer">
137
            <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
138
            <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">[% t('Close') %]</button>
138
        </div>
139
        </div>
139
        </div>
140
        </div>
140
        </div>
141
        </div>
Lines 143-149 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
143
    <form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed">
144
    <form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed">
144
        <input type="hidden" name="op" id="op" value="do_search" />
145
        <input type="hidden" name="op" id="op" value="do_search" />
145
        <input type="hidden" name="current_page" id="current_page" value="[% current_page %]" />
146
        <input type="hidden" name="current_page" id="current_page" value="[% current_page %]" />
146
        <input type="hidden" id="searchtitle"  name="title" value="[% title |html %]" />
147
        <input type="hidden" id="searchtitle" name="title" value="[% title |html %]" />
147
        <input type="hidden" id="isbn" name="isbn" value="[% isbn | html %]" />
148
        <input type="hidden" id="isbn" name="isbn" value="[% isbn | html %]" />
148
        <input type="hidden" id="lccall" name="lccall" value="[% lccall | html %]" />
149
        <input type="hidden" id="lccall" name="lccall" value="[% lccall | html %]" />
149
        <input type="hidden" id="author" name="author" value="[% author | html %]" />
150
        <input type="hidden" id="author" name="author" value="[% author | html %]" />
Lines 162-195 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
162
        [% IF ( show_prevbutton ) %]
163
        [% IF ( show_prevbutton ) %]
163
            <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page %]" />
164
            <input type="button" name="changepage_prev" value="Previous page" data-currentpage="[% current_page %]" />
164
        [% END %]
165
        [% END %]
165
        Page [% current_page %] / [% total_pages %]
166
        [% t('Page') %] [% current_page %] / [% total_pages %]
166
        [% IF ( show_nextbutton ) %]
167
        [% IF ( show_nextbutton ) %]
167
            <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page %]" />
168
            <input type="button" name="changepage_next" value="Next page" data-currentpage="[% current_page %]" />
168
        [% END %]
169
        [% END %]
169
        <br />Go to page : <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" value="Go" />
170
        <br />[% t('Go to page :') %] <input id="goto_page" name="goto_page" value="[% current_page %]" size="4" /><input type="submit" name="changepage_goto" value="Go" />
170
    </form>
171
    </form>
171
172
172
    [% ELSE %]
173
    [% ELSE %]
173
        [% IF ( emptyserverlist ) %]
174
        [% IF ( emptyserverlist ) %]
174
            <div class="dialog alert">You didn't select any external target.</div>
175
            <div class="dialog alert">[% t('You didn\'t select any external target.') %]</div>
175
        [% ELSE %]
176
        [% ELSE %]
176
            [% IF ( errconn ) %]
177
            [% IF ( errconn ) %]
177
                <div class="dialog alert">
178
                <div class="dialog alert">
178
                    <ul>
179
                    <ul>
179
                    [% FOREACH errcon IN errconn %]
180
                    [% FOREACH errcon IN errconn %]
180
                        <li>Connection failed to [% errcon.server %]</li>
181
                        <li>[% t('Connection failed to') %] [% errcon.server %]</li>
181
                    [% END %]
182
                    [% END %]
182
                    </ul>
183
                    </ul>
183
                </div>
184
                </div>
184
            [% END %]
185
            [% END %]
185
        [% END %]
186
        [% END %]
186
        <div class="dialog message">Nothing found. <a href="javascript: history.back()">Try another search</a>.</div>
187
        <div class="dialog message">[% t('Nothing found.') %] <a href="javascript: history.back()">[% t('Try another search') %]</a>.</div>
187
    [% END %]
188
    [% END %]
188
</div>
189
</div>
189
190
190
[% END %]
191
[% END %]
191
192
192
[% IF ( numberpending ) %]<h3 align="center">Still [% numberpending %] servers to search</h3>[% END %]
193
[% IF ( numberpending ) %]<h3 align="center">[% t('Still') %] [% numberpending %] [% t('servers to search') %]</h3>[% END %]
193
194
194
[% MACRO jsinclude BLOCK %]
195
[% MACRO jsinclude BLOCK %]
195
    [% Asset.js("js/acquisitions-menu.js") %]
196
    [% Asset.js("js/acquisitions-menu.js") %]
196
- 

Return to bug 20988