Lines 12-19
Link Here
|
12 |
) |
12 |
) |
13 |
}} |
13 |
}} |
14 |
<ol> |
14 |
<ol> |
15 |
<li>Column headings row</li> |
15 |
<li>{{ $__("Column headings row") }}</li> |
16 |
<li>Title data row</li> |
16 |
<li>{{ $__("Title data row") }}</li> |
17 |
</ol> |
17 |
</ol> |
18 |
</li> |
18 |
</li> |
19 |
</ul> |
19 |
</ul> |
Lines 141-176
export default {
Link Here
|
141 |
let message = "" |
141 |
let message = "" |
142 |
if (success.job_ids) { |
142 |
if (success.job_ids) { |
143 |
if (success.job_ids.length > 1) { |
143 |
if (success.job_ids.length > 1) { |
144 |
message += this.$__( |
144 |
message += `<p style='font-weight: normal; font-size: medium; margin-top: 1em;'>${this.$__( |
145 |
"<p style='font-weight: normal; font-size: medium; margin-top: 1em;'>Your file was too large to process in one job, the file has been split into %s jobs to meet the maximum size limits.</p>" |
145 |
"Your file was too large to process in one job, the file has been split into %s jobs to meet the maximum size limits." |
146 |
).format(success.job_ids.length) |
146 |
).format(success.job_ids.length)}</p>` |
147 |
} |
147 |
} |
148 |
success.job_ids.forEach((job, i) => { |
148 |
success.job_ids.forEach((job, i) => { |
149 |
message += this.$__( |
149 |
message += `<li>${this.$__( |
150 |
'<li>Job %s for uploaded file has been queued, <a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=%s" target="_blank">click here</a> to check its progress.</li>' |
150 |
"Job %s for uploaded file has been queued" |
151 |
).format(i + 1, job) |
151 |
).format( |
|
|
152 |
i + 1, |
153 |
job |
154 |
)}, <a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=%s" target="_blank">${this.$__( |
155 |
"see progress" |
156 |
)}</a></li>` |
152 |
}) |
157 |
}) |
153 |
this.setMessage(message, true) |
158 |
this.setMessage(message, true) |
154 |
} |
159 |
} |
155 |
if (success.warnings.invalid_columns) { |
160 |
if (success.warnings.invalid_columns) { |
156 |
message += this.$__( |
161 |
message += `<p style='font-weight: normal; font-size: medium; margin-top: 1em;'>${this.$__( |
157 |
"<p style='font-weight: normal; font-size: medium; margin-top: 1em;'>Information:</p>" |
162 |
"Information:" |
158 |
) |
163 |
)}</p>` |
159 |
message += this.$__( |
164 |
message += `<p>${this.$__( |
160 |
"<p>Additional columns were detected in your report, please see the list below:</p>" |
165 |
"Additional columns were detected in your report, please see the list below:" |
161 |
) |
166 |
)}</p>` |
162 |
success.warnings.invalid_columns.forEach(column => { |
167 |
success.warnings.invalid_columns.forEach(column => { |
163 |
message += this.$__(`<li>%s</li>`).format(column) |
168 |
message += `<li>${column}</li>` |
164 |
}) |
169 |
}) |
165 |
message += this.$__( |
170 |
message += `<p style='margin-top: 0.1em;'>${this.$__( |
166 |
"<p style='margin-top: 0.1em;'>The data in these columns will not be imported.</p>" |
171 |
"The data in these columns will not be imported." |
167 |
) |
172 |
)}</p>` |
168 |
this.setMessage(message, true) |
173 |
this.setMessage(message, true) |
169 |
} |
174 |
} |
170 |
if (success.invalid_filetype) { |
175 |
if (success.invalid_filetype) { |
171 |
message += this.$__( |
176 |
message += `<p>${this.$__( |
172 |
"<p>The file must be in .tsv or .csv format, please convert your file and try again.</p>" |
177 |
"The file must be in .tsv or .csv format, please convert your file and try again." |
173 |
) |
178 |
)}</p>` |
174 |
setWarning(message) |
179 |
setWarning(message) |
175 |
} |
180 |
} |
176 |
}, |
181 |
}, |
177 |
- |
|
|