insert into KICE_QUERY_MODEL (CODE,DESCRIPTION,DESCRIPTOR) VALUES ( 'SYS.QueryModels', 'Query Models', '
<QueryDescriptor name="Query Model Search" defaultElementSetName="Default" baseClassName="com.k_int.codbif.core.ui.search.config.QueryModelHDO">
  <RootScope className="com.k_int.codbif.core.ui.search.config.QueryModelHDO" scopeName="qm" />
  <Bool id="Bool1" op="0">
    <Expression id="attrname.querymodel.Code" name="attrname.querymodel.Code" scope="qm" accessPath="code" typeCode="VARCHAR" editingInfo="text" />
    <Expression id="attrname.querymodel.Description" name="attrname.querymodel.Description" scope="qm" accessPath="description" typeCode="VARCHAR" editingInfo="text" />
  </Bool>
  <ElementSet name="Default">
    <ScopeElement scope="qm" name="colhead.search.ID" visibility="false" />
    <ScopedElement scope="qm" name="colhead.search.ID" accessPath="id" visibility="true" />
    <ScopedElement scope="qm" name="colhead.search.Code" accessPath="code" visibility="true" actionCode="EDIT:0:EDIT_QUERY_MODEL" />
    <ScopedElement scope="qm" name="colhead.search.Description" accessPath="description" visibility="true" />
  </ElementSet>
  <ElementSet name="Count">
    <CountElement scope="root" name="id">id</CountElement>
  </ElementSet>
</QueryDescriptor>
');

insert into KICE_QUERY_MODEL (CODE,DESCRIPTION,DESCRIPTOR) VALUES ( 'SYS.SyncTasks', 'Sync Tasks', '
<QueryDescriptor name="Sync Task Search" defaultElementSetName="Default" baseClassName="com.k_int.ia.harvest.SynchronizationTaskHDO">
  <RootScope className="com.k_int.ia.harvest.SynchronizationTaskHDO" scopeName="synctask" />
  <Bool id="Bool1" op="0">
    <Expression id="attrname.synctask.Code" name="attrname.synctask.Code" scope="synctask" accessPath="id" typeCode="VARCHAR" editingInfo="text" />
  </Bool>
  <ElementSet name="Default">
    <ScopeElement scope="synctask" name="colhead.synctask.ID" visibility="false" />
    <ScopedElement scope="synctask" name="colhead.synctask.ID" accessPath="id" visibility="true" actionCode="EDIT:0" />
    <ScopedElement scope="synctask" name="colhead.synctask.Description" accessPath="description" visibility="true" />
    <ScopedElement scope="synctask" name="colhead.synctask.NextDue" accessPath="nextDue" visibility="true" />
    <ScopedElement scope="synctask" name="colhead.synctask.DefaultTermAuthority" accessPath="defaultTermAuthority" visibility="true" />
  </ElementSet>
  <ElementSet name="Count">
    <CountElement scope="root" name="id">id</CountElement>
  </ElementSet>
</QueryDescriptor>
');

insert into KICE_QUERY_MODEL (CODE,DESCRIPTION,DESCRIPTOR) VALUES ( 'ADM.Resources', 'Search Local Repository', '
<QueryDescriptor name="Resource Search" defaultElementSetName="Default" baseClassName="com.k_int.ia.resources.ResourceHDO">
  <RootScope className="com.k_int.ia.resources.ResourceHDO" scopeName="resource" />
  <JoinScope parentScope="resource" accessPath="categoryPostings" scopeName="category_postings" joinType="left outer"/>

  <Bool id="Bool1" op="0">
    <Expression id="attrname.resource.title" name="attrname.resource.title" scope="resource" accessPath="title" typeCode="VARCHAR" editingInfo="text" />
    <Expression id="attrname.resource.collection" name="attrname.resource.collection" scope="resource" accessPath="collection.name" typeCode="VARCHAR" editingInfo="text" />
  </Bool>
  <ElementSet name="Default">
    <ScopeElement scope="resource" name="inode.colhead.resource.id" visibility="false" />
    <ScopedElement scope="resource" name="inode.colhead.resource.title" accessPath="title" visibility="true" actionCode="EDIT:0"/>
    <ScopedElement scope="resource" name="inode.colhead.resource.id" accessPath="identityString" visibility="true"/>
    <ScopedElement scope="resource" name="inode.colhead.resource.collection" accessPath="collection.name" visibility="true"/>
  </ElementSet>
</QueryDescriptor>


');


insert into KICE_QUERY_MODEL (CODE,DESCRIPTION,DESCRIPTOR) VALUES ( 'ADM.Collections', 'Collections', '
<QueryDescriptor name="Course Search" defaultElementSetName="Default" baseClassName="com.k_int.ia.resources.CollectionHDO">
  <RootScope className="com.k_int.ia.resources.CollectionHDO" scopeName="collection" />

  <Bool id="Bool1" op="0">
    <Expression id="attrname.resource.title" name="title" scope="resource" accessPath="name" typeCode="VARCHAR" editingInfo="text" />
  </Bool>
  <ElementSet name="Default">
    <ScopeElement scope="collection" name="inode.colhead.resource.id" visibility="false" />
    <ScopedElement scope="collection" name="inode.colhead.resource.title" accessPath="name" visibility="true" actionCode="EDIT:0"/>
  </ElementSet>
</QueryDescriptor>
');
