LP#1419813 Fix default joins for config.rule_age_hold_protection.
authorChris Sharp <csharp@georgialibraries.org>
Mon, 9 Feb 2015 14:24:11 +0000 (09:24 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 19 Feb 2015 15:46:58 +0000 (15:46 +0000)
config.rule_age_hold_protection had a "has_a" relationship
to several copy and copy-like sources when age protection
is optional.  Changing those to "might_have" to allow left
joins by default.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/examples/fm_IDL.xml

index cb30246..4117732 100644 (file)
@@ -1708,7 +1708,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
                        <link field="marc_bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
                        <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
-                       <link field="age_hold_protect_rule" reltype="has_a" key="id" map="" class="crahp"/>
+                       <link field="age_hold_protect_rule" reltype="might_have" key="id" map="" class="crahp"/>
             <link field="transit_range" reltype="has_a" key="id" map="" class="aout"/>
                </links>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
@@ -4891,7 +4891,7 @@ SELECT  usr,
                        <field reporter:label="Statistical Category Entries" name="stat_cat_entries" oils_persist:virtual="true" reporter:datatype="link"/>
                </fields>
                <links>
-                       <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
+                       <link field="age_protect" reltype="might_have" key="id" map="" class="crahp"/>
                        <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
                        <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
                        <link field="editor" reltype="has_a" key="id" map="" class="au"/>
@@ -6522,7 +6522,7 @@ SELECT  usr,
                        <field reporter:label="Last Captured Hold" name="last_captured_hold" oils_persist:virtual="true" reporter:datatype="link"/>
                </fields>
                <links>
-                       <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
+                       <link field="age_protect" reltype="might_have" key="id" map="" class="crahp"/>
                        <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
                        <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
                        <link field="editor" reltype="has_a" key="id" map="" class="au"/>
@@ -10867,7 +10867,7 @@ SELECT  usr,
             <link field="id" reltype="has_a" key="id" map="" class="acp"/>
             <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
             <link field="creator" reltype="has_a" key="id" map="" class="au"/>
-            <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
+            <link field="age_protect" reltype="might_have" key="id" map="" class="crahp"/>
             <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
             <link field="stat_cat_1" reltype="might_have" key="id" map="" class="rsce1"/>
            <link field="stat_cat_2" reltype="might_have" key="id" map="" class="rsce2"/>