<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi Daniel,
<div><br>
</div>
<div>
<blockquote type="cite">
<div dir="ltr">I have another question. How can I define which facets are shown on the Hubs to filter occurrence data? The visible filters depends&nbsp;<span id="fc55dd68-2805-4c63-bd70-c9ca37195824" class="GINGER_SOFTWARE_mark">of</span>&nbsp;a configuration file?</div>
</blockquote>
</div>
<div><br>
</div>
<div>This a good question and one that may help many other groups so I'd recommend posting questions like this to the GBIF ALA-portal mailing list (CCed).&nbsp;</div>
<div><br>
</div>
<div>The facet fields that are shown in the left column of the search results can be changed via the configuration settings - either Config.groovy or the external properties file (e.g. /data/generic-hub/config/generic-hub-config.properties), depending on which
 you are using.</div>
<div><br>
</div>
<div>The config variables starting with &quot;facets.&quot; are responsible for this:</div>
<div><br>
</div>
<div>•&nbsp;<b>facets.include</b> - comma separated list of fields to include (usually only those fields not in the default set as specified by ${biocache.baseUrl}/search/facets)</div>
<div>•&nbsp;<b>facets.exclude</b> - comma separated list of fields to exclude. i.e. fields in the default set you don't want to appear</div>
<div>• <b>facets.hide</b> -&nbsp;&nbsp;comma separated list of field that would be included the facet column but that you want to be hidden (i.e. unticked in the &quot;customise filters&quot; drop down). So these fields will be displayed if the user changes the default display
 settings and chooses to turn them on.</div>
<div><br>
</div>
<div>Note you can also change the default set of facets but this is set in the biocache-service application, also via config vars (I think). You may also want to change the way facets are grouped together (see&nbsp;${biocache.baseUrl}/search/grouped/facets).</div>
<div><br>
</div>
<div>I'll add this info to the Wiki, as well.</div>
<div><br>
</div>
<div>Cheers</div>
<div><br>
</div>
<div>Nick<br>
<div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
--&nbsp;<br>
Nick dos Remedios</div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Software Developer<br>
<div><a href="http://www.ala.org.au">Atlas of Living Australia</a>&nbsp;<br>
<a href="http://www.csiro.au/Organisation-Structure/National-Facilities.aspx">National Facilities &amp; Collections, CSIRO</a><br>
<a href="mailto:nick.dosremedios@csiro.au">nick.dosremedios@csiro.au</a></div>
<br>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
<div>
<div>On 8 Aug 2014, at 8:41 am, Daniel Lins &lt;<a href="mailto:daniel.lins@gmail.com">daniel.lins@gmail.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">Thanks Nick!!
<div><br>
</div>
<div>This was the problem. I changed the javascript file and now is working fine.<br>
</div>
<div><br>
</div>
<div>
<div>I have another question. How can I define which facets are shown on the Hubs to filter occurrence data? The visible filters depends
<span id="fc55dd68-2805-4c63-bd70-c9ca37195824" class="GINGER_SOFTWARE_mark">of</span> a configuration file?</div>
</div>
<div><br>
</div>
<div>Thanks again!!</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2014-08-06 23:16 GMT-03:00 <span dir="ltr">&lt;<a href="mailto:Nick.Dosremedios@csiro.au" target="_blank">Nick.Dosremedios@csiro.au</a></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr"></span><span dir="ltr">&gt;</span><span id="b0407f7f-a292-4436-952d-f87bc5bf719c" class="GINGER_SOFTWARE_mark">:</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi Daniel,
<div><br>
</div>
<div>Yes, if you think you found a <span id="9a690d6f-238e-40b6-829d-bcee5b2101b6" class="GINGER_SOFTWARE_mark">
bug then</span> add it as an issue on the Gihub page.</div>
<div><br>
</div>
<div>I had a look at the issue and I can see using the &quot;Inspect element&quot; tool in Chrome (or FireBug in FF), that when you click on the polygon is doing an AJAX lookup against the ALA prod
<span id="3ff1a060-4197-4bf2-975a-7f3eae44c6cd" class="GINGER_SOFTWARE_mark">biocache</span>:</div>
<div><br>
</div>
<div><a href="http://biocache.ala.org.au/ws/occurrence/facets.json?q=*:*&amp;wkt=POLYGON((-58.68896484375%20-8.254982704877863,-57.94189453125%20-8.320212289522944,-58.51318359374999%20-8.971897294083,-58.68896484375%20-8.254982704877863))&amp;facets=taxon_name&amp;callback=jQuery18304812444490380585_1407377434339&amp;_=1407377497545" target="_blank">http://biocache.ala.org.au/ws/occurrence/facets.json?q=*%3A*&amp;wkt=POLYGON((-58.68896484375%20-8.254982704877863,-57.94189453125%20-8.320212289522944,-58.51318359374999%20-8.971897294083,-58.68896484375%20-8.254982704877863))&amp;facets=taxon_name&amp;callback=jQuery18304812444490380585_1407377434339&amp;_=1407377497545</a></div>
<div><br>
</div>
<div>I think this was hard-coded by Adam, so I'll look to fixing it so it uses the config
<span id="563d05cf-02b5-45bd-9116-99c64f45f050" class="GINGER_SOFTWARE_mark">var</span> for the
<span id="cfc39a84-3602-4480-a79c-5ed00b20f594" class="GINGER_SOFTWARE_mark">bioacache</span> URL (<span id="2a4e7002-7237-48a1-bf5b-3c34081ae0a2" class="GINGER_SOFTWARE_mark">biocache</span><span id="d12fbb4d-9d91-4249-8c61-4c4a8fd6ccbf" class="GINGER_SOFTWARE_mark">.</span><span id="5fed094b-c474-4b7f-9b17-f6bfc3623fa6" class="GINGER_SOFTWARE_mark">baseUrl</span><span id="dec918a0-a5c5-4b3b-8944-fba660d427e5" class="GINGER_SOFTWARE_mark">&nbsp;)</span>.</div>
<div><br>
</div>
<div>Cheers</div>
<div><br>
</div>
<div>Nick<br>
<div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
--&nbsp;<br>
Nick <span id="afa0d466-7cfe-4006-9307-95341c36c504" class="GINGER_SOFTWARE_mark">
dos</span> Remedios</div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
Software Developer<br>
<div><a href="http://www.ala.org.au/" target="_blank">Atlas of Living Australia</a>&nbsp;<br>
<a href="http://www.csiro.au/Organisation-Structure/National-Facilities.aspx" target="_blank">National Facilities &amp; Collections, CSIRO</a><br>
<a href="mailto:nick.dosremedios@csiro.au" target="_blank">nick.dosremedios@csiro.au</a></div>
<br>
</div>
</div>
<br>
<br>
</div>
<br>
<div>
<div>
<div class="h5">
<div>On 7 Aug 2014, at 12:03 pm, Daniel Lins &lt;<a href="mailto:daniel.lins@gmail.com" target="_blank">daniel.lins@gmail.com</a>&gt; wrote:</div>
<br>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">Hi Nick, how are you?
<div><br>
</div>
<div>
<div>I have some questions about where we can log bugs found in ALA software. I can do this on the GitHub website?</div>
<div><br>
</div>
<div>The feature that calculates the number of species and occurrences within the drawn polygon has some problems (it shows incorrect values in the balloon<span id="1cebb88a-e829-45d7-a07d-080152b95cb9" class="GINGER_SOFTWARE_mark">)</span>​​. Below I will
 describe a step-by-step test which shows the problem:</div>
<div><br>
</div>
<div>1. All test data are shown on the map (BrazilData1.png).</div>
<div>2. A specific point on the map has 27 occurrences (BrazilData-<span id="b2bedf43-23a8-4443-9aca-41af43239bb3" class="GINGER_SOFTWARE_mark">specificarea</span><span id="dbf3d763-388b-4361-b167-192cf07cdf75" class="GINGER_SOFTWARE_mark">.</span><span id="bcf0395b-4c3a-4255-b047-8edf1059c4b9" class="GINGER_SOFTWARE_mark">png</span>).</div>
<div>3. When drawing a polygon around this point, the system shown that selected area has 0 species and 0 occurrences (CalcResultWithWrongValues.png).</div>
<div>4. When you click &quot;Show These records only&quot;, the system shows the 27 existing records in the selected area (FilteredDataWithCorrectValues.png).</div>
<div><br>
</div>
<div>Info 1: Sometimes the system shows 0 records. Most of the time it shows incorrect values​​. However, when you click &quot;Show These records only&quot;, the system displays the correct number of records.&nbsp;</div>
<div><br>
</div>
<div>Info 2: Generally the result of calculating the amount of species is also not correct.</div>
<div><br>
</div>
<div>You can access this portal <span id="036ee318-95e5-45e9-b11f-856560073243" class="GINGER_SOFTWARE_mark">
on</span> <a href="http://143.107.102.247:65002/avh-hub/occurrences/search?taxa=#tab_mapView" target="_blank">
http://143.107.102.247:65002/avh-hub/occurrences/search?taxa=#tab_mapView</a></div>
<div><br>
</div>
<div>Thanks!&nbsp;<br>
</div>
<div><br>
</div>
<div>Cheers.</div>
-- <br>
<div dir="ltr">
<div><font>Daniel Lins da Silva</font></div>
<div style="color:rgb(136,136,136)">(Mobile)&nbsp;<a value="&#43;5511961444050" style="color:rgb(17,85,204)">55 11 96144-4050</a></div>
<div style="color:rgb(136,136,136)">
<div><font>Research Center&nbsp;<span id="ab05c1a9-cfab-44d3-8107-4b0d0f91dd39" class="GINGER_SOFTWARE_mark">on</span>&nbsp;Biodiversity and Computing (Biocomp)</font></div>
<div><font>University of Sao Paulo, Brazil</font></div>
</div>
<div style="color:rgb(136,136,136)"><a href="mailto:daniellins@usp.br" style="color:rgb(17,85,204)" target="_blank">daniellins@usp.br</a></div>
<div style="color:rgb(136,136,136)"><a href="mailto:daniel.lins@gmail.com" style="color:rgb(17,85,204)" target="_blank">daniel.lins@gmail.com</a></div>
<div style="color:rgb(136,136,136)"><br>
</div>
</div>
</div>
</div>
</div>
</div>
<span>&lt;FilteredDataWithCorrectValues.png&gt;</span><span>&lt;CalcResultWithWrongValues.png&gt;</span><span>&lt;BrazilData-specificarea.png&gt;</span><span>&lt;BrazilData1.png&gt;</span></blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div><font>Daniel Lins da Silva</font></div>
<div style="color:rgb(136,136,136)">(Mobile)&nbsp;<a value="&#43;5511961444050" style="color:rgb(17,85,204)">55 11 96144-4050</a></div>
<div style="color:rgb(136,136,136)">
<div><font>Research Center&nbsp;<span id="7b415ec8-0c65-4cff-8ce1-1a40cc489561" class="GINGER_SOFTWARE_mark">on</span>&nbsp;Biodiversity and Computing (Biocomp)</font></div>
<div><font>University of Sao Paulo, Brazil</font></div>
</div>
<div style="color:rgb(136,136,136)"><a href="mailto:daniellins@usp.br" style="color:rgb(17,85,204)" target="_blank">daniellins@usp.br</a></div>
<div style="color:rgb(136,136,136)"><a href="mailto:daniel.lins@gmail.com" style="color:rgb(17,85,204)" target="_blank">daniel.lins@gmail.com</a></div>
<div style="color:rgb(136,136,136)"><br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>