1 (edited by BDeed 17-05-2017 11:31:32)

Topic: Map Explorer date_age

I have an iform which allows registered users to access all 'available' Indicia records in addition to the MBB stuff + do some basic query stuff (Explore records iform). It works very well thank you.

However, with increasing use of the site i would like to set a default filter to only include the last years records (poss. just the last few months) to avoid battering the warehouse however adding a preset filter date_age=(as indicated in documentation relating to other forms) appears to be being ignored with no errors thrown.

Is there a filter i can use to do this for the Explore records form?

http://indicia-docs.readthedocs.io/en/l … t=date_age

Natural History & Biodiversity Data Enthusiast

2

Re: Map Explorer date_age

Hi

I'm not completely clear which Iform you are using.
Whichever one it is will be using a report file to get data from the warehouse.
The parameters available to filter the data will depend on the design of the report.

An example from iRecord which is working is the Explore All Records page, https://www.brc.ac.uk/irecord/all-records.
This uses the 'Reporting Page (Customisable)' page type in the 'Reporting' page category.

The Form Structure in the User Interface section of the config reads as follows

[standard_params]
@allowSave=true
@linkToMapDiv=map
@taxon_list_id=15
@filter-date_age=1 month
@filter-indexed_location_id={profile_location}
@indexedLocationTypeIds=[15,1370,2188,1103]
@otherLocationTypeIds=[2412]
[map]
@dataSource=library/occurrences/filterable_explore_list_mapping
@dataSourceLoRes=library/occurrences/filterable_explore_list_mapping_lores
=Records=
[report_grid]
@dataSource=library/occurrences/filterable_explore_list
@rowId=occurrence_id
=Species=
[report_grid]
@id=species
@dataSource=library/taxa/filterable_explore_list
@downloadLink=true
@rowId=taxon_meaning_id
@linkFilterToMap=false
=Taxon groups=
[report_grid]
@id=taxon_groups
@dataSource=library/taxon_groups/filterable_explore_list
@downloadLink=true
@rowId=taxon_group_id
@linkFilterToMap=false
=Families=
<p>This report shows a breakdown of the species and record counts by taxonomic family.</p>
[report_grid]
@id=families
@dataSource=library/taxa/filterable_explore_list_taxonomy_breakdown
@downloadLink=true
@linkFilterToMap=false
=Photos=
[report_grid]
@id=photos
@dataSource=library/occurrence_images/filterable_explore_list
@rowId=occurrence_id
@includeAllColumns=false
@headers=false
@galleryColCount=4
@itemsPerPage=16
@linkFilterToMap=false

The @dataSource values are picking the reports to use and the @filter-date_age is limiting results because these are all filterable reports which support the standard parameters.

See http://indicia-docs.readthedocs.io/en/l … ports.html for some additional documentation.

Jim Bacon.