From 3e955c055f466196dc34028b2e903987db19283a Mon Sep 17 00:00:00 2001 From: MuchQuak Date: Wed, 15 Jan 2025 14:48:33 -0800 Subject: [PATCH] Closes #2053 Closes #1845 --- collections/map/index.php | 1 - collections/map/occurrencelist.php | 143 ----------------------------- 2 files changed, 144 deletions(-) delete mode 100644 collections/map/occurrencelist.php diff --git a/collections/map/index.php b/collections/map/index.php index 76f6a0708c..fb20d903d0 100644 --- a/collections/map/index.php +++ b/collections/map/index.php @@ -1976,7 +1976,6 @@ function autoColorTaxa() { autoColor("portal", v => v.portalid, portalLegendMap) }; - //This is used in occurrencelist.php which is submodule of this function emit_occurrence_click(occid) { document.dispatchEvent(new CustomEvent('occur_click', { detail: { diff --git a/collections/map/occurrencelist.php b/collections/map/occurrencelist.php deleted file mode 100644 index 9c8253b9f5..0000000000 --- a/collections/map/occurrencelist.php +++ /dev/null @@ -1,143 +0,0 @@ -getQueryTermStr(); -$recCnt = $mapManager->getRecordCnt(); -$occArr = array(); - -$host = GeneralUtil::getDomain() . $CLIENT_ROOT; - -if(!$recLimit || $recCnt < $recLimit){ - $occArr = $mapManager->getOccurrenceArr($pageNumber, $cntPerPage); -} -?> -
-
-
- - - - - -
-
- - - - -
- -
- -

- -

- -
-

'; - $href = $host . '/collections/map/occurrencelist.php?' ; - $lastPage = (int)($recCnt / $cntPerPage) + 1; - $startPage = ($pageNumber > 5?$pageNumber - 5:1); - $endPage = ($lastPage > $startPage + 10?$startPage + 10:$lastPage); - $pageBar = ''; - if($startPage > 1){ - $pageBar .= '' . $LANG['PAGINATION_FIRST'] . ''; - $pageBar .= '<<'; - } - for($x = $startPage; $x <= $endPage; $x++){ - if($pageNumber != $x){ - $pageBar .= '' . $x . ''; - } - else{ - $pageBar .= ''.$x.''; - } - } - if(($lastPage - $startPage) >= 10){ - $pageBar .= '>>'; - $pageBar .= 'Last'; - } - $pageBar .= '
'; - $beginNum = ($pageNumber - 1)*$cntPerPage + 1; - $endNum = $beginNum + $cntPerPage - 1; - if($endNum > $recCnt) $endNum = $recCnt; - $pageBar .= $LANG['PAGINATION_PAGE'].' '.$pageNumber.', '.$LANG['PAGINATION_RECORDS'].' '.$beginNum.'-'.$endNum.' '.$LANG['PAGINATION_OF'].' '.$recCnt; - $paginationStr .= $pageBar; - $paginationStr .= '

'; - echo $paginationStr; - - if($occArr){ - ?> -
- - - - - - - - - - $recArr){ - $trCnt++; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - } - ?> -
' . $recArr["cat"] . ''; - echo '' . ($recArr["c"]?$recArr["c"]:"Not available") .''; - echo '' . $recArr["e"] . ''. $recArr["s"] . '' . $LANG['SEE_MAP_POINT'] . '
-
- $startPage) echo '
'.$paginationStr.'
'; - } - else{ - if($recCnt > $recLimit){ - ?> -
Record count exceeds limit
- -
No records found matching the query
- -
-