Skip to content

Commit

Permalink
fix: front-end code for occurrence search
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJHANG committed Feb 6, 2024
1 parent 13ed6e1 commit a223d06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend-data/src/occurrence/OccurrenceSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function OccurrenceSearch(props) {
const eventDate = row.taibif_eventDate ? row.taibif_eventDate : '';
const country_ch = map2.get(row.taibif_country);
const countryOrLocality = (props.language === 'zh-hant') ? [country_ch, row.locality].join('/') : [row.taibif_country, row.locality].join('/');
const bor = bor_allow.includes(row.taibif_basisOfRecord) ? row.taibif_basisOfRecord : '';
const bor = bor_allow.includes(row.taibif_basisOfRecord) ? row.taibif_basisOfRecord : row.basisOfRecord;
const datasetKey = row.taibif_datasetKey ? row.taibif_datasetKey : ''

return (
Expand Down
2 changes: 1 addition & 1 deletion utils/solr_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def __init__(self, core, facet_values=[]):
self.solr_url = ''
self.solr_q = 'basisOfRecord:*' # Only fetch occurrence data, using basisOfRecord to estimate
# Limit the respoense fields
self.filter_field = 'taibif_vernacularName,taibif_country,taibif_locality,taibif_basisOfRecord,taibif_datasetKey,taibif_formattedName,taibif_dataset_name_zh,taibif_kingdom,taibif_phylum,taibif_class,taibif_order,taibif_family,taibif_genus,taibif_occ_id,taibif_eventDate'
self.filter_field = 'taibif_vernacularName,taibif_country,taibif_locality,taibif_basisOfRecord,basisOfRecord,taibif_datasetKey,taibif_formattedName,taibif_dataset_name_zh,taibif_kingdom,taibif_phylum,taibif_class,taibif_order,taibif_family,taibif_genus,taibif_occ_id,taibif_eventDate'

def generate_solr_url(self, req_lists=[]):
map_query = ''
Expand Down

0 comments on commit a223d06

Please sign in to comment.