| Summary: | downloaded files should have descriptive names including timestamps. | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Barton Chittenden <barton> |
| Component: | Architecture, internals, and plumbing | Assignee: | Galen Charlton <gmcharlt> |
| Status: | NEW --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | ||
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
When downloading exported marc records, creator card batches, creator label batches or report results, the resulting file names are not unique, and none of the names is terribly descriptive. I would suggest a library function that emits a filename formatted something like this ${description}-${date}.${extension} Where ${description} is exported marc => "koha_export.$START-$END" $START => first biblionumber in file $END => last biblionumber in file (range is omitted if there's only one bib) card batches => "creator_batch.$batchnumber" label batches => "label_batch.$batchnumber" report => "report.${report.id}.${sanitized_report_name}" ${sanitized_report_name} => shell friendly, i.e. s/[^A-Za-z0-9]+/_/g ${date} --iso-8601 formatted, shell friendly. ${extension} csv, pdf, marc, marcxml, etc.