[Koha-bugs] [Bug 8612] CSV export profile to have custom fields in export csv basket

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 4 09:16:43 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8612

Josef Moravec <josef.moravec at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #61264|0                           |1
        is obsolete|                            |

--- Comment #84 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 63048
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=63048&action=edit
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 at gmail.com>
Signed-off-by: mehdi <mehdi.hamidi at inlibro.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list