LP1796945: More Accurate Joins in AngularJS IDL user/jboyer/lp1796945_report_joins
authorJason Boyer <jboyer@library.in.gov>
Mon, 28 Jan 2019 14:45:35 +0000 (09:45 -0500)
committerJason Boyer <jboyer@library.in.gov>
Mon, 28 Jan 2019 14:45:35 +0000 (09:45 -0500)
Currently all joins of all classes are hard-coded to
inner, which is clearly sub-optimal. This branch
tries to correct this by looking at the reltype param
on links.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Open-ILS/web/js/ui/default/staff/services/idl.js

index 629e595..a5fe5f2 100644 (file)
@@ -328,7 +328,7 @@ angular.module('egCoreMod')
 
         return angular.extend( args, {
             idl     : service[cls],
-            jtype   : 'inner',
+            jtype   : (args.link && args.link.reltype == 'has_a') ? 'inner' : 'left',
             uplink  : args.link,
             classname: cls,
             struct  : n,