tripal_natural_diversity.views_default.inc 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942
  1. <?php
  2. /* -- SPF Jun 13, 2013 removed as a search by ND experiment
  3. * results in a huge return list. As in the case of a genotyping
  4. * GWAS experiment where tens of thousands of SNP genotypes are
  5. * present. --
  6. */
  7. function tripal_natural_diversity_views_default_views() {
  8. $views = array();
  9. if (!module_exists('tripal_views')) {
  10. return $views;
  11. }
  12. // Experiment Listing
  13. $view = new view;
  14. $view->name = 'natdiv_experiment_listing';
  15. $view->description = 'A listing of all natural diversity experiments';
  16. $view->tag = 'chado default';
  17. $view->base_table = 'nd_experiment';
  18. $view->core = 6;
  19. $view->api_version = '2';
  20. $view->disabled = FALSE;
  21. $handler = $view->new_display('default', 'Defaults', 'default');
  22. $handler->override_option('fields', array(
  23. 'name' => array(
  24. 'label' => 'Type',
  25. 'alter' => array(
  26. 'alter_text' => 0,
  27. 'text' => '',
  28. 'make_link' => 0,
  29. 'path' => '',
  30. 'absolute' => 0,
  31. 'link_class' => '',
  32. 'alt' => '',
  33. 'rel' => '',
  34. 'prefix' => '',
  35. 'suffix' => '',
  36. 'target' => '',
  37. 'help' => '',
  38. 'trim' => 0,
  39. 'max_length' => '',
  40. 'word_boundary' => 1,
  41. 'ellipsis' => 1,
  42. 'html' => 0,
  43. 'strip_tags' => 0,
  44. ),
  45. 'empty' => '',
  46. 'hide_empty' => 0,
  47. 'empty_zero' => 0,
  48. 'hide_alter_empty' => 1,
  49. 'type' => 'separator',
  50. 'separator' => ', ',
  51. 'exclude' => 0,
  52. 'id' => 'name',
  53. 'table' => 'cvterm',
  54. 'field' => 'name',
  55. 'relationship' => 'none',
  56. ),
  57. 'description' => array(
  58. 'label' => 'Location Experiment Performed',
  59. 'alter' => array(
  60. 'alter_text' => 0,
  61. 'text' => '',
  62. 'make_link' => 0,
  63. 'path' => '',
  64. 'absolute' => 0,
  65. 'link_class' => '',
  66. 'alt' => '',
  67. 'rel' => '',
  68. 'prefix' => '',
  69. 'suffix' => '',
  70. 'target' => '',
  71. 'help' => '',
  72. 'trim' => 0,
  73. 'max_length' => '',
  74. 'word_boundary' => 1,
  75. 'ellipsis' => 1,
  76. 'html' => 0,
  77. 'strip_tags' => 0,
  78. ),
  79. 'empty' => '',
  80. 'hide_empty' => 0,
  81. 'empty_zero' => 0,
  82. 'hide_alter_empty' => 1,
  83. 'type' => 'separator',
  84. 'separator' => ', ',
  85. 'exclude' => 0,
  86. 'id' => 'description',
  87. 'table' => 'nd_geolocation',
  88. 'field' => 'description',
  89. 'relationship' => 'none',
  90. ),
  91. ));
  92. $handler->override_option('sorts', array(
  93. 'name' => array(
  94. 'order' => 'ASC',
  95. 'id' => 'name',
  96. 'table' => 'cvterm',
  97. 'field' => 'name',
  98. 'relationship' => 'none',
  99. ),
  100. 'description' => array(
  101. 'order' => 'ASC',
  102. 'id' => 'description',
  103. 'table' => 'nd_geolocation',
  104. 'field' => 'description',
  105. 'relationship' => 'none',
  106. ),
  107. ));
  108. $handler->override_option('filters', array(
  109. 'type_id' => array(
  110. 'operator' => '=',
  111. 'value' => '',
  112. 'group' => '0',
  113. 'exposed' => TRUE,
  114. 'expose' => array(
  115. 'use_operator' => 0,
  116. 'operator' => 'type_id_op',
  117. 'identifier' => 'type_id',
  118. 'label' => 'Experiment Type',
  119. 'remember' => 0,
  120. ),
  121. 'case' => 1,
  122. 'id' => 'type_id',
  123. 'table' => 'nd_experiment',
  124. 'field' => 'type_id',
  125. 'relationship' => 'none',
  126. 'values_form_type' => 'select',
  127. 'multiple' => 1,
  128. 'optional' => 0,
  129. 'show_all' => 0,
  130. 'agg' => array(
  131. 'records_with' => 1,
  132. 'aggregates_with' => 1,
  133. ),
  134. ),
  135. 'description' => array(
  136. 'operator' => '=',
  137. 'value' => array(),
  138. 'group' => '0',
  139. 'exposed' => TRUE,
  140. 'expose' => array(
  141. 'use_operator' => 0,
  142. 'operator' => 'description_op',
  143. 'identifier' => 'geolocation',
  144. 'label' => 'Location Experiment Performed',
  145. 'remember' => 0,
  146. ),
  147. 'case' => 1,
  148. 'id' => 'description',
  149. 'table' => 'nd_geolocation',
  150. 'field' => 'description',
  151. 'relationship' => 'none',
  152. 'agg' => array(
  153. 'records_with' => 1,
  154. 'aggregates_with' => 1,
  155. ),
  156. 'values_form_type' => 'select',
  157. 'multiple' => 1,
  158. 'optional' => 0,
  159. ),
  160. 'search_results' => array(
  161. 'operator' => '=',
  162. 'value' => '',
  163. 'group' => '0',
  164. 'exposed' => FALSE,
  165. 'expose' => array(
  166. 'operator' => FALSE,
  167. 'label' => '',
  168. ),
  169. 'id' => 'search_results',
  170. 'table' => 'views',
  171. 'field' => 'search_results',
  172. 'relationship' => 'none',
  173. 'apply_button' => 'Show',
  174. 'no_results_text' => 'Click "Show" to see a list of all experiments matching the entered criteria. If you leave a any of the criteria blank then the experiments will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all experiments will be listed.',
  175. ),
  176. ));
  177. $handler->override_option('access', array(
  178. 'type' => 'perm',
  179. 'perm' => 'access content',
  180. ));
  181. $handler->override_option('cache', array(
  182. 'type' => 'none',
  183. ));
  184. $handler->override_option('title', 'Natural Diversity Experiments');
  185. $handler->override_option('header', 'Click "Show" to see a list of all experiments matching the entered criteria. If you leave a any of the criteria blank then the experiments will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all experiments will be listed.');
  186. $handler->override_option('header_format', '2');
  187. $handler->override_option('header_empty', 0);
  188. $handler->override_option('empty', 'No natural diversity experiments match the current criteria.');
  189. $handler->override_option('empty_format', '2');
  190. $handler->override_option('items_per_page', 50);
  191. $handler->override_option('use_pager', '1');
  192. $handler->override_option('style_plugin', 'table');
  193. $handler->override_option('style_options', array(
  194. 'grouping' => '',
  195. 'override' => 1,
  196. 'sticky' => 0,
  197. 'order' => 'asc',
  198. 'summary' => '',
  199. 'columns' => array(
  200. 'name' => 'name',
  201. 'description' => 'description',
  202. ),
  203. 'info' => array(
  204. 'name' => array(
  205. 'sortable' => 1,
  206. 'separator' => '',
  207. ),
  208. 'description' => array(
  209. 'sortable' => 1,
  210. 'separator' => '',
  211. ),
  212. ),
  213. 'default' => '-1',
  214. ));
  215. $handler = $view->new_display('page', 'Page', 'page_1');
  216. $handler->override_option('path', 'chado/natdiv_experiments');
  217. $handler->override_option('menu', array(
  218. 'type' => 'normal',
  219. 'title' => 'Natural Diversity Experiments',
  220. 'description' => 'A single assay resulting in a single genotype or phenotype. Multiple assays resulting in an entire experiment should be grouped together as a project.',
  221. 'weight' => '10',
  222. 'name' => 'navigation',
  223. ));
  224. $handler->override_option('tab_options', array(
  225. 'type' => 'none',
  226. 'title' => '',
  227. 'description' => '',
  228. 'weight' => 0,
  229. 'name' => 'navigation',
  230. ));
  231. $views[$view->name] = $view;
  232. // List geolocations
  233. $view = new view;
  234. $view->name = 'geolocation_listing';
  235. $view->description = 'A listing of locations where natural diversity experiments took place.';
  236. $view->tag = 'chado default';
  237. $view->base_table = 'nd_geolocation';
  238. $view->core = 6;
  239. $view->api_version = '2';
  240. $view->disabled = FALSE;
  241. $handler = $view->new_display('default', 'Defaults', 'default');
  242. $handler->override_option('fields', array(
  243. 'description' => array(
  244. 'label' => 'Name',
  245. 'alter' => array(
  246. 'alter_text' => 0,
  247. 'text' => '',
  248. 'make_link' => 0,
  249. 'path' => '',
  250. 'absolute' => 0,
  251. 'link_class' => '',
  252. 'alt' => '',
  253. 'rel' => '',
  254. 'prefix' => '',
  255. 'suffix' => '',
  256. 'target' => '',
  257. 'help' => '',
  258. 'trim' => 0,
  259. 'max_length' => '',
  260. 'word_boundary' => 1,
  261. 'ellipsis' => 1,
  262. 'html' => 0,
  263. 'strip_tags' => 0,
  264. ),
  265. 'empty' => '',
  266. 'hide_empty' => 0,
  267. 'empty_zero' => 0,
  268. 'hide_alter_empty' => 1,
  269. 'type' => 'separator',
  270. 'separator' => ', ',
  271. 'exclude' => 0,
  272. 'id' => 'description',
  273. 'table' => 'nd_geolocation',
  274. 'field' => 'description',
  275. 'relationship' => 'none',
  276. ),
  277. 'latitude' => array(
  278. 'label' => 'Latitude',
  279. 'alter' => array(
  280. 'alter_text' => 0,
  281. 'text' => '',
  282. 'make_link' => 0,
  283. 'path' => '',
  284. 'absolute' => 0,
  285. 'link_class' => '',
  286. 'alt' => '',
  287. 'rel' => '',
  288. 'prefix' => '',
  289. 'suffix' => '',
  290. 'target' => '',
  291. 'help' => '',
  292. 'trim' => 0,
  293. 'max_length' => '',
  294. 'word_boundary' => 1,
  295. 'ellipsis' => 1,
  296. 'html' => 0,
  297. 'strip_tags' => 0,
  298. ),
  299. 'empty' => '',
  300. 'hide_empty' => 0,
  301. 'empty_zero' => 0,
  302. 'hide_alter_empty' => 1,
  303. 'type' => 'separator',
  304. 'separator' => ', ',
  305. 'exclude' => 0,
  306. 'id' => 'latitude',
  307. 'table' => 'nd_geolocation',
  308. 'field' => 'latitude',
  309. 'relationship' => 'none',
  310. ),
  311. 'longitude' => array(
  312. 'label' => 'Longitude',
  313. 'alter' => array(
  314. 'alter_text' => 0,
  315. 'text' => '',
  316. 'make_link' => 0,
  317. 'path' => '',
  318. 'absolute' => 0,
  319. 'link_class' => '',
  320. 'alt' => '',
  321. 'rel' => '',
  322. 'prefix' => '',
  323. 'suffix' => '',
  324. 'target' => '',
  325. 'help' => '',
  326. 'trim' => 0,
  327. 'max_length' => '',
  328. 'word_boundary' => 1,
  329. 'ellipsis' => 1,
  330. 'html' => 0,
  331. 'strip_tags' => 0,
  332. ),
  333. 'empty' => '',
  334. 'hide_empty' => 0,
  335. 'empty_zero' => 0,
  336. 'hide_alter_empty' => 1,
  337. 'type' => 'separator',
  338. 'separator' => ', ',
  339. 'exclude' => 0,
  340. 'id' => 'longitude',
  341. 'table' => 'nd_geolocation',
  342. 'field' => 'longitude',
  343. 'relationship' => 'none',
  344. ),
  345. 'altitude' => array(
  346. 'label' => 'Altitude',
  347. 'alter' => array(
  348. 'alter_text' => 0,
  349. 'text' => '',
  350. 'make_link' => 0,
  351. 'path' => '',
  352. 'absolute' => 0,
  353. 'link_class' => '',
  354. 'alt' => '',
  355. 'rel' => '',
  356. 'prefix' => '',
  357. 'suffix' => '',
  358. 'target' => '',
  359. 'help' => '',
  360. 'trim' => 0,
  361. 'max_length' => '',
  362. 'word_boundary' => 1,
  363. 'ellipsis' => 1,
  364. 'html' => 0,
  365. 'strip_tags' => 0,
  366. ),
  367. 'empty' => '',
  368. 'hide_empty' => 0,
  369. 'empty_zero' => 0,
  370. 'hide_alter_empty' => 1,
  371. 'type' => 'separator',
  372. 'separator' => ', ',
  373. 'exclude' => 0,
  374. 'id' => 'altitude',
  375. 'table' => 'nd_geolocation',
  376. 'field' => 'altitude',
  377. 'relationship' => 'none',
  378. ),
  379. 'geodetic_datum' => array(
  380. 'label' => 'Geodetic Datum',
  381. 'alter' => array(
  382. 'alter_text' => 0,
  383. 'text' => '',
  384. 'make_link' => 0,
  385. 'path' => '',
  386. 'absolute' => 0,
  387. 'link_class' => '',
  388. 'alt' => '',
  389. 'rel' => '',
  390. 'prefix' => '',
  391. 'suffix' => '',
  392. 'target' => '',
  393. 'help' => '',
  394. 'trim' => 0,
  395. 'max_length' => '',
  396. 'word_boundary' => 1,
  397. 'ellipsis' => 1,
  398. 'html' => 0,
  399. 'strip_tags' => 0,
  400. ),
  401. 'empty' => '',
  402. 'hide_empty' => 0,
  403. 'empty_zero' => 0,
  404. 'hide_alter_empty' => 1,
  405. 'type' => 'separator',
  406. 'separator' => ', ',
  407. 'exclude' => 0,
  408. 'id' => 'geodetic_datum',
  409. 'table' => 'nd_geolocation',
  410. 'field' => 'geodetic_datum',
  411. 'relationship' => 'none',
  412. ),
  413. ));
  414. $handler->override_option('filters', array(
  415. 'geodetic_datum' => array(
  416. 'operator' => '=',
  417. 'value' => array(),
  418. 'group' => '0',
  419. 'exposed' => TRUE,
  420. 'expose' => array(
  421. 'use_operator' => 0,
  422. 'operator' => 'geodetic_datum_op',
  423. 'identifier' => 'geodetic_datum',
  424. 'label' => 'Geodetic Datum',
  425. 'remember' => 0,
  426. ),
  427. 'case' => 1,
  428. 'id' => 'geodetic_datum',
  429. 'table' => 'nd_geolocation',
  430. 'field' => 'geodetic_datum',
  431. 'relationship' => 'none',
  432. 'agg' => array(
  433. 'records_with' => 1,
  434. 'aggregates_with' => 1,
  435. ),
  436. 'values_form_type' => 'select',
  437. 'multiple' => 1,
  438. 'optional' => 0,
  439. ),
  440. 'latitude' => array(
  441. 'operator' => '=',
  442. 'value' => array(
  443. 'value' => '',
  444. 'min' => '',
  445. 'max' => '',
  446. ),
  447. 'group' => '0',
  448. 'exposed' => TRUE,
  449. 'expose' => array(
  450. 'use_operator' => 1,
  451. 'operator' => 'latitude_op',
  452. 'identifier' => 'latitude',
  453. 'label' => 'Latitude',
  454. 'optional' => 0,
  455. 'remember' => 0,
  456. ),
  457. 'case' => 1,
  458. 'id' => 'latitude',
  459. 'table' => 'nd_geolocation',
  460. 'field' => 'latitude',
  461. 'relationship' => 'none',
  462. 'agg' => array(
  463. 'records_with' => 1,
  464. 'aggregates_with' => 1,
  465. ),
  466. ),
  467. 'longitude' => array(
  468. 'operator' => '=',
  469. 'value' => array(
  470. 'value' => '',
  471. 'min' => '',
  472. 'max' => '',
  473. ),
  474. 'group' => '0',
  475. 'exposed' => TRUE,
  476. 'expose' => array(
  477. 'use_operator' => 1,
  478. 'operator' => 'longitude_op',
  479. 'identifier' => 'longitude',
  480. 'label' => 'Longitude',
  481. 'optional' => 0,
  482. 'remember' => 0,
  483. ),
  484. 'case' => 1,
  485. 'id' => 'longitude',
  486. 'table' => 'nd_geolocation',
  487. 'field' => 'longitude',
  488. 'relationship' => 'none',
  489. 'agg' => array(
  490. 'records_with' => 1,
  491. 'aggregates_with' => 1,
  492. ),
  493. ),
  494. 'altitude' => array(
  495. 'operator' => '=',
  496. 'value' => array(
  497. 'value' => '',
  498. 'min' => '',
  499. 'max' => '',
  500. ),
  501. 'group' => '0',
  502. 'exposed' => TRUE,
  503. 'expose' => array(
  504. 'use_operator' => 1,
  505. 'operator' => 'altitude_op',
  506. 'identifier' => 'altitude',
  507. 'label' => 'Altitude',
  508. 'optional' => 0,
  509. 'remember' => 0,
  510. ),
  511. 'case' => 0,
  512. 'id' => 'altitude',
  513. 'table' => 'nd_geolocation',
  514. 'field' => 'altitude',
  515. 'relationship' => 'none',
  516. 'agg' => array(
  517. 'records_with' => 1,
  518. 'aggregates_with' => 1,
  519. ),
  520. ),
  521. 'description' => array(
  522. 'operator' => '~',
  523. 'value' => '',
  524. 'group' => '0',
  525. 'exposed' => TRUE,
  526. 'expose' => array(
  527. 'use_operator' => 0,
  528. 'operator' => 'description_op',
  529. 'identifier' => 'description',
  530. 'label' => 'Name Contains',
  531. 'remember' => 0,
  532. ),
  533. 'case' => 0,
  534. 'id' => 'description',
  535. 'table' => 'nd_geolocation',
  536. 'field' => 'description',
  537. 'relationship' => 'none',
  538. 'agg' => array(
  539. 'records_with' => 1,
  540. 'aggregates_with' => 1,
  541. ),
  542. 'values_form_type' => 'textfield',
  543. 'multiple' => 0,
  544. 'optional' => 0,
  545. ),
  546. ));
  547. $handler->override_option('access', array(
  548. 'type' => 'perm',
  549. 'perm' => 'access content',
  550. ));
  551. $handler->override_option('cache', array(
  552. 'type' => 'none',
  553. ));
  554. $handler->override_option('title', 'Geographical Locations');
  555. $handler->override_option('header', 'Use the following criteria to limit the locations listed. If you leave a any of the criteria blank then the locations will be not be filtered based on that field.');
  556. $handler->override_option('header_format', '2');
  557. $handler->override_option('header_empty', 0);
  558. $handler->override_option('empty', 'No locations matched the current criteria.');
  559. $handler->override_option('empty_format', '2');
  560. $handler->override_option('items_per_page', 50);
  561. $handler->override_option('use_pager', '1');
  562. $handler->override_option('style_plugin', 'table');
  563. $handler->override_option('style_options', array(
  564. 'grouping' => '',
  565. 'override' => 1,
  566. 'sticky' => 0,
  567. 'order' => 'asc',
  568. 'summary' => '',
  569. 'columns' => array(
  570. 'description' => 'description',
  571. 'latitude' => 'latitude',
  572. 'longitude' => 'longitude',
  573. 'altitude' => 'altitude',
  574. 'geodetic_datum' => 'geodetic_datum',
  575. ),
  576. 'info' => array(
  577. 'description' => array(
  578. 'sortable' => 1,
  579. 'separator' => '',
  580. ),
  581. 'latitude' => array(
  582. 'sortable' => 1,
  583. 'separator' => '',
  584. ),
  585. 'longitude' => array(
  586. 'sortable' => 1,
  587. 'separator' => '',
  588. ),
  589. 'altitude' => array(
  590. 'sortable' => 1,
  591. 'separator' => '',
  592. ),
  593. 'geodetic_datum' => array(
  594. 'sortable' => 1,
  595. 'separator' => '',
  596. ),
  597. ),
  598. 'default' => 'description',
  599. ));
  600. $handler = $view->new_display('page', 'Page', 'page_1');
  601. $handler->override_option('path', 'chado/natdiv_geolocations');
  602. $handler->override_option('menu', array(
  603. 'type' => 'normal',
  604. 'title' => 'Locations',
  605. 'description' => 'Geographical locations in which natural diversity experiments might be performed.',
  606. 'weight' => '10',
  607. 'name' => 'navigation',
  608. ));
  609. $handler->override_option('tab_options', array(
  610. 'type' => 'none',
  611. 'title' => '',
  612. 'description' => '',
  613. 'weight' => 0,
  614. 'name' => 'navigation',
  615. ));
  616. $views[$view->name] = $view;
  617. // List protocols
  618. $view = new view;
  619. $view->name = 'natdiv_protocol_listing';
  620. $view->description = 'A listing of protocols used for natural diversity experiments';
  621. $view->tag = 'chado default';
  622. $view->base_table = 'nd_protocol';
  623. $view->core = 6;
  624. $view->api_version = '2';
  625. $view->disabled = FALSE;
  626. $handler = $view->new_display('default', 'Defaults', 'default');
  627. $handler->override_option('fields', array(
  628. 'name' => array(
  629. 'label' => 'Name',
  630. 'alter' => array(
  631. 'alter_text' => 0,
  632. 'text' => '',
  633. 'make_link' => 0,
  634. 'path' => '',
  635. 'absolute' => 0,
  636. 'link_class' => '',
  637. 'alt' => '',
  638. 'rel' => '',
  639. 'prefix' => '',
  640. 'suffix' => '',
  641. 'target' => '',
  642. 'help' => '',
  643. 'trim' => 0,
  644. 'max_length' => '',
  645. 'word_boundary' => 1,
  646. 'ellipsis' => 1,
  647. 'html' => 0,
  648. 'strip_tags' => 0,
  649. ),
  650. 'empty' => '',
  651. 'hide_empty' => 0,
  652. 'empty_zero' => 0,
  653. 'hide_alter_empty' => 1,
  654. 'type' => 'separator',
  655. 'separator' => ', ',
  656. 'exclude' => 0,
  657. 'id' => 'name',
  658. 'table' => 'nd_protocol',
  659. 'field' => 'name',
  660. 'relationship' => 'none',
  661. ),
  662. ));
  663. $handler->override_option('filters', array(
  664. 'name' => array(
  665. 'operator' => '~',
  666. 'value' => '',
  667. 'group' => '0',
  668. 'exposed' => TRUE,
  669. 'expose' => array(
  670. 'use_operator' => 0,
  671. 'operator' => 'name_op',
  672. 'identifier' => 'name',
  673. 'label' => 'Name Contains',
  674. 'remember' => 0,
  675. ),
  676. 'case' => 0,
  677. 'id' => 'name',
  678. 'table' => 'nd_protocol',
  679. 'field' => 'name',
  680. 'relationship' => 'none',
  681. 'agg' => array(
  682. 'records_with' => 1,
  683. 'aggregates_with' => 1,
  684. ),
  685. ),
  686. 'search_results' => array(
  687. 'operator' => '=',
  688. 'value' => '',
  689. 'group' => '0',
  690. 'exposed' => FALSE,
  691. 'expose' => array(
  692. 'operator' => FALSE,
  693. 'label' => '',
  694. ),
  695. 'id' => 'search_results',
  696. 'table' => 'views',
  697. 'field' => 'search_results',
  698. 'relationship' => 'none',
  699. 'apply_button' => 'Show',
  700. 'no_results_text' => 'Click "Show" to see a list of all protocols matching the entered criteria. If you leave a any of the criteria blank then the protocols will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all protocols will be listed.',
  701. ),
  702. ));
  703. $handler->override_option('access', array(
  704. 'type' => 'perm',
  705. 'perm' => 'access content',
  706. ));
  707. $handler->override_option('cache', array(
  708. 'type' => 'none',
  709. ));
  710. $handler->override_option('title', 'Protocols');
  711. $handler->override_option('header', 'Click "Show" to see a list of all protocols matching the entered criteria. If you leave a any of the criteria blank then the protocols will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all protocols will be listed.');
  712. $handler->override_option('header_format', '2');
  713. $handler->override_option('header_empty', 0);
  714. $handler->override_option('empty', 'No protocols match the current criteria.');
  715. $handler->override_option('empty_format', '2');
  716. $handler->override_option('items_per_page', 50);
  717. $handler->override_option('use_pager', '1');
  718. $handler->override_option('style_plugin', 'table');
  719. $handler->override_option('style_options', array(
  720. 'grouping' => '',
  721. 'override' => 1,
  722. 'sticky' => 0,
  723. 'order' => 'asc',
  724. 'summary' => '',
  725. 'columns' => array(
  726. 'name' => 'name',
  727. ),
  728. 'info' => array(
  729. 'name' => array(
  730. 'sortable' => 1,
  731. 'separator' => '',
  732. ),
  733. ),
  734. 'default' => 'name',
  735. ));
  736. $handler = $view->new_display('page', 'Page', 'page_1');
  737. $handler->override_option('path', 'chado/natdiv_protocols');
  738. $handler->override_option('menu', array(
  739. 'type' => 'normal',
  740. 'title' => 'Protocols',
  741. 'description' => 'The protcols used for natural diversity experiments',
  742. 'weight' => '10',
  743. 'name' => 'navigation',
  744. ));
  745. $handler->override_option('tab_options', array(
  746. 'type' => 'none',
  747. 'title' => '',
  748. 'description' => '',
  749. 'weight' => 0,
  750. 'name' => 'navigation',
  751. ));
  752. $views[$view->name] = $view;
  753. // List Reagents
  754. $view = new view;
  755. $view->name = 'natdiv_reagent_listing';
  756. $view->description = 'A listing of reagents used in natural diversity experiments';
  757. $view->tag = 'chado default';
  758. $view->base_table = 'nd_reagent';
  759. $view->core = 6;
  760. $view->api_version = '2';
  761. $view->disabled = FALSE;
  762. $handler = $view->new_display('default', 'Defaults', 'default');
  763. $handler->override_option('fields', array(
  764. 'name_1' => array(
  765. 'label' => 'Name',
  766. 'alter' => array(
  767. 'alter_text' => 0,
  768. 'text' => '',
  769. 'make_link' => 0,
  770. 'path' => '',
  771. 'absolute' => 0,
  772. 'link_class' => '',
  773. 'alt' => '',
  774. 'rel' => '',
  775. 'prefix' => '',
  776. 'suffix' => '',
  777. 'target' => '',
  778. 'help' => '',
  779. 'trim' => 0,
  780. 'max_length' => '',
  781. 'word_boundary' => 1,
  782. 'ellipsis' => 1,
  783. 'html' => 0,
  784. 'strip_tags' => 0,
  785. ),
  786. 'empty' => '',
  787. 'hide_empty' => 0,
  788. 'empty_zero' => 0,
  789. 'hide_alter_empty' => 1,
  790. 'type' => 'separator',
  791. 'separator' => ', ',
  792. 'exclude' => 0,
  793. 'id' => 'name_1',
  794. 'table' => 'nd_reagent',
  795. 'field' => 'name',
  796. 'relationship' => 'none',
  797. ),
  798. 'name' => array(
  799. 'label' => 'Type',
  800. 'alter' => array(
  801. 'alter_text' => 0,
  802. 'text' => '',
  803. 'make_link' => 0,
  804. 'path' => '',
  805. 'absolute' => 0,
  806. 'link_class' => '',
  807. 'alt' => '',
  808. 'rel' => '',
  809. 'prefix' => '',
  810. 'suffix' => '',
  811. 'target' => '',
  812. 'help' => '',
  813. 'trim' => 0,
  814. 'max_length' => '',
  815. 'word_boundary' => 1,
  816. 'ellipsis' => 1,
  817. 'html' => 0,
  818. 'strip_tags' => 0,
  819. ),
  820. 'empty' => '',
  821. 'hide_empty' => 0,
  822. 'empty_zero' => 0,
  823. 'hide_alter_empty' => 1,
  824. 'type' => 'separator',
  825. 'separator' => ', ',
  826. 'exclude' => 0,
  827. 'id' => 'name',
  828. 'table' => 'cvterm',
  829. 'field' => 'name',
  830. 'relationship' => 'none',
  831. ),
  832. ));
  833. $handler->override_option('filters', array(
  834. 'type_id' => array(
  835. 'operator' => '=',
  836. 'value' => '',
  837. 'group' => '0',
  838. 'exposed' => TRUE,
  839. 'expose' => array(
  840. 'use_operator' => 0,
  841. 'operator' => 'type_id_op',
  842. 'identifier' => 'type_id',
  843. 'label' => 'Type',
  844. 'remember' => 0,
  845. ),
  846. 'case' => 1,
  847. 'id' => 'type_id',
  848. 'table' => 'nd_reagent',
  849. 'field' => 'type_id',
  850. 'relationship' => 'none',
  851. 'values_form_type' => 'select',
  852. 'multiple' => 1,
  853. 'optional' => 0,
  854. 'show_all' => 0,
  855. 'agg' => array(
  856. 'records_with' => 1,
  857. 'aggregates_with' => 1,
  858. ),
  859. ),
  860. 'search_results' => array(
  861. 'operator' => '=',
  862. 'value' => '',
  863. 'group' => '0',
  864. 'exposed' => FALSE,
  865. 'expose' => array(
  866. 'operator' => FALSE,
  867. 'label' => '',
  868. ),
  869. 'id' => 'search_results',
  870. 'table' => 'views',
  871. 'field' => 'search_results',
  872. 'relationship' => 'none',
  873. 'apply_button' => 'Show',
  874. 'no_results_text' => 'Click "Show" to see a list of all reagents matching the entered criteria. If you leave a any of the criteria blank then the reagents will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all reagents will be listed.',
  875. ),
  876. 'name' => array(
  877. 'operator' => '~',
  878. 'value' => '',
  879. 'group' => '0',
  880. 'exposed' => TRUE,
  881. 'expose' => array(
  882. 'use_operator' => 0,
  883. 'operator' => 'name_op',
  884. 'identifier' => 'name',
  885. 'label' => 'Name Contains',
  886. 'remember' => 0,
  887. ),
  888. 'case' => 0,
  889. 'id' => 'name',
  890. 'table' => 'nd_reagent',
  891. 'field' => 'name',
  892. 'relationship' => 'none',
  893. 'agg' => array(
  894. 'records_with' => 1,
  895. 'aggregates_with' => 1,
  896. ),
  897. ),
  898. ));
  899. $handler->override_option('access', array(
  900. 'type' => 'perm',
  901. 'perm' => 'access content',
  902. ));
  903. $handler->override_option('cache', array(
  904. 'type' => 'none',
  905. ));
  906. $handler->override_option('title', 'Reagents');
  907. $handler->override_option('header', 'Click "Show" to see a list of all reagents matching the entered criteria. If you leave a any of the criteria blank then the reagents will be not be filtered based on that field. Furthermore, if you leave all criteria blank then all reagents will be listed.');
  908. $handler->override_option('header_format', '2');
  909. $handler->override_option('header_empty', 0);
  910. $handler->override_option('empty', 'No reagents match the current criteria.');
  911. $handler->override_option('empty_format', '2');
  912. $handler->override_option('items_per_page', 50);
  913. $handler->override_option('use_pager', '1');
  914. $handler->override_option('style_plugin', 'table');
  915. $handler = $view->new_display('page', 'Page', 'page_1');
  916. $handler->override_option('path', 'chado/natdiv_reagents');
  917. $handler->override_option('menu', array(
  918. 'type' => 'normal',
  919. 'title' => 'Reagents',
  920. 'description' => 'Reagents used in natural diversity experiments',
  921. 'weight' => '10',
  922. 'name' => 'navigation',
  923. ));
  924. $handler->override_option('tab_options', array(
  925. 'type' => 'none',
  926. 'title' => '',
  927. 'description' => '',
  928. 'weight' => 0,
  929. 'name' => 'navigation',
  930. ));
  931. $views[$view->name] = $view;
  932. return $views;
  933. }