popsu_documents.views_default.inc 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. <?php
  2. /**
  3. * @file
  4. * popsu_documents.views_default.inc
  5. */
  6. /**
  7. * Implements hook_views_default_views().
  8. */
  9. function popsu_documents_views_default_views() {
  10. $export = array();
  11. $view = new view();
  12. $view->name = 'documents';
  13. $view->description = 'Liste des documents';
  14. $view->tag = 'POPSU';
  15. $view->base_table = 'node';
  16. $view->human_name = 'Documents';
  17. $view->core = 7;
  18. $view->api_version = '3.0';
  19. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  20. /* Display: Master */
  21. $handler = $view->new_display('default', 'Master', 'default');
  22. $handler->display->display_options['use_more_always'] = FALSE;
  23. $handler->display->display_options['use_more_text'] = 'plus';
  24. $handler->display->display_options['access']['type'] = 'perm';
  25. $handler->display->display_options['cache']['type'] = 'none';
  26. $handler->display->display_options['query']['type'] = 'views_query';
  27. $handler->display->display_options['exposed_form']['type'] = 'basic';
  28. $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Appliquer';
  29. $handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Réinitialiser';
  30. $handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Trier par';
  31. $handler->display->display_options['pager']['type'] = 'none';
  32. $handler->display->display_options['pager']['options']['offset'] = '0';
  33. $handler->display->display_options['style_plugin'] = 'list';
  34. $handler->display->display_options['style_options']['class'] = 'document-files';
  35. $handler->display->display_options['row_plugin'] = 'fields';
  36. /* Champ: Contenu : Titre */
  37. $handler->display->display_options['fields']['title']['id'] = 'title';
  38. $handler->display->display_options['fields']['title']['table'] = 'node';
  39. $handler->display->display_options['fields']['title']['field'] = 'title';
  40. $handler->display->display_options['fields']['title']['label'] = '';
  41. $handler->display->display_options['fields']['title']['exclude'] = TRUE;
  42. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  43. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  44. $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  45. $handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
  46. /* Champ: Contenu : Fichier(s) joint(s) */
  47. $handler->display->display_options['fields']['field_popsu_doc_files']['id'] = 'field_popsu_doc_files';
  48. $handler->display->display_options['fields']['field_popsu_doc_files']['table'] = 'field_data_field_popsu_doc_files';
  49. $handler->display->display_options['fields']['field_popsu_doc_files']['field'] = 'field_popsu_doc_files';
  50. $handler->display->display_options['fields']['field_popsu_doc_files']['label'] = '';
  51. $handler->display->display_options['fields']['field_popsu_doc_files']['alter']['alter_text'] = TRUE;
  52. $handler->display->display_options['fields']['field_popsu_doc_files']['alter']['text'] = '<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank">[title]</a>';
  53. $handler->display->display_options['fields']['field_popsu_doc_files']['element_label_colon'] = FALSE;
  54. $handler->display->display_options['fields']['field_popsu_doc_files']['hide_empty'] = TRUE;
  55. $handler->display->display_options['fields']['field_popsu_doc_files']['click_sort_column'] = 'fid';
  56. $handler->display->display_options['fields']['field_popsu_doc_files']['type'] = 'file_url_plain';
  57. $handler->display->display_options['fields']['field_popsu_doc_files']['group_rows'] = FALSE;
  58. $handler->display->display_options['fields']['field_popsu_doc_files']['delta_offset'] = '0';
  59. /* Champ: Contenu : Lien de publication */
  60. $handler->display->display_options['fields']['publishcontent']['id'] = 'publishcontent';
  61. $handler->display->display_options['fields']['publishcontent']['table'] = 'node';
  62. $handler->display->display_options['fields']['publishcontent']['field'] = 'publishcontent';
  63. $handler->display->display_options['fields']['publishcontent']['label'] = '';
  64. $handler->display->display_options['fields']['publishcontent']['element_label_colon'] = FALSE;
  65. $handler->display->display_options['fields']['publishcontent']['hide_empty'] = TRUE;
  66. $handler->display->display_options['fields']['publishcontent']['unpublish'] = 'Supprimer';
  67. $handler->display->display_options['fields']['publishcontent']['publish'] = 'Récupérer dans la corbeille';
  68. /* Champ: Contenu : Lien de modification */
  69. $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
  70. $handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
  71. $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
  72. $handler->display->display_options['fields']['edit_node']['label'] = '';
  73. $handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
  74. $handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
  75. $handler->display->display_options['fields']['edit_node']['text'] = 'Modifier';
  76. /* Critère de tri: Contenu : Titre */
  77. $handler->display->display_options['sorts']['title']['id'] = 'title';
  78. $handler->display->display_options['sorts']['title']['table'] = 'node';
  79. $handler->display->display_options['sorts']['title']['field'] = 'title';
  80. /* Filtre contextuel: Contenu : Page d&#039;attache du document (field_popsu_doc_parent) */
  81. $handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['id'] = 'field_popsu_doc_parent_nid';
  82. $handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['table'] = 'field_data_field_popsu_doc_parent';
  83. $handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['field'] = 'field_popsu_doc_parent_nid';
  84. $handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['default_action'] = 'not found';
  85. $handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['exception']['title'] = 'Tout';
  86. $handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['default_argument_type'] = 'fixed';
  87. $handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['summary']['number_of_records'] = '0';
  88. $handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['summary']['format'] = 'default_summary';
  89. $handler->display->display_options['arguments']['field_popsu_doc_parent_nid']['summary_options']['items_per_page'] = '25';
  90. /* Filtre contextuel: Contenu : Type de document (field_popsu_doc_type) */
  91. $handler->display->display_options['arguments']['field_popsu_doc_type_tid']['id'] = 'field_popsu_doc_type_tid';
  92. $handler->display->display_options['arguments']['field_popsu_doc_type_tid']['table'] = 'field_data_field_popsu_doc_type';
  93. $handler->display->display_options['arguments']['field_popsu_doc_type_tid']['field'] = 'field_popsu_doc_type_tid';
  94. $handler->display->display_options['arguments']['field_popsu_doc_type_tid']['default_action'] = 'not found';
  95. $handler->display->display_options['arguments']['field_popsu_doc_type_tid']['exception']['title'] = 'Tout';
  96. $handler->display->display_options['arguments']['field_popsu_doc_type_tid']['default_argument_type'] = 'fixed';
  97. $handler->display->display_options['arguments']['field_popsu_doc_type_tid']['summary']['number_of_records'] = '0';
  98. $handler->display->display_options['arguments']['field_popsu_doc_type_tid']['summary']['format'] = 'default_summary';
  99. $handler->display->display_options['arguments']['field_popsu_doc_type_tid']['summary_options']['items_per_page'] = '25';
  100. /* Critère de filtrage: Contenu : Publié */
  101. $handler->display->display_options['filters']['status']['id'] = 'status';
  102. $handler->display->display_options['filters']['status']['table'] = 'node';
  103. $handler->display->display_options['filters']['status']['field'] = 'status';
  104. $handler->display->display_options['filters']['status']['value'] = 1;
  105. $handler->display->display_options['filters']['status']['group'] = 1;
  106. $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  107. /* Critère de filtrage: Contenu : Type */
  108. $handler->display->display_options['filters']['type']['id'] = 'type';
  109. $handler->display->display_options['filters']['type']['table'] = 'node';
  110. $handler->display->display_options['filters']['type']['field'] = 'type';
  111. $handler->display->display_options['filters']['type']['value'] = array(
  112. 'popsu_document' => 'popsu_document',
  113. );
  114. /* Display: Publication - Fiche */
  115. $handler = $view->new_display('panel_pane', 'Publication - Fiche', 'panel_pane_1');
  116. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  117. $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  118. $handler->display->display_options['style_plugin'] = 'default';
  119. $handler->display->display_options['style_options']['row_class'] = 'document-files';
  120. $handler->display->display_options['defaults']['style_options'] = FALSE;
  121. $handler->display->display_options['defaults']['row_plugin'] = FALSE;
  122. $handler->display->display_options['row_plugin'] = 'fields';
  123. $handler->display->display_options['defaults']['row_options'] = FALSE;
  124. $handler->display->display_options['defaults']['fields'] = FALSE;
  125. /* Champ: Contenu : Titre */
  126. $handler->display->display_options['fields']['title']['id'] = 'title';
  127. $handler->display->display_options['fields']['title']['table'] = 'node';
  128. $handler->display->display_options['fields']['title']['field'] = 'title';
  129. $handler->display->display_options['fields']['title']['label'] = '';
  130. $handler->display->display_options['fields']['title']['exclude'] = TRUE;
  131. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  132. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  133. $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  134. $handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
  135. /* Champ: Contenu : Fichier(s) joint(s) */
  136. $handler->display->display_options['fields']['field_popsu_doc_files']['id'] = 'field_popsu_doc_files';
  137. $handler->display->display_options['fields']['field_popsu_doc_files']['table'] = 'field_data_field_popsu_doc_files';
  138. $handler->display->display_options['fields']['field_popsu_doc_files']['field'] = 'field_popsu_doc_files';
  139. $handler->display->display_options['fields']['field_popsu_doc_files']['label'] = '';
  140. $handler->display->display_options['fields']['field_popsu_doc_files']['alter']['alter_text'] = TRUE;
  141. $handler->display->display_options['fields']['field_popsu_doc_files']['alter']['text'] = '<a href="[field_popsu_doc_files]" class="fiche-descriptive" target="_blank">Télécharger la fiche descriptive [PDF]</a>';
  142. $handler->display->display_options['fields']['field_popsu_doc_files']['element_label_colon'] = FALSE;
  143. $handler->display->display_options['fields']['field_popsu_doc_files']['hide_empty'] = TRUE;
  144. $handler->display->display_options['fields']['field_popsu_doc_files']['click_sort_column'] = 'fid';
  145. $handler->display->display_options['fields']['field_popsu_doc_files']['type'] = 'file_url_plain';
  146. $handler->display->display_options['fields']['field_popsu_doc_files']['group_rows'] = FALSE;
  147. $handler->display->display_options['fields']['field_popsu_doc_files']['delta_offset'] = '0';
  148. /* Champ: Contenu : Lien de publication */
  149. $handler->display->display_options['fields']['publishcontent']['id'] = 'publishcontent';
  150. $handler->display->display_options['fields']['publishcontent']['table'] = 'node';
  151. $handler->display->display_options['fields']['publishcontent']['field'] = 'publishcontent';
  152. $handler->display->display_options['fields']['publishcontent']['label'] = '';
  153. $handler->display->display_options['fields']['publishcontent']['element_label_colon'] = FALSE;
  154. $handler->display->display_options['fields']['publishcontent']['hide_empty'] = TRUE;
  155. $handler->display->display_options['fields']['publishcontent']['unpublish'] = 'Supprimer';
  156. /* Champ: Contenu : Lien de modification */
  157. $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
  158. $handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
  159. $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
  160. $handler->display->display_options['fields']['edit_node']['label'] = '';
  161. $handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
  162. $handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
  163. $handler->display->display_options['fields']['edit_node']['text'] = 'Modifier';
  164. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  165. $handler->display->display_options['argument_input'] = array(
  166. 'field_popsu_doc_parent_nid' => array(
  167. 'type' => 'user',
  168. 'context' => 'string.raw',
  169. 'context_optional' => 0,
  170. 'panel' => '0',
  171. 'fixed' => '',
  172. 'label' => 'Contenu : Page d&#039;attache du document (field_popsu_doc_parent)',
  173. ),
  174. 'field_popsu_doc_type_tid' => array(
  175. 'type' => 'user',
  176. 'context' => 'string.raw',
  177. 'context_optional' => 0,
  178. 'panel' => '0',
  179. 'fixed' => '',
  180. 'label' => 'Contenu : Type de document (field_popsu_doc_type)',
  181. ),
  182. );
  183. /* Display: Document attaché */
  184. $handler = $view->new_display('panel_pane', 'Document attaché', 'panel_pane_2');
  185. $handler->display->display_options['defaults']['title'] = FALSE;
  186. $handler->display->display_options['title'] = 'Documents';
  187. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  188. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  189. $handler->display->display_options['argument_input'] = array(
  190. 'field_popsu_doc_parent_nid' => array(
  191. 'type' => 'user',
  192. 'context' => 'string.raw',
  193. 'context_optional' => 0,
  194. 'panel' => '0',
  195. 'fixed' => '',
  196. 'label' => 'Contenu : Page d&#039;attache du document (field_popsu_doc_parent)',
  197. ),
  198. 'field_popsu_doc_type_tid' => array(
  199. 'type' => 'user',
  200. 'context' => 'string.raw',
  201. 'context_optional' => 0,
  202. 'panel' => '0',
  203. 'fixed' => '',
  204. 'label' => 'Contenu : Type de document (field_popsu_doc_type)',
  205. ),
  206. );
  207. /* Display: Ressource attachée */
  208. $handler = $view->new_display('panel_pane', 'Ressource attachée', 'panel_pane_3');
  209. $handler->display->display_options['defaults']['title'] = FALSE;
  210. $handler->display->display_options['title'] = 'Ressources';
  211. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  212. $handler->display->display_options['defaults']['fields'] = FALSE;
  213. /* Champ: Contenu : Titre */
  214. $handler->display->display_options['fields']['title']['id'] = 'title';
  215. $handler->display->display_options['fields']['title']['table'] = 'node';
  216. $handler->display->display_options['fields']['title']['field'] = 'title';
  217. $handler->display->display_options['fields']['title']['label'] = '';
  218. $handler->display->display_options['fields']['title']['exclude'] = TRUE;
  219. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  220. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  221. $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  222. $handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
  223. /* Champ: Contenu : Origine/source de cette ressource */
  224. $handler->display->display_options['fields']['field_popsu_doc_source']['id'] = 'field_popsu_doc_source';
  225. $handler->display->display_options['fields']['field_popsu_doc_source']['table'] = 'field_data_field_popsu_doc_source';
  226. $handler->display->display_options['fields']['field_popsu_doc_source']['field'] = 'field_popsu_doc_source';
  227. $handler->display->display_options['fields']['field_popsu_doc_source']['label'] = '';
  228. $handler->display->display_options['fields']['field_popsu_doc_source']['exclude'] = TRUE;
  229. $handler->display->display_options['fields']['field_popsu_doc_source']['alter']['alter_text'] = TRUE;
  230. $handler->display->display_options['fields']['field_popsu_doc_source']['alter']['text'] = '[field_popsu_doc_source] : ';
  231. $handler->display->display_options['fields']['field_popsu_doc_source']['element_label_colon'] = FALSE;
  232. $handler->display->display_options['fields']['field_popsu_doc_source']['element_default_classes'] = FALSE;
  233. $handler->display->display_options['fields']['field_popsu_doc_source']['hide_empty'] = TRUE;
  234. /* Champ: Contenu : Fichier(s) joint(s) */
  235. $handler->display->display_options['fields']['field_popsu_doc_files']['id'] = 'field_popsu_doc_files';
  236. $handler->display->display_options['fields']['field_popsu_doc_files']['table'] = 'field_data_field_popsu_doc_files';
  237. $handler->display->display_options['fields']['field_popsu_doc_files']['field'] = 'field_popsu_doc_files';
  238. $handler->display->display_options['fields']['field_popsu_doc_files']['label'] = '';
  239. $handler->display->display_options['fields']['field_popsu_doc_files']['alter']['alter_text'] = TRUE;
  240. $handler->display->display_options['fields']['field_popsu_doc_files']['alter']['text'] = '[field_popsu_doc_source]<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank">[title]</a>';
  241. $handler->display->display_options['fields']['field_popsu_doc_files']['element_label_colon'] = FALSE;
  242. $handler->display->display_options['fields']['field_popsu_doc_files']['hide_empty'] = TRUE;
  243. $handler->display->display_options['fields']['field_popsu_doc_files']['click_sort_column'] = 'fid';
  244. $handler->display->display_options['fields']['field_popsu_doc_files']['type'] = 'file_url_plain';
  245. $handler->display->display_options['fields']['field_popsu_doc_files']['group_rows'] = FALSE;
  246. $handler->display->display_options['fields']['field_popsu_doc_files']['delta_offset'] = '0';
  247. /* Champ: Contenu : Lien de publication */
  248. $handler->display->display_options['fields']['publishcontent']['id'] = 'publishcontent';
  249. $handler->display->display_options['fields']['publishcontent']['table'] = 'node';
  250. $handler->display->display_options['fields']['publishcontent']['field'] = 'publishcontent';
  251. $handler->display->display_options['fields']['publishcontent']['label'] = '';
  252. $handler->display->display_options['fields']['publishcontent']['element_label_colon'] = FALSE;
  253. $handler->display->display_options['fields']['publishcontent']['hide_empty'] = TRUE;
  254. $handler->display->display_options['fields']['publishcontent']['unpublish'] = 'Supprimer';
  255. /* Champ: Contenu : Lien de modification */
  256. $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
  257. $handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
  258. $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
  259. $handler->display->display_options['fields']['edit_node']['label'] = '';
  260. $handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
  261. $handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
  262. $handler->display->display_options['fields']['edit_node']['text'] = 'Modifier';
  263. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  264. $handler->display->display_options['argument_input'] = array(
  265. 'field_popsu_doc_parent_nid' => array(
  266. 'type' => 'user',
  267. 'context' => 'string.raw',
  268. 'context_optional' => 0,
  269. 'panel' => '0',
  270. 'fixed' => '',
  271. 'label' => 'Contenu : Page d&#039;attache du document (field_popsu_doc_parent)',
  272. ),
  273. 'field_popsu_doc_type_tid' => array(
  274. 'type' => 'user',
  275. 'context' => 'string.raw',
  276. 'context_optional' => 0,
  277. 'panel' => '0',
  278. 'fixed' => '',
  279. 'label' => 'Contenu : Type de document (field_popsu_doc_type)',
  280. ),
  281. );
  282. /* Display: Questionnaire attaché */
  283. $handler = $view->new_display('panel_pane', 'Questionnaire attaché', 'panel_pane_4');
  284. $handler->display->display_options['defaults']['title'] = FALSE;
  285. $handler->display->display_options['title'] = 'Questionnaires';
  286. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  287. $handler->display->display_options['defaults']['fields'] = FALSE;
  288. /* Champ: Contenu : Titre */
  289. $handler->display->display_options['fields']['title']['id'] = 'title';
  290. $handler->display->display_options['fields']['title']['table'] = 'node';
  291. $handler->display->display_options['fields']['title']['field'] = 'title';
  292. $handler->display->display_options['fields']['title']['label'] = '';
  293. $handler->display->display_options['fields']['title']['exclude'] = TRUE;
  294. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  295. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  296. $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  297. $handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
  298. /* Champ: Contenu : Origine/source de cette ressource */
  299. $handler->display->display_options['fields']['field_popsu_doc_source']['id'] = 'field_popsu_doc_source';
  300. $handler->display->display_options['fields']['field_popsu_doc_source']['table'] = 'field_data_field_popsu_doc_source';
  301. $handler->display->display_options['fields']['field_popsu_doc_source']['field'] = 'field_popsu_doc_source';
  302. $handler->display->display_options['fields']['field_popsu_doc_source']['label'] = '';
  303. $handler->display->display_options['fields']['field_popsu_doc_source']['exclude'] = TRUE;
  304. $handler->display->display_options['fields']['field_popsu_doc_source']['alter']['alter_text'] = TRUE;
  305. $handler->display->display_options['fields']['field_popsu_doc_source']['alter']['text'] = '[field_popsu_doc_source] : ';
  306. $handler->display->display_options['fields']['field_popsu_doc_source']['element_label_colon'] = FALSE;
  307. $handler->display->display_options['fields']['field_popsu_doc_source']['element_default_classes'] = FALSE;
  308. $handler->display->display_options['fields']['field_popsu_doc_source']['hide_empty'] = TRUE;
  309. /* Champ: Contenu : Fichier(s) joint(s) */
  310. $handler->display->display_options['fields']['field_popsu_doc_files']['id'] = 'field_popsu_doc_files';
  311. $handler->display->display_options['fields']['field_popsu_doc_files']['table'] = 'field_data_field_popsu_doc_files';
  312. $handler->display->display_options['fields']['field_popsu_doc_files']['field'] = 'field_popsu_doc_files';
  313. $handler->display->display_options['fields']['field_popsu_doc_files']['label'] = '';
  314. $handler->display->display_options['fields']['field_popsu_doc_files']['alter']['alter_text'] = TRUE;
  315. $handler->display->display_options['fields']['field_popsu_doc_files']['alter']['text'] = '[field_popsu_doc_source]<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank">[title]</a>';
  316. $handler->display->display_options['fields']['field_popsu_doc_files']['element_label_colon'] = FALSE;
  317. $handler->display->display_options['fields']['field_popsu_doc_files']['hide_empty'] = TRUE;
  318. $handler->display->display_options['fields']['field_popsu_doc_files']['click_sort_column'] = 'fid';
  319. $handler->display->display_options['fields']['field_popsu_doc_files']['type'] = 'file_url_plain';
  320. $handler->display->display_options['fields']['field_popsu_doc_files']['group_rows'] = FALSE;
  321. $handler->display->display_options['fields']['field_popsu_doc_files']['delta_offset'] = '0';
  322. /* Champ: Contenu : Lien de publication */
  323. $handler->display->display_options['fields']['publishcontent']['id'] = 'publishcontent';
  324. $handler->display->display_options['fields']['publishcontent']['table'] = 'node';
  325. $handler->display->display_options['fields']['publishcontent']['field'] = 'publishcontent';
  326. $handler->display->display_options['fields']['publishcontent']['label'] = '';
  327. $handler->display->display_options['fields']['publishcontent']['element_label_colon'] = FALSE;
  328. $handler->display->display_options['fields']['publishcontent']['hide_empty'] = TRUE;
  329. $handler->display->display_options['fields']['publishcontent']['unpublish'] = 'Supprimer';
  330. /* Champ: Contenu : Lien de modification */
  331. $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
  332. $handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
  333. $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
  334. $handler->display->display_options['fields']['edit_node']['label'] = '';
  335. $handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
  336. $handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
  337. $handler->display->display_options['fields']['edit_node']['text'] = 'Modifier';
  338. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  339. $handler->display->display_options['argument_input'] = array(
  340. 'field_popsu_doc_parent_nid' => array(
  341. 'type' => 'user',
  342. 'context' => 'string.raw',
  343. 'context_optional' => 0,
  344. 'panel' => '0',
  345. 'fixed' => '',
  346. 'label' => 'Contenu : Page d&#039;attache du document (field_popsu_doc_parent)',
  347. ),
  348. 'field_popsu_doc_type_tid' => array(
  349. 'type' => 'user',
  350. 'context' => 'string.raw',
  351. 'context_optional' => 0,
  352. 'panel' => '0',
  353. 'fixed' => '',
  354. 'label' => 'Contenu : Type de document (field_popsu_doc_type)',
  355. ),
  356. );
  357. /* Display: Séminaires */
  358. $handler = $view->new_display('panel_pane', 'Séminaires', 'panel_pane_5');
  359. $handler->display->display_options['defaults']['title'] = FALSE;
  360. $handler->display->display_options['title'] = 'Cycle de séminaire';
  361. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  362. $handler->display->display_options['defaults']['fields'] = FALSE;
  363. /* Champ: Contenu : Titre */
  364. $handler->display->display_options['fields']['title']['id'] = 'title';
  365. $handler->display->display_options['fields']['title']['table'] = 'node';
  366. $handler->display->display_options['fields']['title']['field'] = 'title';
  367. $handler->display->display_options['fields']['title']['label'] = '';
  368. $handler->display->display_options['fields']['title']['exclude'] = TRUE;
  369. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  370. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  371. $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  372. $handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
  373. /* Champ: Contenu : Résumé du document */
  374. $handler->display->display_options['fields']['field_popsu_doc_body']['id'] = 'field_popsu_doc_body';
  375. $handler->display->display_options['fields']['field_popsu_doc_body']['table'] = 'field_data_field_popsu_doc_body';
  376. $handler->display->display_options['fields']['field_popsu_doc_body']['field'] = 'field_popsu_doc_body';
  377. $handler->display->display_options['fields']['field_popsu_doc_body']['label'] = '';
  378. $handler->display->display_options['fields']['field_popsu_doc_body']['element_label_colon'] = FALSE;
  379. /* Champ: Contenu : Fichier(s) joint(s) */
  380. $handler->display->display_options['fields']['field_popsu_doc_files']['id'] = 'field_popsu_doc_files';
  381. $handler->display->display_options['fields']['field_popsu_doc_files']['table'] = 'field_data_field_popsu_doc_files';
  382. $handler->display->display_options['fields']['field_popsu_doc_files']['field'] = 'field_popsu_doc_files';
  383. $handler->display->display_options['fields']['field_popsu_doc_files']['label'] = '';
  384. $handler->display->display_options['fields']['field_popsu_doc_files']['alter']['alter_text'] = TRUE;
  385. $handler->display->display_options['fields']['field_popsu_doc_files']['alter']['text'] = '<span class="file">
  386. <img class="file-icon" src="/modules/file/icons/application-pdf.png" title="application/pdf" alt="">
  387. <a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank" type="application/pdf">Télécharger</a>
  388. </span>';
  389. $handler->display->display_options['fields']['field_popsu_doc_files']['element_label_colon'] = FALSE;
  390. $handler->display->display_options['fields']['field_popsu_doc_files']['hide_empty'] = TRUE;
  391. $handler->display->display_options['fields']['field_popsu_doc_files']['click_sort_column'] = 'fid';
  392. $handler->display->display_options['fields']['field_popsu_doc_files']['type'] = 'file_url_plain';
  393. $handler->display->display_options['fields']['field_popsu_doc_files']['group_rows'] = FALSE;
  394. $handler->display->display_options['fields']['field_popsu_doc_files']['delta_offset'] = '0';
  395. /* Champ: Contenu : Lien de publication */
  396. $handler->display->display_options['fields']['publishcontent']['id'] = 'publishcontent';
  397. $handler->display->display_options['fields']['publishcontent']['table'] = 'node';
  398. $handler->display->display_options['fields']['publishcontent']['field'] = 'publishcontent';
  399. $handler->display->display_options['fields']['publishcontent']['label'] = '';
  400. $handler->display->display_options['fields']['publishcontent']['element_label_colon'] = FALSE;
  401. $handler->display->display_options['fields']['publishcontent']['unpublish'] = 'Supprimer';
  402. /* Champ: Contenu : Lien de modification */
  403. $handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
  404. $handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
  405. $handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
  406. $handler->display->display_options['fields']['edit_node']['label'] = '';
  407. $handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
  408. $handler->display->display_options['fields']['edit_node']['hide_empty'] = TRUE;
  409. $handler->display->display_options['fields']['edit_node']['text'] = 'Modifier';
  410. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  411. $handler->display->display_options['argument_input'] = array(
  412. 'field_popsu_doc_parent_nid' => array(
  413. 'type' => 'user',
  414. 'context' => 'string.raw',
  415. 'context_optional' => 0,
  416. 'panel' => '0',
  417. 'fixed' => '',
  418. 'label' => 'Contenu : Page d&#039;attache du document (field_popsu_doc_parent)',
  419. ),
  420. 'field_popsu_doc_type_tid' => array(
  421. 'type' => 'user',
  422. 'context' => 'string.raw',
  423. 'context_optional' => 0,
  424. 'panel' => '0',
  425. 'fixed' => '',
  426. 'label' => 'Contenu : Type de document (field_popsu_doc_type)',
  427. ),
  428. );
  429. /* Display: Bibliographie */
  430. $handler = $view->new_display('panel_pane', 'Bibliographie', 'panel_pane_6');
  431. $handler->display->display_options['defaults']['title'] = FALSE;
  432. $handler->display->display_options['title'] = 'Bibliographie';
  433. $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  434. $handler->display->display_options['pane_category']['name'] = 'Volets de vue';
  435. $handler->display->display_options['argument_input'] = array(
  436. 'field_popsu_doc_parent_nid' => array(
  437. 'type' => 'user',
  438. 'context' => 'string.raw',
  439. 'context_optional' => 0,
  440. 'panel' => '0',
  441. 'fixed' => '',
  442. 'label' => 'Contenu : Page d&#039;attache du document (field_popsu_doc_parent)',
  443. ),
  444. 'field_popsu_doc_type_tid' => array(
  445. 'type' => 'user',
  446. 'context' => 'string.raw',
  447. 'context_optional' => 0,
  448. 'panel' => '0',
  449. 'fixed' => '',
  450. 'label' => 'Contenu : Type de document (field_popsu_doc_type)',
  451. ),
  452. );
  453. $translatables['documents'] = array(
  454. t('Master'),
  455. t('plus'),
  456. t('Appliquer'),
  457. t('Réinitialiser'),
  458. t('Trier par'),
  459. t('Asc'),
  460. t('Desc'),
  461. t('<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank">[title]</a>'),
  462. t('Supprimer'),
  463. t('Récupérer dans la corbeille'),
  464. t('Modifier'),
  465. t('Tout'),
  466. t('Publication - Fiche'),
  467. t('<a href="[field_popsu_doc_files]" class="fiche-descriptive" target="_blank">Télécharger la fiche descriptive [PDF]</a>'),
  468. t('Volets de vue'),
  469. t('Document attaché'),
  470. t('Documents'),
  471. t('Ressource attachée'),
  472. t('Ressources'),
  473. t('[field_popsu_doc_source] : '),
  474. t('[field_popsu_doc_source]<a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank">[title]</a>'),
  475. t('Questionnaire attaché'),
  476. t('Questionnaires'),
  477. t('Séminaires'),
  478. t('Cycle de séminaire'),
  479. t('<span class="file">
  480. <img class="file-icon" src="/modules/file/icons/application-pdf.png" title="application/pdf" alt="">
  481. <a href="[field_popsu_doc_files]" class="documents-fichiers" target="_blank" type="application/pdf">Télécharger</a>
  482. </span>'),
  483. t('Bibliographie'),
  484. );
  485. $export['documents'] = $view;
  486. return $export;
  487. }