Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Jonathan Druart 3cf6d99948
Bug 24163: Allow to define CSV profile for late orders export
This new enhancement adds the ability to create a CSV profile for the late
orders export.
Prior to this, the CSV profile was hardcoded in a template and not
editable (unless you modify the .tt file of course).

The main difficulty of the request was to make the multiple claims dates
accessible from the CSV profile. So far we only accept columns from the
database. However we would like to use the Koha::Acquisition::Order
object to make things easier (it had a ->claims method to access the
different claims).
To acchieve this, we are going to accept the TT syntax for that CSV profile.
It means that only CSV profiles created for 'late_orders' will have the
capability to use the TT syntax (can be extended later of course if
needed).
The alternative was to use specific placeholders, like %claims_count%,
%claimed_date%, but it sounded more powerful and flexible to allow the
TT syntax instead.

Note that the former export (template based) still exists and is the
default option.

Test plan:
0. Apply the patches and execute the update database entry
1. Create some orders, close the basket
2. Claim some of the orders
3. Note the new button at the bottom of the table that have several
entries.
=> The first entry will generate a CSV file using the previous method
=> The second entry will generate it using the new CSV profile, note
that the number of claims as well as the different claims date are
displayed.

4. Bonus point: Edit the CSV profile (Home › Tools › CSV export
profiles) that is named "Late orders (csv profile)", or create a new
one, and modify it.
Export the late orders using this CSV profile and confirm that the
generated CSV file is the one you expect.

Sponsored-by: Institute of Technology Tralee
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Angela O'Connor Desmond <angela.oconnordesmond@staff.ittralee.ie>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-05-05 11:08:21 +01:00
..
access_files.tt
automatic_item_modification_by_age.tt
batch_delete_records.tt
batch_extend_due_dates.tt Bug 25020: Preserve time part when batch extending due dates 2020-04-03 14:29:00 +01:00
batch_record_modification.tt Bug 18127: Add missing html filters 2020-03-10 15:20:18 +00:00
batchMod-del.tt
batchMod-edit.tt Bug 25013: Fix capitalization: Edit Items on batch item edit 2020-04-03 14:26:34 +01:00
batchMod.tt
cleanborrowers.tt
csv-profiles.tt Bug 24163: Allow to define CSV profile for late orders export 2020-05-05 11:08:21 +01:00
export.tt Bug 14647: Make spelling in file format pull downs match 2020-02-20 08:59:41 +00:00
holidays.tt
import_borrowers.tt Bug 23473: (follow-up) Fix QA complaints (tabs, filters, Dumper) 2020-03-27 12:23:17 +00:00
inventory.tt
koha-news.tt Bug 23794: Convert OpacMainUserBlock system preference to news block 2020-05-01 08:17:23 +01:00
letter.tt
manage-marc-import.tt Bug 14369: Only show 'Create labels' link on staged records import when status is imported 2020-04-21 12:28:56 +01:00
marc_modification_templates.tt Bug 17510: enable use of subfield 0 in MMT actions 2020-02-21 16:01:34 +00:00
modborrowers.tt Bug 20443: Move GetBorrowerAttributes to Koha::Patron->extended_attributes 2020-03-23 13:39:25 +00:00
overduerules.tt
picture-upload.tt
preview_letter.tt
quotes-upload.tt
quotes.tt Bug 24662: Remove global variables MSG_* from datatables.inc 2020-03-11 13:49:15 +00:00
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt Bug 23753: Add missing humanMsg library to pages using background job JavaScript 2020-03-02 09:49:56 +00:00
stockrotation.tt
tools-home.tt Bug 9422: (RM follow-up) Rebase Correction 2020-04-03 14:26:33 +01:00
upload-images.tt Bug 23753: Add missing humanMsg library to pages using background job JavaScript 2020-03-02 09:49:56 +00:00
upload.tt
viewlog.tt Bug 25249: (bug 19791 follow-up) Display Circulation log when showing patron's log 2020-04-27 11:41:49 +01:00