[Koha-bugs] [Bug 16626] New: downloaded files should have descriptive names including timestamps.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue May 31 21:46:04 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16626
Bug ID: 16626
Summary: downloaded files should have descriptive names
including timestamps.
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: gmcharlt at gmail.com
Reporter: barton at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
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.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list