Revision 34dd7be9
Added by Andreas Kohlbecker about 11 years ago
7.x/modules/cdm_dataportal/includes/pages.inc | ||
---|---|---|
39 | 39 |
$relationship_choice['direct'] = get_selection($relationship_choice['direct']); |
40 | 40 |
$relationship_choice['invers'] = get_selection($relationship_choice['invers']); |
41 | 41 |
|
42 |
$by_associatedtaxon_query = http_build_query(array( |
|
43 |
'relationshipsInvers' => implode(',', $relationship_choice['invers']), |
|
44 |
'relationships' => implode(',', $relationship_choice['direct']), |
|
45 |
'pageSize' => null // all hits in one page |
|
46 |
) |
|
47 |
); |
|
42 |
$by_associatedtaxon_query_parameters = array( |
|
43 |
'relationshipsInvers' => implode(',', $relationship_choice['invers']), |
|
44 |
'relationships' => implode(',', $relationship_choice['direct']), |
|
45 |
); |
|
46 |
|
|
47 |
if (isset($_REQUEST['pager']) && is_array($_REQUEST['pager'])) { |
|
48 |
$by_associatedtaxon_query_parameters = array_merge($by_associatedtaxon_query_parameters, $_REQUEST['pager']); |
|
49 |
} |
|
50 |
|
|
51 |
$by_associatedtaxon_query = http_build_query($by_associatedtaxon_query_parameters); |
|
48 | 52 |
|
49 | 53 |
$pager = cdm_ws_get(CDM_WS_OCCURRENCE_BY_ASSOCIATEDTAXON, |
50 | 54 |
null, |
... | ... | |
192 | 196 |
} |
193 | 197 |
} |
194 | 198 |
|
195 |
$render_array['specimen_list'] = $specimen_table; |
|
199 |
$render_array['specimen_list'] = $specimen_table; |
|
200 |
$render_array['pager'] = markup_to_render_array( |
|
201 |
theme('cdm_pager', array( |
|
202 |
'pager' => $pager, |
|
203 |
'path' => $_REQUEST['q'], |
|
204 |
'parameters' => $_REQUEST, |
|
205 |
)), |
|
206 |
10 // weight |
|
207 |
); |
|
196 | 208 |
|
197 | 209 |
RenderHints::popFromRenderStack(); |
198 | 210 |
return $render_array; |
Also available in: Unified diff
paging for specimens implemented, common pager functions modified also for taxon search