LP1796945: More Accurate Joins in AngularJS IDL
authorJason Boyer <jboyer@library.in.gov>
Mon, 28 Jan 2019 14:45:35 +0000 (09:45 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 13 Sep 2019 20:52:36 +0000 (16:52 -0400)
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 78faa98..a5fe5f2 100644 (file)
@@ -328,6 +328,7 @@ angular.module('egCoreMod')
 
         return angular.extend( args, {
             idl     : service[cls],
+            jtype   : (args.link && args.link.reltype == 'has_a') ? 'inner' : 'left',
             uplink  : args.link,
             classname: cls,
             struct  : n,