LP1766982 - CSV downloads contain the string 'null' for null values.
authorgcollum <gcollum@gmail.com>
Fri, 18 May 2018 23:57:42 +0000 (19:57 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 22 Feb 2019 14:24:00 +0000 (09:24 -0500)
commitdddcc7ff78049101ffa8afcf8415f740f5f34b73
tree4b491c0ab5b11109296f3377b43909369468d3f1
parentfaa1458d80a94b3fc60a2065dbc1db1697c9044e
LP1766982 - CSV downloads contain the string 'null' for null values.

Adds a check for null and undefined in the getItemTextContent function in grid.js which is called by both the code to download grid data as CSV and for printing grids.

To test
1. Place holds on a couple of titles, one of which has no author. In the test data TCN 226, The Crow, has no author data.
2. Pull up the Holds Pull List.
3. Download Full CSV - to download the CSV file and view it in a spreadsheet or text editor looking specifically at the Author column.
4. Print Full Grid - to view the data in a printout, since this function also affects printing.
5. Go back to the Holds Pull List and click on one of the barcodes under the Current Copy column.
6. Click on the List View.
7. Download Full CSV - open the resulting file to inspect the Alert Message data.
8. Apply patch and repeat steps 2-7.

Signed-off-by: gcollum <gcollum@gmail.com>
Open-ILS/web/js/ui/default/staff/services/grid.js