LP#1727487 Items out display uses collapsed display fields
authorBill Erickson <berickxx@gmail.com>
Thu, 26 Oct 2017 19:14:15 +0000 (15:14 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 28 Feb 2018 21:17:32 +0000 (16:17 -0500)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/web/js/ui/default/staff/circ/patron/items_out.js

index e3e4617..b209d18 100644 (file)
@@ -128,16 +128,16 @@ function($scope , $q , $routeParams , $timeout , egCore , egUser , patronSvc ,
             circ.circ_lib(egCore.org.get(circ.circ_lib())); // local fleshing
 
             // Translate bib display field JSON blobs to JS.
+            // Collapse multi/array fields down to comma-separated strings.
             egBibDisplay.mwdeJSONToJS(
-                circ.target_copy().call_number().record().wide_display_entry());
+                circ.target_copy().call_number().record().wide_display_entry(), true);
 
             if (circ.target_copy().call_number().id() == -1) {
                 // dummy-up a record for precat items
                 circ.target_copy().call_number().record().wide_display_entry({
                     title : function() {return circ.target_copy().dummy_title()},
                     author : function() {return circ.target_copy().dummy_author()},
-                    // ISBN is a multi=true field.
-                    isbn : function() {return [circ.target_copy().dummy_isbn()]}
+                    isbn : function() {return circ.target_copy().dummy_isbn()}
                 })
             }