-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathluggage_isudigitalrepo.views_default.inc
222 lines (216 loc) · 13.8 KB
/
luggage_isudigitalrepo.views_default.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?php
/**
* @file
* luggage_isudigitalrepo.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function luggage_isudigitalrepo_views_default_views() {
$export = array();
$view = new view();
$view->name = 'digital_repository';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'ISU Digital Repository Publications';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'ISU Digital Repository';
$handler->display->display_options['css_class'] = 'node';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['link_display'] = 'publications';
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '25';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['style_options']['grouping'] = array(
0 => array(
'field' => 'field_publication_date',
'rendered' => 1,
'rendered_strip' => 1,
),
);
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'title' => 'title',
'field_publication_authors' => 'field_publication_authors',
);
$handler->display->display_options['row_options']['separator'] = ',';
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
/* Footer: Global: Text area */
$handler->display->display_options['footer']['area']['id'] = 'area';
$handler->display->display_options['footer']['area']['table'] = 'views';
$handler->display->display_options['footer']['area']['field'] = 'area';
$handler->display->display_options['footer']['area']['label'] = 'View More';
$handler->display->display_options['footer']['area']['empty'] = TRUE;
$handler->display->display_options['footer']['area']['content'] = '<strong><a href="http://lib.dr.iastate.edu/set_name/">View additional publications on the ISU Digital Repository</a></strong>';
$handler->display->display_options['footer']['area']['format'] = 'wysiwyg';
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
/* Field: Content: Authors */
$handler->display->display_options['fields']['field_publication_authors']['id'] = 'field_publication_authors';
$handler->display->display_options['fields']['field_publication_authors']['table'] = 'field_data_field_publication_authors';
$handler->display->display_options['fields']['field_publication_authors']['field'] = 'field_publication_authors';
$handler->display->display_options['fields']['field_publication_authors']['label'] = '';
$handler->display->display_options['fields']['field_publication_authors']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_publication_authors']['type'] = 'text_plain';
$handler->display->display_options['fields']['field_publication_authors']['delta_offset'] = '0';
/* Field: Content: PDF */
$handler->display->display_options['fields']['field_publication_pdf']['id'] = 'field_publication_pdf';
$handler->display->display_options['fields']['field_publication_pdf']['table'] = 'field_data_field_publication_pdf';
$handler->display->display_options['fields']['field_publication_pdf']['field'] = 'field_publication_pdf';
$handler->display->display_options['fields']['field_publication_pdf']['label'] = '';
$handler->display->display_options['fields']['field_publication_pdf']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_publication_pdf']['click_sort_column'] = 'url';
$handler->display->display_options['fields']['field_publication_pdf']['type'] = 'link_plain';
/* Field: Content: Repository Link */
$handler->display->display_options['fields']['field_publication_link']['id'] = 'field_publication_link';
$handler->display->display_options['fields']['field_publication_link']['table'] = 'field_data_field_publication_link';
$handler->display->display_options['fields']['field_publication_link']['field'] = 'field_publication_link';
$handler->display->display_options['fields']['field_publication_link']['label'] = '';
$handler->display->display_options['fields']['field_publication_link']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_publication_link']['click_sort_column'] = 'url';
$handler->display->display_options['fields']['field_publication_link']['type'] = 'link_plain';
/* Field: Content: Publication Date */
$handler->display->display_options['fields']['field_publication_date']['id'] = 'field_publication_date';
$handler->display->display_options['fields']['field_publication_date']['table'] = 'field_data_field_publication_date';
$handler->display->display_options['fields']['field_publication_date']['field'] = 'field_publication_date';
$handler->display->display_options['fields']['field_publication_date']['label'] = '';
$handler->display->display_options['fields']['field_publication_date']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_publication_date']['settings'] = array(
'format_type' => 'year_only',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Sort criterion: Content: Publication Date (field_publication_date) */
$handler->display->display_options['sorts']['field_publication_date_value']['id'] = 'field_publication_date_value';
$handler->display->display_options['sorts']['field_publication_date_value']['table'] = 'field_data_field_publication_date';
$handler->display->display_options['sorts']['field_publication_date_value']['field'] = 'field_publication_date_value';
$handler->display->display_options['sorts']['field_publication_date_value']['order'] = 'DESC';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'publication' => 'publication',
);
$handler->display->display_options['filters']['type']['group'] = 1;
/* Display: Publications */
$handler = $view->new_display('page', 'Publications', 'publications');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['title'] = 'Publications';
$handler->display->display_options['defaults']['footer'] = FALSE;
/* Footer: Global: Text area */
$handler->display->display_options['footer']['area']['id'] = 'area';
$handler->display->display_options['footer']['area']['table'] = 'views';
$handler->display->display_options['footer']['area']['field'] = 'area';
$handler->display->display_options['footer']['area']['label'] = 'View More';
$handler->display->display_options['footer']['area']['content'] = '<strong><a href="http://lib.dr.iastate.edu/set_name/">View additional publications on the ISU Digital Repository</a></strong>';
$handler->display->display_options['footer']['area']['format'] = 'wysiwyg';
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
$handler->display->display_options['filter_groups']['groups'] = array(
1 => 'AND',
2 => 'OR',
);
$handler->display->display_options['defaults']['filters'] = FALSE;
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'publication' => 'publication',
);
$handler->display->display_options['filters']['type']['group'] = 1;
$handler->display->display_options['path'] = 'publications/publications';
$handler->display->display_options['menu']['type'] = 'default tab';
$handler->display->display_options['menu']['title'] = 'All';
$handler->display->display_options['menu']['weight'] = '0';
$handler->display->display_options['menu']['name'] = 'main-menu';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
$handler->display->display_options['tab_options']['type'] = 'normal';
$handler->display->display_options['tab_options']['title'] = 'Publications';
$handler->display->display_options['tab_options']['weight'] = '0';
$handler->display->display_options['tab_options']['name'] = 'main-menu';
/* Display: Publications Block */
$handler = $view->new_display('block', 'Publications Block', 'publications_block');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['title'] = 'Recent Publications';
$handler->display->display_options['defaults']['css_class'] = FALSE;
$handler->display->display_options['defaults']['use_more'] = FALSE;
$handler->display->display_options['use_more'] = TRUE;
$handler->display->display_options['defaults']['use_more_always'] = FALSE;
$handler->display->display_options['defaults']['use_more_always'] = FALSE;
$handler->display->display_options['use_more_always'] = TRUE;
$handler->display->display_options['defaults']['use_more_text'] = FALSE;
$handler->display->display_options['defaults']['group_by'] = FALSE;
$handler->display->display_options['defaults']['query'] = FALSE;
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '5';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'title' => 'title',
'field_publication_authors' => 'field_publication_authors',
);
$handler->display->display_options['row_options']['separator'] = ',';
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['footer'] = FALSE;
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
$handler->display->display_options['defaults']['filters'] = FALSE;
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'publication' => 'publication',
);
$handler->display->display_options['filters']['type']['group'] = 1;
$export['digital_repository'] = $view;
return $export;
}