Topic: Recent record spatial filtering.
I would like to filter the 'recent records' page to show only records for the LRC area. I've tried editing the PHP code on the Panel but it seems to not want to pick up the location_id.
Can i do this from the panel or do i have to change the query itself somewhere else there doesn't seem to be a corresponding iform i can edit.
<p>
The following list of records includes verified records and those awaiting verification of species groups you are interested in which have been recently added in your area.</p>
<?php
iform_load_helpers(array('report_helper'));
global $auth;
if (!isset($auth))
$auth = report_helper::get_read_auth(variable_get('indicia_website_id',''), variable_get('indicia_password',''));
echo report_helper::report_grid(array(
'id'=>'latest-records',
'readAuth' => $auth,
'dataSource'=>'library/occurrences/explore_list_using_spatial_index_builder',
'location_id'=>'1464',
'itemsPerPage' => 5,
'rowId'=>'occurrence_id',
'columns'=>array(
array('fieldname'=>'taxon','template'=>'<div class="status-{record_status} certainty-{certainty} zero-{zero_abundance}">{taxon}</div>','display'=>'Species'),
array('fieldname'=>'location_name', 'display'=>'Site name'),
array('fieldname'=>'entered_sref', 'display'=>'Grid Ref'),
array('fieldname'=>'date', 'display'=>'Date'),
array('fieldname'=>'recorder', 'display'=>'Recorder'),
array('fieldname'=>'certainty', 'visible'=>false),
array('fieldname'=>'geom', 'visible'=>false, 'mappable'=>true)
),
'includeAllColumns' => false,
'pager' => false,
'sendOutputToMap'=>true,
'rowClass'=>'certainty{certainty}',
'extraParams' => array(
'survey_id'=>'',
'taxon_group_id'=>'',
'smpattrs'=>'',
'occattrs'=>'',
'searchArea'=>'',
'idlist'=>'',
'currentUser'=>0,
'ownData'=>0,
'location_id'=>'1464',
'ownLocality'=>0,
'taxon_groups'=>'',
'ownGroups'=>0)
));
?>