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

--- Comment #32 from Lari Taskula <[email protected]> ---
Added four patches containing a very basic functionality for exporting patron
related data. It iterates DBIx Borrower relationships and returns a huge
hashref in the following format:

>{
>  "Accountline": [
>    { "accountline_id": 1, "borrowernumber": 1481, ... },
>    { "accountline_id": 2, "borrowernumber": 1481, ... }
>  ],
>  "Borrower": { "borrowernumber": 1481, "firstname": "Export", ... },
>  ...,
>  "Virtualshelve": [
>    { "shelfnumber": 1, "owner": 1481, ... },
>    { "shelfnumber": 2, "owner": 1481, ... }
>  ]
>}

Returns the same thing from REST API, from these two endpoints:

GET /api/v1/patrons/123/export        (privileged)
GET /api/v1/public/patrons/123/export (unprivileged)

So it does not yet follow our terminology rules nor add any pagination.

Anyway, thoughts about the DBIx relationship approach?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to