Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement/js rendering occurrencelist #2071

Merged
merged 16 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion classes/OccurrenceMapManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getCoordinateMap($start, $limit){
if($this->sqlWhere){
$statsManager = new OccurrenceAccessStats();
$sql = 'SELECT o.occid, CONCAT_WS(" ",o.recordedby,IFNULL(o.recordnumber,o.eventdate)) AS identifier, '.
'o.sciname, IF(ts.family IS NULL, o.family, ts.family) as family, o.tidinterpreted, o.DecimalLatitude, o.DecimalLongitude, o.collid, o.catalognumber, '.
'o.sciname, IF(ts.family IS NULL, o.family, ts.family) as family, o.tidinterpreted, o.DecimalLatitude, o.DecimalLongitude, o.collid, o.catalogNumber, '.
'o.othercatalognumbers, c.institutioncode, c.collectioncode, c.CollectionName '.
'FROM omoccurrences o INNER JOIN omcollections c ON o.collid = c.collid ';

Expand Down Expand Up @@ -70,6 +70,7 @@ public function getCoordinateMap($start, $limit){
$coordArr[$collName][$row->occid]["tid"] = $tidInterpreted;
$coordArr[$collName][$row->occid]["fam"] = ($row->family?strtoupper($row->family):'undefined');
$coordArr[$collName][$row->occid]["sn"] = $row->sciname;
$coordArr[$collName][$row->occid]["catalogNumber"] = $row->catalogNumber;
$coordArr[$collName][$row->occid]["id"] = $this->htmlEntities($row->identifier);
$coordArr[$collName]["c"] = $color;
}
Expand Down
Loading