Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Blou 3c83e11786 Bug 8612: Use CSV profile for exporting basket
This patch allows the user to use a CSV export profile to create the fields to export the basket as CSV in a basket page.

Test plan:
1) Apply the patch
2) Go to Tools › CSV export profiles and create a profile of type "SQL for basket export in acquisition"
  example:
  biblionumber=biblio.biblionumber|auteur=biblio.author|titre=biblio.title|date=biblioitems.copyrightdate|editeur=biblioitems.publishercode|isbn=biblioitems.isbn|quantite=aqorders.quantity|prix=aqorders.rrp|panier=aqorders.basketno
3) In acquisition module, create a new basket and add an order to the basket
4) On basket detail page, there should be the split button labelled "Export to CSV"
5) Try to use the button and export CSV with your CSV profile you defined in step 2
6) Validate the CSV file.
7) Repeat 4-6 with a closed basket.
    a) close the basket
    b) View the basket
    c) validate that there is an export button
    d) test it with an export
8) prove t/db_dependent/Acquisition/GetBasketAsCSV.t t/db_dependent/Koha/CsvProfiles.t

Initial work:

Sponsored by: CCSR

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: mehdi <mehdi.hamidi@inlibro.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-06-05 12:02:08 -03:00
..
csv Bug 16914: Rely on TT for newlines 2016-12-22 20:26:54 +00:00
tables Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
acqui-home.tt Bug 15758: Koha::Libraries - Remove GetBranchName 2016-09-08 14:36:01 +00:00
addorder.tt
addorderiso2709.tt Bug 15503 (QA Followup) 2017-02-14 15:11:03 +00:00
ajax.tt
basket.tt Bug 8612: Use CSV profile for exporting basket 2017-06-05 12:02:08 -03:00
basketgroup.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
basketheader.tt Bug 15758: Koha::Libraries - Remove GetBranchesLoop 2016-09-08 14:36:02 +00:00
booksellers.tt Bug 4969: Do not display the new link if we are seeing all baskets of a given vendor 2017-03-31 13:51:49 +00:00
cancelorder.tt
edi_ean.tt Bug 7736: (QA followup) Add missing body id and class 2016-04-04 20:43:01 +00:00
edifactmsgs.tt Bug 16239 [CSS Follow-up] Upgrade Bootstrap in the staff client 2017-01-13 14:41:23 +00:00
edimsg.tt Bug 16738 - Improve EDIFACT messages template 2016-09-09 12:54:56 +00:00
histsearch.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
invoice-files.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
invoice.tt Bug 11122: Follow up - Fix some display issues and typos 2017-06-05 11:48:16 -03:00
invoices.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
lateorders.tt Bug 17446: Typo seleted 2016-10-11 16:54:10 +00:00
modordernotes.tt
neworderbiblio.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
neworderempty.tt Bug 18525: (bug 14828 follow-up) FIX ordering from suggestion when item-level_itypes = biblio 2017-05-12 08:50:40 -04:00
neworderempty_duplicate.tt
newordersubscription.tt Bug 9896 - Show vendor in subscription search when creating an order for a subscription 2016-09-25 14:09:56 +00:00
newordersuggestion.tt Bug 17899 - Show only mine does not work in newordersuggestion.pl 2017-01-20 14:10:36 +00:00
ordered.tt Bug 17771: Add link to bibliographic record on spent/ordered lists in acquisitions 2017-01-19 11:44:29 +00:00
orderreceive.tt Bug 14541: Do not truncate tax rate values 2016-12-09 16:29:33 +00:00
parcel.tt Bug 11122: Follow up - Fix some display issues and typos 2017-06-05 11:48:16 -03:00
parcels.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
spent.tt Bug 17771 [QA Followup] - Tidy table html 2017-01-19 11:48:55 +00:00
supplier.tt Bug 17691: Does not repeat "subscriptions" 2017-01-19 13:37:32 +00:00
transferorder.tt Bug 11122: Follow up - Fix some display issues and typos 2017-06-05 11:48:16 -03:00
uncertainprice.tt Bug 11122: Follow up - Fix some display issues and typos 2017-06-05 11:48:16 -03:00
z3950_search.tt Bug 17487: Styling moved from style attribute into staff-global.css 2017-01-20 14:11:55 +00:00