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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_order_accounts.tt (-10 / +10 lines)
Lines 5-11 Link Here
5
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
6
[% INCLUDE 'doc-head-open.inc' %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
<title>
7
<title>
8
MARC Order Accounts
8
MARC order accounts
9
</title>
9
</title>
10
[% INCLUDE 'doc-head-close.inc' %]
10
[% INCLUDE 'doc-head-close.inc' %]
11
</head>
11
</head>
Lines 26-36 MARC Order Accounts Link Here
26
26
27
        [% IF acct_form || delete_confirm %]
27
        [% IF acct_form || delete_confirm %]
28
            [% WRAPPER breadcrumb_item %]
28
            [% WRAPPER breadcrumb_item %]
29
                <a href="/cgi-bin/koha/admin/marc_order_accounts.pl">MARC Order Accounts</a>
29
                <a href="/cgi-bin/koha/admin/marc_order_accounts.pl">MARC order accounts</a>
30
            [% END %]
30
            [% END %]
31
        [% ELSE %]
31
        [% ELSE %]
32
            [% WRAPPER breadcrumb_item bc_active= 1 %]
32
            [% WRAPPER breadcrumb_item bc_active= 1 %]
33
                <span>MARC Order Accounts</span>
33
                <span>MARC order accounts</span>
34
            [% END %]
34
            [% END %]
35
        [% END %]
35
        [% END %]
36
    [% END #/ WRAPPER breadcrumbs %]
36
    [% END #/ WRAPPER breadcrumbs %]
Lines 49-55 MARC Order Accounts Link Here
49
                    </a>
49
                    </a>
50
                    </div>
50
                    </div>
51
                    [% IF ( accounts ) %]
51
                    [% IF ( accounts ) %]
52
                        <h1>Marc Ordering Accounts</h1>
52
                        <h1>Marc ordering accounts</h1>
53
                        <div class="page-section">
53
                        <div class="page-section">
54
                            <table>
54
                            <table>
55
                                <tr>
55
                                <tr>
Lines 77-83 MARC Order Accounts Link Here
77
                        </div>
77
                        </div>
78
                    [% ELSE %]
78
                    [% ELSE %]
79
                        <div class="dialog message">
79
                        <div class="dialog message">
80
                            There are no MARC Order accounts.
80
                            There are no MARC order accounts.
81
                        </div>
81
                        </div>
82
                    [% END %]
82
                    [% END %]
83
                [% END %]
83
                [% END %]
Lines 107-113 MARC Order Accounts Link Here
107
                                    </select>
107
                                    </select>
108
                                </li>
108
                                </li>
109
                                <li>
109
                                <li>
110
                                    <label for="budget_id">Budget: </label>
110
                                    <label for="budget_id">Fund: </label>
111
                                    <select class="select2" name="budget_id" id="budget_id">
111
                                    <select class="select2" name="budget_id" id="budget_id">
112
                                        [% FOREACH budget IN budgets %]
112
                                        [% FOREACH budget IN budgets %]
113
                                            [% IF account.budget_id == budget.budget_id %]
113
                                            [% IF account.budget_id == budget.budget_id %]
Lines 117-123 MARC Order Accounts Link Here
117
                                            [% END %]
117
                                            [% END %]
118
                                        [% END %]
118
                                        [% END %]
119
                                    </select>
119
                                    </select>
120
                                    <div class="hint">This budget will be used as the fallback value if the MARC records do not contain a mapped value for a budget code.</div>
120
                                    <div class="hint">This fund will be used as the fallback value if the MARC records do not contain a mapped value for a fund code.</div>
121
                                </li>
121
                                </li>
122
                                <li>
122
                                <li>
123
                                    <label for="description">Description: </label>
123
                                    <label for="description">Description: </label>
Lines 126-137 MARC Order Accounts Link Here
126
                                <li>
126
                                <li>
127
                                    <label for="download_directory">Download directory: </label>
127
                                    <label for="download_directory">Download directory: </label>
128
                                    <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory | html %]" />
128
                                    <input type="text" name="download_directory" id="download_directory" size="20" value="[% account.download_directory | html %]" />
129
                                    <div class="hint">The download directory specifies the directory in your koha installation that should be searched for new files.</div>
129
                                    <div class="hint">The download directory specifies the directory in your Koha installation that should be searched for new files.</div>
130
                                </li>
130
                                </li>
131
                                <li>
131
                                <li>
132
                                    <label for="match_field">Match field: </label>
132
                                    <label for="match_field">Match field: </label>
133
                                    <input type="text" name="match_field" id="match_field" size="20" value="[% account.match_field | html %]" />
133
                                    <input type="text" name="match_field" id="match_field" size="20" value="[% account.match_field | html %]" />
134
                                    <div class="hint">(Optional): If you have files from multiple vendors in the same file directory, the match field is the field in the marc record that will be checked to see if the file should be processed by this account.</div>
134
                                    <div class="hint">(Optional): If you have files from multiple vendors in the same file directory, the match field is the field in the MARC record that will be checked to see if the file should be processed by this account.</div>
135
                                    <div class="hint">The format for this field is the same as MARCFieldsToOrder - the field and the subfield separated by a dollar sign e.g. 245$a</div>
135
                                    <div class="hint">The format for this field is the same as MARCFieldsToOrder - the field and the subfield separated by a dollar sign e.g. 245$a</div>
136
                                </li>
136
                                </li>
137
                                <li>
137
                                <li>
Lines 347-350 $(document).ready(function() { Link Here
347
});
347
});
348
</script>
348
</script>
349
[% END %]
349
[% END %]
350
[% INCLUDE 'intranet-bottom.inc' %]
350
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref (-1 / +1 lines)
Lines 144-150 Acquisitions: Link Here
144
              choices:
144
              choices:
145
                1: Enable
145
                1: Enable
146
                0:  Disable
146
                0:  Disable
147
            - Enables automatic order line creation from MARC records
147
            - automatic order line creation from MARC records.
148
    Printing:
148
    Printing:
149
        -
149
        -
150
            - Use the
150
            - Use the
(-)a/misc/cronjobs/marc_ordering_process.pl (-4 / +3 lines)
Lines 20-26 Link Here
20
20
21
=head1 NAME
21
=head1 NAME
22
22
23
marc_ordering_process.pl - cron script to retrieve marc files and create order lines
23
marc_ordering_process.pl - cron script to retrieve MARC files and create order lines
24
24
25
=head1 SYNOPSIS
25
=head1 SYNOPSIS
26
26
Lines 32-38 or, in crontab: Link Here
32
32
33
=head1 DESCRIPTION
33
=head1 DESCRIPTION
34
34
35
This script searches for new marc files in an SFTP location
35
This script searches for new MARC files in an SFTP location
36
If there are new files, it stages those files, adds bilbios/items and creates order lines
36
If there are new files, it stages those files, adds bilbios/items and creates order lines
37
37
38
=head1 OPTIONS
38
=head1 OPTIONS
Lines 90-96 my @accounts = Koha::MarcOrderAccounts->search( Link Here
90
)->as_list;
90
)->as_list;
91
91
92
if ( scalar(@accounts) == 0 ) {
92
if ( scalar(@accounts) == 0 ) {
93
    print "No accounts found - you must create a Marc order account for this cronjob to run\n" if $verbose;
93
    print "No accounts found - you must create a MARC order account for this cronjob to run\n" if $verbose;
94
}
94
}
95
95
96
foreach my $acct (@accounts) {
96
foreach my $acct (@accounts) {
97
- 

Return to bug 34355