tripal_chado.views_default.inc 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192
  1. <?php
  2. /**
  3. * @file
  4. * Describes core default views
  5. */
  6. /**
  7. * Describes core default views
  8. *
  9. * @ingroup tripal
  10. */
  11. function tripal_chado_views_default_views() {
  12. $views = array();
  13. // Default Tripal custom tables view.
  14. $view = tripal_chado_defaultview_admin_custom_tables();
  15. $views[$view->name] = $view;
  16. // Default Trial materialized views view.
  17. $view = tripal_chado_defaultview_admin_mviews();
  18. $views[$view->name] = $view;
  19. // Default Tripal admin view: CVs.
  20. $view = tripal_chado_defaultview_admin_cvs_listing();
  21. $view = tripal_make_view_compatible_with_external($view);
  22. $views[$view->name] = $view;
  23. // Default Tripal admin view: CV Terms.
  24. $view = tripal_chado_defaultview_admin_cvterms_listing();
  25. $view = tripal_make_view_compatible_with_external($view);
  26. $views[$view->name] = $view;
  27. // Default Tripal Admin View: DB
  28. $view = tripal_chado_defaultview_admin_db_listing();
  29. $view = tripal_make_view_compatible_with_external($view);
  30. $views[$view->name] = $view;
  31. // Default Tripal Admin View: DB References
  32. $view = tripal_chado_defaultview_admin_dbxref_listing();
  33. $view = tripal_make_view_compatible_with_external($view);
  34. $views[$view->name] = $view;
  35. return $views;
  36. }
  37. /**
  38. * Describes the custom tables administration view.
  39. *
  40. * @ingroup tripal
  41. */
  42. function tripal_chado_defaultview_admin_custom_tables() {
  43. $view = new view();
  44. $view->name = 'tripal_admin_custom_table';
  45. $view->description = 'DO NOT DISABLE';
  46. $view->tag = 'tripal admin';
  47. $view->base_table = 'tripal_custom_tables';
  48. $view->human_name = 'Chado Custom Table (Admin)';
  49. $view->core = 7;
  50. $view->api_version = '3.0';
  51. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  52. /* Display: Master */
  53. $handler = $view->new_display('default', 'Master', 'default');
  54. $handler->display->display_options['title'] = 'Custom Tables';
  55. $handler->display->display_options['use_more_always'] = FALSE;
  56. $handler->display->display_options['access']['type'] = 'none';
  57. $handler->display->display_options['cache']['type'] = 'none';
  58. $handler->display->display_options['query']['type'] = 'views_query';
  59. $handler->display->display_options['exposed_form']['type'] = 'basic';
  60. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Filter';
  61. $handler->display->display_options['pager']['type'] = 'full';
  62. $handler->display->display_options['pager']['options']['items_per_page'] = '25';
  63. $handler->display->display_options['style_plugin'] = 'table';
  64. /* Header: Global: Action Links */
  65. $handler->display->display_options['header']['action_links_area']['id'] = 'action_links_area';
  66. $handler->display->display_options['header']['action_links_area']['table'] = 'views';
  67. $handler->display->display_options['header']['action_links_area']['field'] = 'action_links_area';
  68. $handler->display->display_options['header']['action_links_area']['label'] = 'Action Links';
  69. $handler->display->display_options['header']['action_links_area']['empty'] = TRUE;
  70. $handler->display->display_options['header']['action_links_area']['link-1'] = array(
  71. 'label-1' => 'Add Custom Table',
  72. 'path-1' => 'admin/tripal/storage/chado/custom_tables/new',
  73. );
  74. $handler->display->display_options['header']['action_links_area']['link-2'] = array(
  75. 'label-2' => '',
  76. 'path-2' => '',
  77. );
  78. $handler->display->display_options['header']['action_links_area']['link-3'] = array(
  79. 'label-3' => '',
  80. 'path-3' => '',
  81. );
  82. $handler->display->display_options['header']['action_links_area']['link-4'] = array(
  83. 'label-4' => '',
  84. 'path-4' => '',
  85. );
  86. /* Field: Tripal Custom Tables: Custom Table ID */
  87. $handler->display->display_options['fields']['table_id']['id'] = 'table_id';
  88. $handler->display->display_options['fields']['table_id']['table'] = 'tripal_custom_tables';
  89. $handler->display->display_options['fields']['table_id']['field'] = 'table_id';
  90. $handler->display->display_options['fields']['table_id']['label'] = 'ID';
  91. $handler->display->display_options['fields']['table_id']['element_class'] = 'extra-short-column';
  92. $handler->display->display_options['fields']['table_id']['element_label_class'] = 'extra-short-column';
  93. $handler->display->display_options['fields']['table_id']['element_label_colon'] = FALSE;
  94. $handler->display->display_options['fields']['table_id']['separator'] = '';
  95. /* Field: Tripal Custom Tables: Table Name */
  96. $handler->display->display_options['fields']['table_name']['id'] = 'table_name';
  97. $handler->display->display_options['fields']['table_name']['table'] = 'tripal_custom_tables';
  98. $handler->display->display_options['fields']['table_name']['field'] = 'table_name';
  99. $handler->display->display_options['fields']['table_name']['label'] = 'Name';
  100. $handler->display->display_options['fields']['table_name']['alter']['make_link'] = TRUE;
  101. $handler->display->display_options['fields']['table_name']['alter']['path'] = 'admin/tripal/storage/chado/custom_tables/view/[table_id]';
  102. /* Field: Tripal Custom Tables: Materialized View ID */
  103. $handler->display->display_options['fields']['mview_id']['id'] = 'mview_id';
  104. $handler->display->display_options['fields']['mview_id']['table'] = 'tripal_custom_tables';
  105. $handler->display->display_options['fields']['mview_id']['field'] = 'mview_id';
  106. $handler->display->display_options['fields']['mview_id']['label'] = 'Is MView';
  107. $handler->display->display_options['fields']['mview_id']['alter']['alter_text'] = TRUE;
  108. $handler->display->display_options['fields']['mview_id']['alter']['text'] = 'Yes';
  109. $handler->display->display_options['fields']['mview_id']['hide_empty'] = TRUE;
  110. $handler->display->display_options['fields']['mview_id']['empty_zero'] = TRUE;
  111. /* Field: Global: Custom text */
  112. $handler->display->display_options['fields']['nothing']['id'] = 'nothing';
  113. $handler->display->display_options['fields']['nothing']['table'] = 'views';
  114. $handler->display->display_options['fields']['nothing']['field'] = 'nothing';
  115. $handler->display->display_options['fields']['nothing']['label'] = 'Edit Link';
  116. $handler->display->display_options['fields']['nothing']['exclude'] = TRUE;
  117. $handler->display->display_options['fields']['nothing']['alter']['text'] = 'Edit';
  118. $handler->display->display_options['fields']['nothing']['alter']['make_link'] = TRUE;
  119. $handler->display->display_options['fields']['nothing']['alter']['path'] = 'admin/tripal/storage/chado/custom_tables/edit/[table_id]';
  120. /* Field: Global: Custom text */
  121. $handler->display->display_options['fields']['nothing_1']['id'] = 'nothing_1';
  122. $handler->display->display_options['fields']['nothing_1']['table'] = 'views';
  123. $handler->display->display_options['fields']['nothing_1']['field'] = 'nothing';
  124. $handler->display->display_options['fields']['nothing_1']['label'] = 'Delete Link';
  125. $handler->display->display_options['fields']['nothing_1']['exclude'] = TRUE;
  126. $handler->display->display_options['fields']['nothing_1']['alter']['text'] = 'Delete';
  127. $handler->display->display_options['fields']['nothing_1']['alter']['make_link'] = TRUE;
  128. $handler->display->display_options['fields']['nothing_1']['alter']['path'] = 'admin/tripal/storage/chado/custom_tables/delete/[table_id]';
  129. /* Field: Global: Custom text */
  130. $handler->display->display_options['fields']['nothing_2']['id'] = 'nothing_2';
  131. $handler->display->display_options['fields']['nothing_2']['table'] = 'views';
  132. $handler->display->display_options['fields']['nothing_2']['field'] = 'nothing';
  133. $handler->display->display_options['fields']['nothing_2']['label'] = '';
  134. $handler->display->display_options['fields']['nothing_2']['alter']['text'] = '[nothing] [nothing_1]';
  135. $handler->display->display_options['fields']['nothing_2']['element_label_colon'] = FALSE;
  136. /* Filter criterion: Tripal Custom Tables: Table Name */
  137. $handler->display->display_options['filters']['table_name']['id'] = 'table_name';
  138. $handler->display->display_options['filters']['table_name']['table'] = 'tripal_custom_tables';
  139. $handler->display->display_options['filters']['table_name']['field'] = 'table_name';
  140. $handler->display->display_options['filters']['table_name']['exposed'] = TRUE;
  141. $handler->display->display_options['filters']['table_name']['expose']['operator_id'] = 'table_name_op';
  142. $handler->display->display_options['filters']['table_name']['expose']['label'] = 'Table Name';
  143. $handler->display->display_options['filters']['table_name']['expose']['operator'] = 'table_name_op';
  144. $handler->display->display_options['filters']['table_name']['expose']['identifier'] = 'table_name';
  145. $handler->display->display_options['filters']['table_name']['expose']['remember_roles'] = array(
  146. 2 => '2',
  147. 1 => 0,
  148. 3 => 0,
  149. );
  150. /* Display: Page */
  151. $handler = $view->new_display('page', 'Page', 'page');
  152. $handler->display->display_options['path'] = 'admin/tripal/storage/chado/custom_tables/tables';
  153. $handler->display->display_options['menu']['type'] = 'default tab';
  154. $handler->display->display_options['menu']['title'] = 'Custom Tables';
  155. $handler->display->display_options['menu']['description'] = 'A list of existing custom tables';
  156. $handler->display->display_options['menu']['weight'] = '-10';
  157. $handler->display->display_options['menu']['name'] = 'management';
  158. $handler->display->display_options['menu']['context'] = 0;
  159. $handler->display->display_options['menu']['context_only_inline'] = 0;
  160. $handler->display->display_options['tab_options']['weight'] = '0';
  161. return $view;
  162. }
  163. /**
  164. * Describes the materialized views administration view.
  165. *
  166. * @ingroup tripal
  167. */
  168. function tripal_chado_defaultview_admin_mviews() {
  169. $view = new view();
  170. $view->name = 'tripal_admin_mviews';
  171. $view->description = 'DO NOT DISABLE';
  172. $view->tag = 'tripal admin';
  173. $view->base_table = 'tripal_mviews';
  174. $view->human_name = 'Chado Materialized View (Admin)';
  175. $view->core = 7;
  176. $view->api_version = '3.0';
  177. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  178. /* Display: Master */
  179. $handler = $view->new_display('default', 'Master', 'default');
  180. $handler->display->display_options['title'] = 'Materialized Views';
  181. $handler->display->display_options['use_more_always'] = FALSE;
  182. $handler->display->display_options['access']['type'] = 'none';
  183. $handler->display->display_options['cache']['type'] = 'none';
  184. $handler->display->display_options['query']['type'] = 'views_query';
  185. $handler->display->display_options['exposed_form']['type'] = 'basic';
  186. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Filter';
  187. $handler->display->display_options['pager']['type'] = 'full';
  188. $handler->display->display_options['pager']['options']['items_per_page'] = '25';
  189. $handler->display->display_options['style_plugin'] = 'table';
  190. $handler->display->display_options['style_options']['columns'] = array(
  191. 'mview_id' => 'mview_id',
  192. 'name' => 'name',
  193. 'mv_table' => 'mv_table',
  194. 'comment' => 'comment',
  195. 'last_update' => 'last_update',
  196. 'status' => 'status',
  197. );
  198. $handler->display->display_options['style_options']['default'] = 'mview_id';
  199. $handler->display->display_options['style_options']['info'] = array(
  200. 'mview_id' => array(
  201. 'sortable' => 1,
  202. 'default_sort_order' => 'asc',
  203. 'align' => '',
  204. 'separator' => '',
  205. 'empty_column' => 0,
  206. ),
  207. 'name' => array(
  208. 'sortable' => 1,
  209. 'default_sort_order' => 'asc',
  210. 'align' => '',
  211. 'separator' => '',
  212. 'empty_column' => 0,
  213. ),
  214. 'mv_table' => array(
  215. 'sortable' => 1,
  216. 'default_sort_order' => 'asc',
  217. 'align' => '',
  218. 'separator' => '',
  219. 'empty_column' => 0,
  220. ),
  221. 'comment' => array(
  222. 'sortable' => 0,
  223. 'default_sort_order' => 'asc',
  224. 'align' => '',
  225. 'separator' => '',
  226. 'empty_column' => 0,
  227. ),
  228. 'last_update' => array(
  229. 'sortable' => 1,
  230. 'default_sort_order' => 'asc',
  231. 'align' => '',
  232. 'separator' => '',
  233. 'empty_column' => 0,
  234. ),
  235. 'status' => array(
  236. 'sortable' => 1,
  237. 'default_sort_order' => 'asc',
  238. 'align' => '',
  239. 'separator' => '',
  240. 'empty_column' => 0,
  241. ),
  242. );
  243. /* Header: Global: Text area */
  244. $handler->display->display_options['header']['area']['id'] = 'area';
  245. $handler->display->display_options['header']['area']['table'] = 'views';
  246. $handler->display->display_options['header']['area']['field'] = 'area';
  247. $handler->display->display_options['header']['area']['label'] = 'Description';
  248. $handler->display->display_options['header']['area']['empty'] = TRUE;
  249. $handler->display->display_options['header']['area']['content'] = '<p>Materialized Views (MViews) are custom tables populated with a defined SQL statement. Because Chado is highly normalized and highly constrained it serves as a wonderful data storage platform, but unfortunately some queries may be slow. MViews alleviate slowness by aggregating data into tables that are more easy to query. Use MViews to create tables for custom search pages or custom Tripal module development.</p>
  250. <p>MViews behaves in the following way:</p>
  251. <ul>
  252. <li>The SQL statement defined for an MVIEW will be used to populate the table</li>
  253. <li>Altering the table structure of an MView will cause the MView table to be dropped and recreated. All records in the MView will be lost.</li>
  254. <li>Altering the query of an existing view will not change the MView table. No records will be lost.</li>
  255. <li>Repopulating an MView that is already populated will result in replacement of all records.</li>
  256. <li>A database transaction will be used when populating MViews. Therefore replacement of records does not occur until the query completes. Any search forms or pages dependent on the MView will continue to function.</li>
  257. </ul>';
  258. $handler->display->display_options['header']['area']['format'] = 'full_html';
  259. /* Header: Global: Action Links */
  260. $handler->display->display_options['header']['action_links_area']['id'] = 'action_links_area';
  261. $handler->display->display_options['header']['action_links_area']['table'] = 'views';
  262. $handler->display->display_options['header']['action_links_area']['field'] = 'action_links_area';
  263. $handler->display->display_options['header']['action_links_area']['label'] = 'Action Links';
  264. $handler->display->display_options['header']['action_links_area']['link-1'] = array(
  265. 'label-1' => 'Add Materialized View',
  266. 'path-1' => 'admin/tripal/storage/chado/mviews/new',
  267. );
  268. $handler->display->display_options['header']['action_links_area']['link-2'] = array(
  269. 'label-2' => '',
  270. 'path-2' => '',
  271. );
  272. $handler->display->display_options['header']['action_links_area']['link-3'] = array(
  273. 'label-3' => '',
  274. 'path-3' => '',
  275. );
  276. $handler->display->display_options['header']['action_links_area']['link-4'] = array(
  277. 'label-4' => '',
  278. 'path-4' => '',
  279. );
  280. /* Field: Tripal Materialized Views: Materialized View ID */
  281. $handler->display->display_options['fields']['mview_id']['id'] = 'mview_id';
  282. $handler->display->display_options['fields']['mview_id']['table'] = 'tripal_mviews';
  283. $handler->display->display_options['fields']['mview_id']['field'] = 'mview_id';
  284. $handler->display->display_options['fields']['mview_id']['label'] = '';
  285. $handler->display->display_options['fields']['mview_id']['element_class'] = 'extra-short-column';
  286. $handler->display->display_options['fields']['mview_id']['element_label_class'] = 'extra-short-column';
  287. $handler->display->display_options['fields']['mview_id']['element_label_colon'] = FALSE;
  288. $handler->display->display_options['fields']['mview_id']['separator'] = '';
  289. /* Field: Tripal Materialized Views: Name */
  290. $handler->display->display_options['fields']['name']['id'] = 'name';
  291. $handler->display->display_options['fields']['name']['table'] = 'tripal_mviews';
  292. $handler->display->display_options['fields']['name']['field'] = 'name';
  293. $handler->display->display_options['fields']['name']['alter']['make_link'] = TRUE;
  294. $handler->display->display_options['fields']['name']['alter']['path'] = 'admin/tripal/storage/chado/mviews/report/[mview_id]';
  295. /* Field: Tripal Materialized Views: Table */
  296. $handler->display->display_options['fields']['mv_table']['id'] = 'mv_table';
  297. $handler->display->display_options['fields']['mv_table']['table'] = 'tripal_mviews';
  298. $handler->display->display_options['fields']['mv_table']['field'] = 'mv_table';
  299. $handler->display->display_options['fields']['mv_table']['label'] = 'Table Name';
  300. /* Field: Tripal Materialized Views: Description */
  301. $handler->display->display_options['fields']['comment']['id'] = 'comment';
  302. $handler->display->display_options['fields']['comment']['table'] = 'tripal_mviews';
  303. $handler->display->display_options['fields']['comment']['field'] = 'comment';
  304. /* Field: Tripal Materialized Views: Updated */
  305. $handler->display->display_options['fields']['last_update']['id'] = 'last_update';
  306. $handler->display->display_options['fields']['last_update']['table'] = 'tripal_mviews';
  307. $handler->display->display_options['fields']['last_update']['field'] = 'last_update';
  308. $handler->display->display_options['fields']['last_update']['label'] = 'Last Updated';
  309. $handler->display->display_options['fields']['last_update']['date_format'] = 'long';
  310. /* Field: Tripal Materialized Views: Status */
  311. $handler->display->display_options['fields']['status']['id'] = 'status';
  312. $handler->display->display_options['fields']['status']['table'] = 'tripal_mviews';
  313. $handler->display->display_options['fields']['status']['field'] = 'status';
  314. $handler->display->display_options['fields']['status']['empty'] = 'Not yet populated';
  315. /* Field: Global: Custom text */
  316. $handler->display->display_options['fields']['nothing']['id'] = 'nothing';
  317. $handler->display->display_options['fields']['nothing']['table'] = 'views';
  318. $handler->display->display_options['fields']['nothing']['field'] = 'nothing';
  319. $handler->display->display_options['fields']['nothing']['label'] = 'Edit Link';
  320. $handler->display->display_options['fields']['nothing']['exclude'] = TRUE;
  321. $handler->display->display_options['fields']['nothing']['alter']['text'] = 'Edit';
  322. $handler->display->display_options['fields']['nothing']['alter']['make_link'] = TRUE;
  323. $handler->display->display_options['fields']['nothing']['alter']['path'] = 'admin/tripal/storage/chado/mviews/edit/[mview_id]';
  324. /* Field: Global: Custom text */
  325. $handler->display->display_options['fields']['nothing_1']['id'] = 'nothing_1';
  326. $handler->display->display_options['fields']['nothing_1']['table'] = 'views';
  327. $handler->display->display_options['fields']['nothing_1']['field'] = 'nothing';
  328. $handler->display->display_options['fields']['nothing_1']['label'] = 'Delete Link';
  329. $handler->display->display_options['fields']['nothing_1']['exclude'] = TRUE;
  330. $handler->display->display_options['fields']['nothing_1']['alter']['text'] = 'Delete';
  331. $handler->display->display_options['fields']['nothing_1']['alter']['make_link'] = TRUE;
  332. $handler->display->display_options['fields']['nothing_1']['alter']['path'] = 'admin/tripal/storage/chado/mviews/delete/[mview_id]';
  333. /* Field: Global: Custom text */
  334. $handler->display->display_options['fields']['nothing_2']['id'] = 'nothing_2';
  335. $handler->display->display_options['fields']['nothing_2']['table'] = 'views';
  336. $handler->display->display_options['fields']['nothing_2']['field'] = 'nothing';
  337. $handler->display->display_options['fields']['nothing_2']['label'] = 'Populate Link';
  338. $handler->display->display_options['fields']['nothing_2']['exclude'] = TRUE;
  339. $handler->display->display_options['fields']['nothing_2']['alter']['text'] = 'Populate';
  340. $handler->display->display_options['fields']['nothing_2']['alter']['make_link'] = TRUE;
  341. $handler->display->display_options['fields']['nothing_2']['alter']['path'] = 'admin/tripal/storage/chado/mviews/update/[mview_id]';
  342. /* Field: Global: Custom text */
  343. $handler->display->display_options['fields']['nothing_3']['id'] = 'nothing_3';
  344. $handler->display->display_options['fields']['nothing_3']['table'] = 'views';
  345. $handler->display->display_options['fields']['nothing_3']['field'] = 'nothing';
  346. $handler->display->display_options['fields']['nothing_3']['label'] = '';
  347. $handler->display->display_options['fields']['nothing_3']['alter']['text'] = '[nothing] [nothing_1]<br />
  348. [nothing_2]';
  349. $handler->display->display_options['fields']['nothing_3']['element_class'] = 'short-column';
  350. $handler->display->display_options['fields']['nothing_3']['element_label_class'] = 'short-column';
  351. $handler->display->display_options['fields']['nothing_3']['element_label_colon'] = FALSE;
  352. /* Filter criterion: Tripal Materialized Views: Name */
  353. $handler->display->display_options['filters']['name']['id'] = 'name';
  354. $handler->display->display_options['filters']['name']['table'] = 'tripal_mviews';
  355. $handler->display->display_options['filters']['name']['field'] = 'name';
  356. $handler->display->display_options['filters']['name']['group'] = 1;
  357. $handler->display->display_options['filters']['name']['exposed'] = TRUE;
  358. $handler->display->display_options['filters']['name']['expose']['operator_id'] = 'name_op';
  359. $handler->display->display_options['filters']['name']['expose']['label'] = 'Name';
  360. $handler->display->display_options['filters']['name']['expose']['operator'] = 'name_op';
  361. $handler->display->display_options['filters']['name']['expose']['identifier'] = 'name';
  362. $handler->display->display_options['filters']['name']['expose']['remember_roles'] = array(
  363. 2 => '2',
  364. 1 => 0,
  365. 3 => 0,
  366. );
  367. /* Filter criterion: Tripal Materialized Views: Table */
  368. $handler->display->display_options['filters']['mv_table']['id'] = 'mv_table';
  369. $handler->display->display_options['filters']['mv_table']['table'] = 'tripal_mviews';
  370. $handler->display->display_options['filters']['mv_table']['field'] = 'mv_table';
  371. $handler->display->display_options['filters']['mv_table']['group'] = 1;
  372. $handler->display->display_options['filters']['mv_table']['exposed'] = TRUE;
  373. $handler->display->display_options['filters']['mv_table']['expose']['operator_id'] = 'mv_table_op';
  374. $handler->display->display_options['filters']['mv_table']['expose']['label'] = 'Table Name';
  375. $handler->display->display_options['filters']['mv_table']['expose']['operator'] = 'mv_table_op';
  376. $handler->display->display_options['filters']['mv_table']['expose']['identifier'] = 'mv_table';
  377. $handler->display->display_options['filters']['mv_table']['expose']['remember_roles'] = array(
  378. 2 => '2',
  379. 1 => 0,
  380. 3 => 0,
  381. );
  382. /* Filter criterion: Tripal Materialized Views: Module Name */
  383. $handler->display->display_options['filters']['modulename']['id'] = 'modulename';
  384. $handler->display->display_options['filters']['modulename']['table'] = 'tripal_mviews';
  385. $handler->display->display_options['filters']['modulename']['field'] = 'modulename';
  386. $handler->display->display_options['filters']['modulename']['group'] = 1;
  387. $handler->display->display_options['filters']['modulename']['exposed'] = TRUE;
  388. $handler->display->display_options['filters']['modulename']['expose']['operator_id'] = 'modulename_op';
  389. $handler->display->display_options['filters']['modulename']['expose']['label'] = 'Module';
  390. $handler->display->display_options['filters']['modulename']['expose']['operator'] = 'modulename_op';
  391. $handler->display->display_options['filters']['modulename']['expose']['identifier'] = 'modulename';
  392. $handler->display->display_options['filters']['modulename']['expose']['remember_roles'] = array(
  393. 2 => '2',
  394. 1 => 0,
  395. 3 => 0,
  396. );
  397. /* Filter criterion: Tripal Materialized Views: Status */
  398. $handler->display->display_options['filters']['status']['id'] = 'status';
  399. $handler->display->display_options['filters']['status']['table'] = 'tripal_mviews';
  400. $handler->display->display_options['filters']['status']['field'] = 'status';
  401. $handler->display->display_options['filters']['status']['group'] = 1;
  402. $handler->display->display_options['filters']['status']['exposed'] = TRUE;
  403. $handler->display->display_options['filters']['status']['expose']['operator_id'] = 'status_op';
  404. $handler->display->display_options['filters']['status']['expose']['label'] = 'Status';
  405. $handler->display->display_options['filters']['status']['expose']['operator'] = 'status_op';
  406. $handler->display->display_options['filters']['status']['expose']['identifier'] = 'status';
  407. $handler->display->display_options['filters']['status']['expose']['remember_roles'] = array(
  408. 2 => '2',
  409. 1 => 0,
  410. 3 => 0,
  411. );
  412. /* Display: Page */
  413. $handler = $view->new_display('page', 'Page', 'page');
  414. $handler->display->display_options['path'] = 'admin/tripal/storage/chado/mviews/mviews';
  415. $handler->display->display_options['menu']['type'] = 'default tab';
  416. $handler->display->display_options['menu']['title'] = 'Materialized Views';
  417. $handler->display->display_options['menu']['description'] = 'a list of mviews';
  418. $handler->display->display_options['menu']['weight'] = '-10';
  419. $handler->display->display_options['menu']['name'] = 'management';
  420. $handler->display->display_options['menu']['context'] = 0;
  421. $handler->display->display_options['menu']['context_only_inline'] = 0;
  422. $handler->display->display_options['tab_options']['weight'] = '0';
  423. return $view;
  424. }
  425. /**
  426. * Default Admin View for cv management
  427. *
  428. * @ingroup tripal_cv
  429. */
  430. function tripal_chado_defaultview_admin_cvs_listing() {
  431. $view = new view();
  432. $view->name = 'tripal_cv_admin_cvs';
  433. $view->description = 'DO NOT DISABLE';
  434. $view->tag = 'tripal admin';
  435. $view->base_table = 'cv';
  436. $view->human_name = 'CVs Admin';
  437. $view->core = 6;
  438. $view->api_version = '3.0';
  439. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  440. /* Display: Defaults */
  441. $handler = $view->new_display('default', 'Defaults', 'default');
  442. $handler->display->display_options['title'] = 'Controlled Vocabularies';
  443. $handler->display->display_options['use_more_always'] = FALSE;
  444. $handler->display->display_options['access']['type'] = 'perm';
  445. $handler->display->display_options['access']['perm'] = 'administer tripal';
  446. $handler->display->display_options['cache']['type'] = 'none';
  447. $handler->display->display_options['query']['type'] = 'views_query';
  448. $handler->display->display_options['exposed_form']['type'] = 'input_required';
  449. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Search';
  450. $handler->display->display_options['exposed_form']['options']['text_input_required'] = 'Click search to see a listing of controlled vocabularies that meet the filter requirements. Use the filters to restrict this set to a more reasonable number of vocabularies or to find a specific vocabulary.';
  451. $handler->display->display_options['exposed_form']['options']['text_input_required_format'] = 'full_html';
  452. $handler->display->display_options['pager']['type'] = 'full';
  453. $handler->display->display_options['pager']['options']['items_per_page'] = '25';
  454. $handler->display->display_options['pager']['options']['offset'] = '0';
  455. $handler->display->display_options['pager']['options']['id'] = '0';
  456. $handler->display->display_options['pager']['options']['quantity'] = '9';
  457. $handler->display->display_options['style_plugin'] = 'table';
  458. $handler->display->display_options['style_options']['grouping'] = '';
  459. $handler->display->display_options['style_options']['columns'] = array(
  460. 'name' => 'name',
  461. 'definition' => 'definition',
  462. 'nothing' => 'nothing',
  463. );
  464. $handler->display->display_options['style_options']['default'] = 'name';
  465. $handler->display->display_options['style_options']['info'] = array(
  466. 'name' => array(
  467. 'sortable' => 1,
  468. 'separator' => '',
  469. ),
  470. 'definition' => array(
  471. 'sortable' => 0,
  472. 'separator' => '',
  473. ),
  474. 'nothing' => array(
  475. 'separator' => '',
  476. ),
  477. );
  478. /* Header: Global: Action Links */
  479. $handler->display->display_options['header']['action_links_area']['id'] = 'action_links_area';
  480. $handler->display->display_options['header']['action_links_area']['table'] = 'views';
  481. $handler->display->display_options['header']['action_links_area']['field'] = 'action_links_area';
  482. $handler->display->display_options['header']['action_links_area']['label'] = 'Action Links';
  483. $handler->display->display_options['header']['action_links_area']['empty'] = TRUE;
  484. $handler->display->display_options['header']['action_links_area']['link-1'] = array(
  485. 'label-1' => 'Add Vocabulary',
  486. 'path-1' => 'admin/tripal/loaders/chado_vocabs/chado_cv/add',
  487. );
  488. /* No results behavior: Global: Text area */
  489. $handler->display->display_options['empty']['text']['id'] = 'area';
  490. $handler->display->display_options['empty']['text']['table'] = 'views';
  491. $handler->display->display_options['empty']['text']['field'] = 'area';
  492. $handler->display->display_options['empty']['text']['content'] = 'No controlled vocabularies match the supplied criteria.';
  493. $handler->display->display_options['empty']['text']['format'] = '2';
  494. /* Field: Chado Cv: Cv Id */
  495. $handler->display->display_options['fields']['cv_id']['id'] = 'cv_id';
  496. $handler->display->display_options['fields']['cv_id']['table'] = 'cv';
  497. $handler->display->display_options['fields']['cv_id']['field'] = 'cv_id';
  498. $handler->display->display_options['fields']['cv_id']['exclude'] = TRUE;
  499. $handler->display->display_options['fields']['cv_id']['separator'] = '';
  500. /* Field: Chado Cv: Name */
  501. $handler->display->display_options['fields']['name']['id'] = 'name';
  502. $handler->display->display_options['fields']['name']['table'] = 'cv';
  503. $handler->display->display_options['fields']['name']['field'] = 'name';
  504. /* Field: Chado Cv: Definition */
  505. $handler->display->display_options['fields']['definition']['id'] = 'definition';
  506. $handler->display->display_options['fields']['definition']['table'] = 'cv';
  507. $handler->display->display_options['fields']['definition']['field'] = 'definition';
  508. /* Field: Global: Custom text */
  509. $handler->display->display_options['fields']['nothing_1']['id'] = 'nothing_1';
  510. $handler->display->display_options['fields']['nothing_1']['table'] = 'views';
  511. $handler->display->display_options['fields']['nothing_1']['field'] = 'nothing';
  512. $handler->display->display_options['fields']['nothing_1']['label'] = 'Edit Link';
  513. $handler->display->display_options['fields']['nothing_1']['exclude'] = TRUE;
  514. $handler->display->display_options['fields']['nothing_1']['alter']['text'] = 'edit';
  515. $handler->display->display_options['fields']['nothing_1']['alter']['make_link'] = TRUE;
  516. $handler->display->display_options['fields']['nothing_1']['alter']['path'] = 'admin/tripal/loaders/chado_vocabs/chado_cv/edit/[cv_id]';
  517. /* Field: Global: Custom text */
  518. $handler->display->display_options['fields']['nothing']['id'] = 'nothing';
  519. $handler->display->display_options['fields']['nothing']['table'] = 'views';
  520. $handler->display->display_options['fields']['nothing']['field'] = 'nothing';
  521. $handler->display->display_options['fields']['nothing']['label'] = 'View Terms link';
  522. $handler->display->display_options['fields']['nothing']['exclude'] = TRUE;
  523. $handler->display->display_options['fields']['nothing']['alter']['text'] = 'View Terms';
  524. $handler->display->display_options['fields']['nothing']['alter']['make_link'] = TRUE;
  525. $handler->display->display_options['fields']['nothing']['alter']['path'] = 'admin/tripal/loaders/chado_vocabs/chado_cvterms?cv=[name]';
  526. $handler->display->display_options['fields']['nothing']['hide_alter_empty'] = TRUE;
  527. /* Field: Global: Custom text */
  528. $handler->display->display_options['fields']['nothing_3']['id'] = 'nothing_3';
  529. $handler->display->display_options['fields']['nothing_3']['table'] = 'views';
  530. $handler->display->display_options['fields']['nothing_3']['field'] = 'nothing';
  531. $handler->display->display_options['fields']['nothing_3']['label'] = 'Add term';
  532. $handler->display->display_options['fields']['nothing_3']['exclude'] = TRUE;
  533. $handler->display->display_options['fields']['nothing_3']['alter']['text'] = 'Add Term';
  534. $handler->display->display_options['fields']['nothing_3']['alter']['make_link'] = TRUE;
  535. $handler->display->display_options['fields']['nothing_3']['alter']['path'] = 'aadmin/tripal/loaders/chado_vocabs/chado_cv/[cv_id]/cvterm/add';
  536. /* Field: Global: Custom text */
  537. $handler->display->display_options['fields']['nothing_2']['id'] = 'nothing_2';
  538. $handler->display->display_options['fields']['nothing_2']['table'] = 'views';
  539. $handler->display->display_options['fields']['nothing_2']['field'] = 'nothing';
  540. $handler->display->display_options['fields']['nothing_2']['label'] = '';
  541. $handler->display->display_options['fields']['nothing_2']['alter']['text'] = '[nothing_1]<br />
  542. [nothing] [nothing_3]';
  543. $handler->display->display_options['fields']['nothing_2']['element_class'] = 'short-column';
  544. $handler->display->display_options['fields']['nothing_2']['element_label_class'] = 'short-column';
  545. $handler->display->display_options['fields']['nothing_2']['element_label_colon'] = FALSE;
  546. /* Sort criterion: Chado Cv: Name */
  547. $handler->display->display_options['sorts']['name']['id'] = 'name';
  548. $handler->display->display_options['sorts']['name']['table'] = 'cv';
  549. $handler->display->display_options['sorts']['name']['field'] = 'name';
  550. /* Filter criterion: Chado Cv: Name */
  551. $handler->display->display_options['filters']['name']['id'] = 'name';
  552. $handler->display->display_options['filters']['name']['table'] = 'cv';
  553. $handler->display->display_options['filters']['name']['field'] = 'name';
  554. $handler->display->display_options['filters']['name']['operator'] = 'contains';
  555. $handler->display->display_options['filters']['name']['group'] = '0';
  556. $handler->display->display_options['filters']['name']['exposed'] = TRUE;
  557. $handler->display->display_options['filters']['name']['expose']['operator_id'] = 'name_op';
  558. $handler->display->display_options['filters']['name']['expose']['label'] = 'Name Contains';
  559. $handler->display->display_options['filters']['name']['expose']['operator'] = 'name_op';
  560. $handler->display->display_options['filters']['name']['expose']['identifier'] = 'name';
  561. $handler->display->display_options['filters']['name']['expose']['remember_roles'] = array(
  562. 2 => '2',
  563. 1 => 0,
  564. 3 => 0,
  565. );
  566. /* Filter criterion: Chado Cv: Definition */
  567. $handler->display->display_options['filters']['definition']['id'] = 'definition';
  568. $handler->display->display_options['filters']['definition']['table'] = 'cv';
  569. $handler->display->display_options['filters']['definition']['field'] = 'definition';
  570. $handler->display->display_options['filters']['definition']['operator'] = 'contains';
  571. $handler->display->display_options['filters']['definition']['group'] = '0';
  572. $handler->display->display_options['filters']['definition']['exposed'] = TRUE;
  573. $handler->display->display_options['filters']['definition']['expose']['operator_id'] = 'definition_op';
  574. $handler->display->display_options['filters']['definition']['expose']['label'] = 'Definition Contains';
  575. $handler->display->display_options['filters']['definition']['expose']['operator'] = 'definition_op';
  576. $handler->display->display_options['filters']['definition']['expose']['identifier'] = 'definition';
  577. $handler->display->display_options['filters']['definition']['expose']['remember_roles'] = array(
  578. 2 => '2',
  579. 1 => 0,
  580. 3 => 0,
  581. );
  582. /** MANUALLY ADD since filter handler not exporting correctly */
  583. $handler->display->display_options['filters']['name']['expose']['values_form_type'] = 'textfield';
  584. $handler->display->display_options['filters']['name']['expose']['select_multiple'] = FALSE;
  585. $handler->display->display_options['filters']['name']['expose']['select_optional'] = FALSE;
  586. $handler->display->display_options['filters']['name']['expose']['max_length'] = 40;
  587. /* Display: Page */
  588. $handler = $view->new_display('page', 'Page', 'page_1');
  589. $handler->display->display_options['path'] = 'admin/tripal/loaders/chado_vocabs/chado_cvs';
  590. $handler->display->display_options['menu']['type'] = 'default tab';
  591. $handler->display->display_options['menu']['title'] = 'Chado Controlled Vocabularies';
  592. $handler->display->display_options['menu']['description'] = 'A listing of all controlled vocabularies';
  593. $handler->display->display_options['menu']['weight'] = '-10';
  594. $handler->display->display_options['menu']['name'] = 'management';
  595. $handler->display->display_options['menu']['context'] = 0;
  596. $handler->display->display_options['menu']['context_only_inline'] = 0;
  597. $handler->display->display_options['tab_options']['weight'] = '0';
  598. /** MANUALLY ADD since filter handler no exporting correctly
  599. $handler->display->display_options['filters']['name']['expose']['values_form_type'] = 'textfield';
  600. $handler->display->display_options['filters']['name']['expose']['select_multiple'] = FALSE;
  601. $handler->display->display_options['filters']['name']['expose']['select_optional'] = FALSE;
  602. $handler->display->display_options['filters']['name']['expose']['max_length'] = 40;
  603. */
  604. return $view;
  605. }
  606. /**
  607. * Default Admin View for cvterm management
  608. *
  609. * @ingroup tripal_cv
  610. */
  611. function tripal_chado_defaultview_admin_cvterms_listing() {
  612. $view = new view();
  613. $view->name = 'tripal_cv_admin_cvterms';
  614. $view->description = 'DO NOT DISABLE';
  615. $view->tag = 'tripal admin';
  616. $view->base_table = 'cvterm';
  617. $view->human_name = 'CV Terms Admin';
  618. $view->core = 0;
  619. $view->api_version = '3.0';
  620. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  621. /* Display: Defaults */
  622. $handler = $view->new_display('default', 'Defaults', 'default');
  623. $handler->display->display_options['title'] = 'Controlled Vocabulary Terms';
  624. $handler->display->display_options['use_more_always'] = FALSE;
  625. $handler->display->display_options['access']['type'] = 'perm';
  626. $handler->display->display_options['access']['perm'] = 'administer tripal';
  627. $handler->display->display_options['cache']['type'] = 'none';
  628. $handler->display->display_options['query']['type'] = 'views_query';
  629. $handler->display->display_options['exposed_form']['type'] = 'input_required';
  630. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Search';
  631. $handler->display->display_options['exposed_form']['options']['text_input_required'] = 'Click search to see a listing of controlled vocabulary terms that meet the filter requirements. Use the filters to restrict this set to a more reasonable number of terms or to find a specific term.';
  632. $handler->display->display_options['exposed_form']['options']['text_input_required_format'] = 'full_html';
  633. $handler->display->display_options['pager']['type'] = 'full';
  634. $handler->display->display_options['pager']['options']['items_per_page'] = '25';
  635. $handler->display->display_options['pager']['options']['offset'] = '0';
  636. $handler->display->display_options['pager']['options']['id'] = '0';
  637. $handler->display->display_options['pager']['options']['quantity'] = '9';
  638. $handler->display->display_options['style_plugin'] = 'table';
  639. $handler->display->display_options['style_options']['grouping'] = '';
  640. $handler->display->display_options['style_options']['columns'] = array(
  641. 'name_1' => 'name_1',
  642. 'name' => 'name',
  643. 'definition' => 'definition',
  644. 'is_obsolete' => 'is_obsolete',
  645. 'is_relationshiptype' => 'is_relationshiptype',
  646. );
  647. $handler->display->display_options['style_options']['default'] = '-1';
  648. $handler->display->display_options['style_options']['info'] = array(
  649. 'name_1' => array(
  650. 'sortable' => 1,
  651. 'separator' => '',
  652. ),
  653. 'name' => array(
  654. 'sortable' => 1,
  655. 'separator' => '',
  656. ),
  657. 'definition' => array(
  658. 'sortable' => 0,
  659. 'separator' => '',
  660. ),
  661. 'is_obsolete' => array(
  662. 'sortable' => 1,
  663. 'separator' => '',
  664. ),
  665. 'is_relationshiptype' => array(
  666. 'sortable' => 1,
  667. 'separator' => '',
  668. ),
  669. );
  670. /* Header: Global: Action Links */
  671. $handler->display->display_options['header']['action_links_area']['id'] = 'action_links_area';
  672. $handler->display->display_options['header']['action_links_area']['table'] = 'views';
  673. $handler->display->display_options['header']['action_links_area']['field'] = 'action_links_area';
  674. $handler->display->display_options['header']['action_links_area']['label'] = 'Action Links';
  675. $handler->display->display_options['header']['action_links_area']['empty'] = TRUE;
  676. $handler->display->display_options['header']['action_links_area']['link-1'] = array(
  677. 'label-1' => 'Add Term',
  678. 'path-1' => 'admin/tripal/loaders/chado_vocabs/chado_cv/cvterm/add',
  679. );
  680. /* No results behavior: Global: Text area */
  681. $handler->display->display_options['empty']['text']['id'] = 'area';
  682. $handler->display->display_options['empty']['text']['table'] = 'views';
  683. $handler->display->display_options['empty']['text']['field'] = 'area';
  684. $handler->display->display_options['empty']['text']['content'] = 'There are no terms associated with the selected controlled vocabulary. Please select a different vocabulary from the list above.';
  685. $handler->display->display_options['empty']['text']['format'] = '1';
  686. /* Field: Chado Cv: Cv Id */
  687. $handler->display->display_options['fields']['cv_id']['id'] = 'cv_id';
  688. $handler->display->display_options['fields']['cv_id']['table'] = 'cv';
  689. $handler->display->display_options['fields']['cv_id']['field'] = 'cv_id';
  690. $handler->display->display_options['fields']['cv_id']['exclude'] = TRUE;
  691. $handler->display->display_options['fields']['cv_id']['separator'] = '';
  692. /* Field: Chado Cv: Name */
  693. $handler->display->display_options['fields']['name_1']['id'] = 'name_1';
  694. $handler->display->display_options['fields']['name_1']['table'] = 'cv';
  695. $handler->display->display_options['fields']['name_1']['field'] = 'name';
  696. $handler->display->display_options['fields']['name_1']['label'] = 'Vocabulary';
  697. $handler->display->display_options['fields']['name_1']['alter']['make_link'] = TRUE;
  698. $handler->display->display_options['fields']['name_1']['alter']['path'] = 'admin/tripal/loaders/chado_vocabs/chado_cvs?name=[name_1]';
  699. /* Field: Chado Cvterm: Cvterm Id */
  700. $handler->display->display_options['fields']['cvterm_id']['id'] = 'cvterm_id';
  701. $handler->display->display_options['fields']['cvterm_id']['table'] = 'cvterm';
  702. $handler->display->display_options['fields']['cvterm_id']['field'] = 'cvterm_id';
  703. $handler->display->display_options['fields']['cvterm_id']['exclude'] = TRUE;
  704. $handler->display->display_options['fields']['cvterm_id']['separator'] = '';
  705. /* Field: Chado Cvterm: Name */
  706. $handler->display->display_options['fields']['name']['id'] = 'name';
  707. $handler->display->display_options['fields']['name']['table'] = 'cvterm';
  708. $handler->display->display_options['fields']['name']['field'] = 'name';
  709. /* Field: Chado Cvterm: Definition */
  710. $handler->display->display_options['fields']['definition']['id'] = 'definition';
  711. $handler->display->display_options['fields']['definition']['table'] = 'cvterm';
  712. $handler->display->display_options['fields']['definition']['field'] = 'definition';
  713. $handler->display->display_options['fields']['definition']['element_class'] = 'wide-column';
  714. $handler->display->display_options['fields']['definition']['element_label_class'] = 'wide-column';
  715. /* Field: Chado Cvterm: Is Obsolete */
  716. $handler->display->display_options['fields']['is_obsolete']['id'] = 'is_obsolete';
  717. $handler->display->display_options['fields']['is_obsolete']['table'] = 'cvterm';
  718. $handler->display->display_options['fields']['is_obsolete']['field'] = 'is_obsolete';
  719. $handler->display->display_options['fields']['is_obsolete']['label'] = 'Obsolete?';
  720. $handler->display->display_options['fields']['is_obsolete']['alter']['alter_text'] = TRUE;
  721. $handler->display->display_options['fields']['is_obsolete']['alter']['text'] = 'Yes';
  722. $handler->display->display_options['fields']['is_obsolete']['element_class'] = 'short-column';
  723. $handler->display->display_options['fields']['is_obsolete']['element_label_class'] = 'short-column';
  724. $handler->display->display_options['fields']['is_obsolete']['empty'] = 'No';
  725. $handler->display->display_options['fields']['is_obsolete']['empty_zero'] = TRUE;
  726. $handler->display->display_options['fields']['is_obsolete']['separator'] = '';
  727. /* Field: Chado Cvterm: Is Relationshiptype */
  728. $handler->display->display_options['fields']['is_relationshiptype']['id'] = 'is_relationshiptype';
  729. $handler->display->display_options['fields']['is_relationshiptype']['table'] = 'cvterm';
  730. $handler->display->display_options['fields']['is_relationshiptype']['field'] = 'is_relationshiptype';
  731. $handler->display->display_options['fields']['is_relationshiptype']['label'] = 'Relation-ship?';
  732. $handler->display->display_options['fields']['is_relationshiptype']['alter']['alter_text'] = TRUE;
  733. $handler->display->display_options['fields']['is_relationshiptype']['alter']['text'] = 'Yes';
  734. $handler->display->display_options['fields']['is_relationshiptype']['element_class'] = 'short-column';
  735. $handler->display->display_options['fields']['is_relationshiptype']['element_label_class'] = 'short-column';
  736. $handler->display->display_options['fields']['is_relationshiptype']['empty'] = 'No';
  737. $handler->display->display_options['fields']['is_relationshiptype']['empty_zero'] = TRUE;
  738. $handler->display->display_options['fields']['is_relationshiptype']['separator'] = '';
  739. /* Field: Global: Custom text */
  740. $handler->display->display_options['fields']['nothing']['id'] = 'nothing';
  741. $handler->display->display_options['fields']['nothing']['table'] = 'views';
  742. $handler->display->display_options['fields']['nothing']['field'] = 'nothing';
  743. $handler->display->display_options['fields']['nothing']['label'] = 'Edit Link';
  744. $handler->display->display_options['fields']['nothing']['exclude'] = TRUE;
  745. $handler->display->display_options['fields']['nothing']['alter']['text'] = 'edit';
  746. $handler->display->display_options['fields']['nothing']['alter']['make_link'] = TRUE;
  747. $handler->display->display_options['fields']['nothing']['alter']['path'] = 'admin/tripal/loaders/chado_vocabs/chado_cv/[cv_id]/cvterm/edit/[cvterm_id]';
  748. /* Field: Global: Custom text */
  749. $handler->display->display_options['fields']['nothing_1']['id'] = 'nothing_1';
  750. $handler->display->display_options['fields']['nothing_1']['table'] = 'views';
  751. $handler->display->display_options['fields']['nothing_1']['field'] = 'nothing';
  752. $handler->display->display_options['fields']['nothing_1']['label'] = '';
  753. $handler->display->display_options['fields']['nothing_1']['alter']['text'] = '[nothing]';
  754. $handler->display->display_options['fields']['nothing_1']['element_class'] = 'short-column';
  755. $handler->display->display_options['fields']['nothing_1']['element_label_class'] = 'short-column';
  756. $handler->display->display_options['fields']['nothing_1']['element_label_colon'] = FALSE;
  757. /* Sort criterion: Chado Cv: Name */
  758. $handler->display->display_options['sorts']['name']['id'] = 'name';
  759. $handler->display->display_options['sorts']['name']['table'] = 'cv';
  760. $handler->display->display_options['sorts']['name']['field'] = 'name';
  761. /* Sort criterion: Chado Cvterm: Name */
  762. $handler->display->display_options['sorts']['name_1']['id'] = 'name_1';
  763. $handler->display->display_options['sorts']['name_1']['table'] = 'cvterm';
  764. $handler->display->display_options['sorts']['name_1']['field'] = 'name';
  765. /* Filter criterion: Chado Cv: Name */
  766. $handler->display->display_options['filters']['name']['id'] = 'name';
  767. $handler->display->display_options['filters']['name']['table'] = 'cv';
  768. $handler->display->display_options['filters']['name']['field'] = 'name';
  769. $handler->display->display_options['filters']['name']['value'] = 'All';
  770. $handler->display->display_options['filters']['name']['group'] = '0';
  771. $handler->display->display_options['filters']['name']['exposed'] = TRUE;
  772. $handler->display->display_options['filters']['name']['expose']['operator_id'] = 'name_op';
  773. $handler->display->display_options['filters']['name']['expose']['label'] = 'Vocabulary';
  774. $handler->display->display_options['filters']['name']['expose']['operator'] = 'name_op';
  775. $handler->display->display_options['filters']['name']['expose']['identifier'] = 'cv';
  776. $handler->display->display_options['filters']['name']['expose']['remember_roles'] = array(
  777. 2 => '2',
  778. 1 => 0,
  779. 3 => 0,
  780. );
  781. $handler->display->display_options['filters']['name']['values_form_type'] = 'select';
  782. $handler->display->display_options['filters']['name']['select_optional'] = TRUE;
  783. /* Filter criterion: Chado Cvterm: Name */
  784. $handler->display->display_options['filters']['name_1']['id'] = 'name_1';
  785. $handler->display->display_options['filters']['name_1']['table'] = 'cvterm';
  786. $handler->display->display_options['filters']['name_1']['field'] = 'name';
  787. $handler->display->display_options['filters']['name_1']['operator'] = 'contains';
  788. $handler->display->display_options['filters']['name_1']['group'] = '0';
  789. $handler->display->display_options['filters']['name_1']['exposed'] = TRUE;
  790. $handler->display->display_options['filters']['name_1']['expose']['operator_id'] = '';
  791. $handler->display->display_options['filters']['name_1']['expose']['label'] = 'Name Contains';
  792. $handler->display->display_options['filters']['name_1']['expose']['identifier'] = 'name';
  793. $handler->display->display_options['filters']['name_1']['expose']['remember_roles'] = array(
  794. 2 => '2',
  795. 1 => 0,
  796. 3 => 0,
  797. );
  798. /* Filter criterion: Chado Cvterm: Definition */
  799. $handler->display->display_options['filters']['definition']['id'] = 'definition';
  800. $handler->display->display_options['filters']['definition']['table'] = 'cvterm';
  801. $handler->display->display_options['filters']['definition']['field'] = 'definition';
  802. $handler->display->display_options['filters']['definition']['operator'] = 'contains';
  803. $handler->display->display_options['filters']['definition']['group'] = '0';
  804. $handler->display->display_options['filters']['definition']['exposed'] = TRUE;
  805. $handler->display->display_options['filters']['definition']['expose']['operator_id'] = 'definition_op';
  806. $handler->display->display_options['filters']['definition']['expose']['label'] = 'Definition Contains';
  807. $handler->display->display_options['filters']['definition']['expose']['operator'] = 'definition_op';
  808. $handler->display->display_options['filters']['definition']['expose']['identifier'] = 'definition';
  809. $handler->display->display_options['filters']['definition']['expose']['remember_roles'] = array(
  810. 2 => '2',
  811. 1 => 0,
  812. 3 => 0,
  813. );
  814. /* Display: Page */
  815. $handler = $view->new_display('page', 'Page', 'page_1');
  816. $handler->display->display_options['path'] = 'admin/tripal/loaders/chado_vocabs/chado_cvterms';
  817. $handler->display->display_options['menu']['type'] = 'normal';
  818. $handler->display->display_options['menu']['title'] = 'Manage Chado CV Terms';
  819. $handler->display->display_options['menu']['description'] = 'View, edit and add controlled vocabulary terms.';
  820. $handler->display->display_options['menu']['weight'] = '-8';
  821. $handler->display->display_options['menu']['name'] = 'management';
  822. $handler->display->display_options['menu']['context'] = 0;
  823. $handler->display->display_options['menu']['context_only_inline'] = 0;
  824. return $view;
  825. }
  826. /**
  827. * Default Admin View for db management
  828. *
  829. * @ingroup tripal_db
  830. */
  831. function tripal_chado_defaultview_admin_db_listing() {
  832. $view = new view();
  833. $view->name = 'tripal_db_admin_dbs';
  834. $view->description = 'DO NOT DISABLE';
  835. $view->tag = 'tripal admin';
  836. $view->base_table = 'db';
  837. $view->human_name = 'DB Admin';
  838. $view->core = 6;
  839. $view->api_version = '3.0';
  840. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  841. /* Display: Defaults */
  842. $handler = $view->new_display('default', 'Defaults', 'default');
  843. $handler->display->display_options['title'] = 'Databases';
  844. $handler->display->display_options['use_more_always'] = FALSE;
  845. $handler->display->display_options['access']['type'] = 'perm';
  846. $handler->display->display_options['access']['perm'] = 'administer db cross-references';
  847. $handler->display->display_options['cache']['type'] = 'none';
  848. $handler->display->display_options['query']['type'] = 'views_query';
  849. $handler->display->display_options['exposed_form']['type'] = 'input_required';
  850. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Search';
  851. $handler->display->display_options['exposed_form']['options']['text_input_required'] = 'Click search to see a listing of external databases that meet the filter requirements. Use the filters to restrict this set to a more reasonable number of databases or to find a specific database.';
  852. $handler->display->display_options['exposed_form']['options']['text_input_required_format'] = 'full_html';
  853. $handler->display->display_options['pager']['type'] = 'full';
  854. $handler->display->display_options['pager']['options']['items_per_page'] = '50';
  855. $handler->display->display_options['pager']['options']['offset'] = '0';
  856. $handler->display->display_options['pager']['options']['id'] = '0';
  857. $handler->display->display_options['pager']['options']['quantity'] = '9';
  858. $handler->display->display_options['style_plugin'] = 'table';
  859. $handler->display->display_options['style_options']['grouping'] = '';
  860. $handler->display->display_options['style_options']['columns'] = array(
  861. 'name' => 'name',
  862. 'url' => 'url',
  863. 'urlprefix' => 'urlprefix',
  864. 'description' => 'description',
  865. );
  866. $handler->display->display_options['style_options']['default'] = 'name';
  867. $handler->display->display_options['style_options']['info'] = array(
  868. 'name' => array(
  869. 'sortable' => 1,
  870. 'separator' => '',
  871. ),
  872. 'description' => array(
  873. 'sortable' => 0,
  874. 'separator' => '',
  875. ),
  876. );
  877. /* Header: Global: Action Links */
  878. $handler->display->display_options['header']['action_links_area']['id'] = 'action_links_area';
  879. $handler->display->display_options['header']['action_links_area']['table'] = 'views';
  880. $handler->display->display_options['header']['action_links_area']['field'] = 'action_links_area';
  881. $handler->display->display_options['header']['action_links_area']['label'] = 'Action Links';
  882. $handler->display->display_options['header']['action_links_area']['empty'] = TRUE;
  883. $handler->display->display_options['header']['action_links_area']['link-1'] = array(
  884. 'label-1' => 'Add Database',
  885. 'path-1' => 'admin/tripal/loaders/chado_db/add',
  886. );
  887. /* No results behavior: Global: Text area */
  888. $handler->display->display_options['empty']['text']['id'] = 'area';
  889. $handler->display->display_options['empty']['text']['table'] = 'views';
  890. $handler->display->display_options['empty']['text']['field'] = 'area';
  891. $handler->display->display_options['empty']['text']['content'] = 'No databases match the supplied criteria.';
  892. $handler->display->display_options['empty']['text']['format'] = '2';
  893. /* Field: Chado Db: Db Id */
  894. $handler->display->display_options['fields']['db_id']['id'] = 'db_id';
  895. $handler->display->display_options['fields']['db_id']['table'] = 'db';
  896. $handler->display->display_options['fields']['db_id']['field'] = 'db_id';
  897. $handler->display->display_options['fields']['db_id']['exclude'] = TRUE;
  898. $handler->display->display_options['fields']['db_id']['separator'] = '';
  899. /* Field: Chado Db: Name */
  900. $handler->display->display_options['fields']['name']['id'] = 'name';
  901. $handler->display->display_options['fields']['name']['table'] = 'db';
  902. $handler->display->display_options['fields']['name']['field'] = 'name';
  903. /* Field: Chado Db: Description */
  904. $handler->display->display_options['fields']['description']['id'] = 'description';
  905. $handler->display->display_options['fields']['description']['table'] = 'db';
  906. $handler->display->display_options['fields']['description']['field'] = 'description';
  907. /* Field: Global: Custom text */
  908. $handler->display->display_options['fields']['nothing']['id'] = 'nothing';
  909. $handler->display->display_options['fields']['nothing']['table'] = 'views';
  910. $handler->display->display_options['fields']['nothing']['field'] = 'nothing';
  911. $handler->display->display_options['fields']['nothing']['label'] = 'Edit Link';
  912. $handler->display->display_options['fields']['nothing']['exclude'] = TRUE;
  913. $handler->display->display_options['fields']['nothing']['alter']['text'] = 'edit';
  914. $handler->display->display_options['fields']['nothing']['alter']['make_link'] = TRUE;
  915. $handler->display->display_options['fields']['nothing']['alter']['path'] = 'admin/tripal/loaders/chado_db/edit/[db_id]';
  916. /* Field: Global: Custom text */
  917. $handler->display->display_options['fields']['nothing_1']['id'] = 'nothing_1';
  918. $handler->display->display_options['fields']['nothing_1']['table'] = 'views';
  919. $handler->display->display_options['fields']['nothing_1']['field'] = 'nothing';
  920. $handler->display->display_options['fields']['nothing_1']['label'] = 'View DBxrefs';
  921. $handler->display->display_options['fields']['nothing_1']['exclude'] = TRUE;
  922. $handler->display->display_options['fields']['nothing_1']['alter']['text'] = 'items';
  923. $handler->display->display_options['fields']['nothing_1']['alter']['make_link'] = TRUE;
  924. $handler->display->display_options['fields']['nothing_1']['alter']['path'] = 'admin/tripal/loaders/chado_db/dbxrefs?db_name=[name]';
  925. /* Field: Global: Custom text */
  926. $handler->display->display_options['fields']['nothing_2']['id'] = 'nothing_2';
  927. $handler->display->display_options['fields']['nothing_2']['table'] = 'views';
  928. $handler->display->display_options['fields']['nothing_2']['field'] = 'nothing';
  929. $handler->display->display_options['fields']['nothing_2']['label'] = 'Actions';
  930. $handler->display->display_options['fields']['nothing_2']['alter']['text'] = '[nothing] | [nothing_1]';
  931. $handler->display->display_options['fields']['nothing_2']['element_label_colon'] = FALSE;
  932. /* Filter criterion: Chado Db: Name */
  933. $handler->display->display_options['filters']['name']['id'] = 'name';
  934. $handler->display->display_options['filters']['name']['table'] = 'db';
  935. $handler->display->display_options['filters']['name']['field'] = 'name';
  936. $handler->display->display_options['filters']['name']['operator'] = 'contains';
  937. $handler->display->display_options['filters']['name']['group'] = '0';
  938. $handler->display->display_options['filters']['name']['exposed'] = TRUE;
  939. $handler->display->display_options['filters']['name']['expose']['operator_id'] = 'name_op';
  940. $handler->display->display_options['filters']['name']['expose']['label'] = 'Name Contains';
  941. $handler->display->display_options['filters']['name']['expose']['operator'] = 'name_op';
  942. $handler->display->display_options['filters']['name']['expose']['identifier'] = 'name';
  943. $handler->display->display_options['filters']['name']['expose']['remember_roles'] = array(
  944. 2 => '2',
  945. 1 => 0,
  946. 3 => 0,
  947. );
  948. /* Filter criterion: Chado Db: Description */
  949. $handler->display->display_options['filters']['description']['id'] = 'description';
  950. $handler->display->display_options['filters']['description']['table'] = 'db';
  951. $handler->display->display_options['filters']['description']['field'] = 'description';
  952. $handler->display->display_options['filters']['description']['operator'] = 'contains';
  953. $handler->display->display_options['filters']['description']['group'] = '0';
  954. $handler->display->display_options['filters']['description']['exposed'] = TRUE;
  955. $handler->display->display_options['filters']['description']['expose']['operator_id'] = 'description_op';
  956. $handler->display->display_options['filters']['description']['expose']['label'] = 'Description Contains';
  957. $handler->display->display_options['filters']['description']['expose']['operator'] = 'description_op';
  958. $handler->display->display_options['filters']['description']['expose']['identifier'] = 'description';
  959. $handler->display->display_options['filters']['description']['expose']['remember_roles'] = array(
  960. 2 => '2',
  961. 1 => 0,
  962. 3 => 0,
  963. );
  964. /* Display: Page */
  965. $handler = $view->new_display('page', 'Page', 'page_1');
  966. $handler->display->display_options['path'] = 'admin/tripal/loaders/chado_db/dbs';
  967. $handler->display->display_options['menu']['type'] = 'default tab';
  968. $handler->display->display_options['menu']['title'] = 'Databases';
  969. $handler->display->display_options['menu']['description'] = 'Lists all databases available to create database references for.';
  970. $handler->display->display_options['menu']['weight'] = '-8';
  971. $handler->display->display_options['menu']['name'] = 'management';
  972. $handler->display->display_options['menu']['context'] = 0;
  973. $handler->display->display_options['menu']['context_only_inline'] = 0;
  974. $handler->display->display_options['tab_options']['weight'] = '0';
  975. return $view;
  976. }
  977. /**
  978. * Default Admin View for dbxref management
  979. *
  980. * @ingroup tripal_db
  981. */
  982. function tripal_chado_defaultview_admin_dbxref_listing() {
  983. $view = new view();
  984. $view->name = 'tripal_db_admin_dbxrefs';
  985. $view->description = 'DO NOT DISABLE';
  986. $view->tag = 'tripal admin';
  987. $view->base_table = 'dbxref';
  988. $view->human_name = 'DB Reference Admin';
  989. $view->core = 7;
  990. $view->api_version = '3.0';
  991. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  992. /* Display: Master */
  993. $handler = $view->new_display('default', 'Master', 'default');
  994. $handler->display->display_options['title'] = 'DB Reference Admin';
  995. $handler->display->display_options['use_more_always'] = FALSE;
  996. $handler->display->display_options['access']['type'] = 'perm';
  997. $handler->display->display_options['access']['perm'] = 'administer db cross-references';
  998. $handler->display->display_options['cache']['type'] = 'none';
  999. $handler->display->display_options['query']['type'] = 'views_query';
  1000. $handler->display->display_options['exposed_form']['type'] = 'input_required';
  1001. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Search';
  1002. $handler->display->display_options['exposed_form']['options']['text_input_required'] = 'Click search to see a listing of external database references that meet the filter requirements. Use the filters to restrict this set to a more reasonable number of references or to find a specific reference.';
  1003. $handler->display->display_options['exposed_form']['options']['text_input_required_format'] = 'full_html';
  1004. $handler->display->display_options['pager']['type'] = 'full';
  1005. $handler->display->display_options['pager']['options']['items_per_page'] = '50';
  1006. $handler->display->display_options['style_plugin'] = 'table';
  1007. $handler->display->display_options['style_options']['columns'] = array(
  1008. 'dbxref_id' => 'dbxref_id',
  1009. 'name' => 'name',
  1010. 'accession' => 'accession',
  1011. 'description' => 'description',
  1012. 'version' => 'version',
  1013. );
  1014. $handler->display->display_options['style_options']['default'] = '-1';
  1015. $handler->display->display_options['style_options']['info'] = array(
  1016. 'dbxref_id' => array(
  1017. 'sortable' => 0,
  1018. 'default_sort_order' => 'asc',
  1019. 'align' => '',
  1020. 'separator' => '',
  1021. 'empty_column' => 0,
  1022. ),
  1023. 'name' => array(
  1024. 'sortable' => 1,
  1025. 'default_sort_order' => 'asc',
  1026. 'align' => '',
  1027. 'separator' => '',
  1028. 'empty_column' => 0,
  1029. ),
  1030. 'accession' => array(
  1031. 'sortable' => 1,
  1032. 'default_sort_order' => 'asc',
  1033. 'align' => '',
  1034. 'separator' => '',
  1035. 'empty_column' => 0,
  1036. ),
  1037. 'description' => array(
  1038. 'sortable' => 0,
  1039. 'default_sort_order' => 'asc',
  1040. 'align' => '',
  1041. 'separator' => '',
  1042. 'empty_column' => 0,
  1043. ),
  1044. 'version' => array(
  1045. 'sortable' => 1,
  1046. 'default_sort_order' => 'asc',
  1047. 'align' => '',
  1048. 'separator' => '',
  1049. 'empty_column' => 0,
  1050. ),
  1051. );
  1052. /* Field: Chado Dbxref: Dbxref Id */
  1053. $handler->display->display_options['fields']['dbxref_id']['id'] = 'dbxref_id';
  1054. $handler->display->display_options['fields']['dbxref_id']['table'] = 'dbxref';
  1055. $handler->display->display_options['fields']['dbxref_id']['field'] = 'dbxref_id';
  1056. $handler->display->display_options['fields']['dbxref_id']['exclude'] = TRUE;
  1057. $handler->display->display_options['fields']['dbxref_id']['separator'] = '';
  1058. /* Field: Chado Db: Name */
  1059. $handler->display->display_options['fields']['name']['id'] = 'name';
  1060. $handler->display->display_options['fields']['name']['table'] = 'db';
  1061. $handler->display->display_options['fields']['name']['field'] = 'name';
  1062. $handler->display->display_options['fields']['name']['label'] = 'Database';
  1063. /* Field: Chado Dbxref: Accession */
  1064. $handler->display->display_options['fields']['accession']['id'] = 'accession';
  1065. $handler->display->display_options['fields']['accession']['table'] = 'dbxref';
  1066. $handler->display->display_options['fields']['accession']['field'] = 'accession';
  1067. /* Field: Chado Dbxref: Description */
  1068. $handler->display->display_options['fields']['description']['id'] = 'description';
  1069. $handler->display->display_options['fields']['description']['table'] = 'dbxref';
  1070. $handler->display->display_options['fields']['description']['field'] = 'description';
  1071. /* Field: Chado Dbxref: Version */
  1072. $handler->display->display_options['fields']['version']['id'] = 'version';
  1073. $handler->display->display_options['fields']['version']['table'] = 'dbxref';
  1074. $handler->display->display_options['fields']['version']['field'] = 'version';
  1075. /* Sort criterion: Chado Db: Name */
  1076. $handler->display->display_options['sorts']['name']['id'] = 'name';
  1077. $handler->display->display_options['sorts']['name']['table'] = 'db';
  1078. $handler->display->display_options['sorts']['name']['field'] = 'name';
  1079. /* Sort criterion: Chado Dbxref: Accession */
  1080. $handler->display->display_options['sorts']['accession']['id'] = 'accession';
  1081. $handler->display->display_options['sorts']['accession']['table'] = 'dbxref';
  1082. $handler->display->display_options['sorts']['accession']['field'] = 'accession';
  1083. /* Sort criterion: Chado Dbxref: Version */
  1084. $handler->display->display_options['sorts']['version']['id'] = 'version';
  1085. $handler->display->display_options['sorts']['version']['table'] = 'dbxref';
  1086. $handler->display->display_options['sorts']['version']['field'] = 'version';
  1087. $handler->display->display_options['sorts']['version']['order'] = 'DESC';
  1088. /* Filter criterion: Chado Db: Name */
  1089. $handler->display->display_options['filters']['name']['id'] = 'name';
  1090. $handler->display->display_options['filters']['name']['table'] = 'db';
  1091. $handler->display->display_options['filters']['name']['field'] = 'name';
  1092. $handler->display->display_options['filters']['name']['value'] = array(
  1093. 'All' => 'All',
  1094. );
  1095. $handler->display->display_options['filters']['name']['group'] = 1;
  1096. $handler->display->display_options['filters']['name']['exposed'] = TRUE;
  1097. $handler->display->display_options['filters']['name']['expose']['operator_id'] = '';
  1098. $handler->display->display_options['filters']['name']['expose']['label'] = 'Database';
  1099. $handler->display->display_options['filters']['name']['expose']['identifier'] = 'db_name';
  1100. $handler->display->display_options['filters']['name']['expose']['values_form_type'] = 'select';
  1101. $handler->display->display_options['filters']['name']['expose']['select_multiple'] = TRUE;
  1102. $handler->display->display_options['filters']['name']['expose']['select_optional'] = TRUE;
  1103. $handler->display->display_options['filters']['name']['expose']['max_length'] = 40;
  1104. $handler->display->display_options['filters']['name']['expose']['remember_roles'] = array(
  1105. 2 => '2',
  1106. 1 => 0,
  1107. 3 => 0,
  1108. );
  1109. /* Filter criterion: Chado Dbxref: Accession */
  1110. $handler->display->display_options['filters']['accession']['id'] = 'accession';
  1111. $handler->display->display_options['filters']['accession']['table'] = 'dbxref';
  1112. $handler->display->display_options['filters']['accession']['field'] = 'accession';
  1113. $handler->display->display_options['filters']['accession']['operator'] = 'contains';
  1114. $handler->display->display_options['filters']['accession']['group'] = 1;
  1115. $handler->display->display_options['filters']['accession']['exposed'] = TRUE;
  1116. $handler->display->display_options['filters']['accession']['expose']['operator_id'] = 'accession_op';
  1117. $handler->display->display_options['filters']['accession']['expose']['label'] = 'Accession Contains';
  1118. $handler->display->display_options['filters']['accession']['expose']['operator'] = 'accession_op';
  1119. $handler->display->display_options['filters']['accession']['expose']['identifier'] = 'accession';
  1120. $handler->display->display_options['filters']['accession']['expose']['remember_roles'] = array(
  1121. 2 => '2',
  1122. 1 => 0,
  1123. 3 => 0,
  1124. );
  1125. /* Filter criterion: Chado Dbxref: Description */
  1126. $handler->display->display_options['filters']['description']['id'] = 'description';
  1127. $handler->display->display_options['filters']['description']['table'] = 'dbxref';
  1128. $handler->display->display_options['filters']['description']['field'] = 'description';
  1129. $handler->display->display_options['filters']['description']['operator'] = 'contains';
  1130. $handler->display->display_options['filters']['description']['group'] = 1;
  1131. $handler->display->display_options['filters']['description']['exposed'] = TRUE;
  1132. $handler->display->display_options['filters']['description']['expose']['operator_id'] = 'description_op';
  1133. $handler->display->display_options['filters']['description']['expose']['label'] = 'Description Contains';
  1134. $handler->display->display_options['filters']['description']['expose']['operator'] = 'description_op';
  1135. $handler->display->display_options['filters']['description']['expose']['identifier'] = 'description';
  1136. $handler->display->display_options['filters']['description']['expose']['remember_roles'] = array(
  1137. 2 => '2',
  1138. 1 => 0,
  1139. 3 => 0,
  1140. );
  1141. /* Display: Page */
  1142. $handler = $view->new_display('page', 'Page', 'page');
  1143. $handler->display->display_options['path'] = 'admin/tripal/loaders/chado_db/dbxrefs';
  1144. $handler->display->display_options['menu']['type'] = 'tab';
  1145. $handler->display->display_options['menu']['title'] = 'References';
  1146. $handler->display->display_options['menu']['weight'] = '0';
  1147. $handler->display->display_options['menu']['name'] = 'management';
  1148. $handler->display->display_options['menu']['context'] = 0;
  1149. $handler->display->display_options['menu']['context_only_inline'] = 0;
  1150. return $view;
  1151. }