Skip to content
Snippets Groups Projects
Commit d1b9c78a authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Merge branch 'Observation' into 'develop'

Observation

See merge request !14
parents f3840b72 65d8dc91
No related branches found
No related tags found
2 merge requests!17Develop,!14Observation
...@@ -170,8 +170,9 @@ public class ObservationController extends HttpServlet { ...@@ -170,8 +170,9 @@ public class ObservationController extends HttpServlet {
} }
} }
catch(NumberFormatException nfe) { catch(NumberFormatException nfe) {
statusTypeId = null; //nfe.printStackTrace();
pestOrganismId = null; statusTypeId = -1;
pestOrganismId = -1;
viewOthersObservations = false; viewOthersObservations = false;
organizationGroupId = null; organizationGroupId = null;
} }
...@@ -233,6 +234,7 @@ public class ObservationController extends HttpServlet { ...@@ -233,6 +234,7 @@ public class ObservationController extends HttpServlet {
Collections.sort(observations); Collections.sort(observations);
Collections.reverse(observations); Collections.reverse(observations);
observations.forEach(o->System.out.println(o));
List<Organism> allPests = em.createNamedQuery("Organism.findAllPests").getResultList(); List<Organism> allPests = em.createNamedQuery("Organism.findAllPests").getResultList();
request.setAttribute("shortcuts", shortcuts); request.setAttribute("shortcuts", shortcuts);
request.setAttribute("allPests", SessionControllerGetter.getOrganismBean().sortOrganismsByLocalName(allPests, SessionLocaleUtil.getCurrentLocale(request).getLanguage())); request.setAttribute("allPests", SessionControllerGetter.getOrganismBean().sortOrganismsByLocalName(allPests, SessionLocaleUtil.getCurrentLocale(request).getLanguage()));
......
...@@ -202,7 +202,7 @@ public class PointOfInterestBean { ...@@ -202,7 +202,7 @@ public class PointOfInterestBean {
.createAndSetIconStyle() .createAndSetIconStyle()
.withScale(0.55) .withScale(0.55)
.createAndSetIcon() .createAndSetIcon()
.withHref(iconPath + "anemometer_mono.png"); .withHref(iconPath + "Map_pin_icon_green_small.png");
......
src/main/webapp/public/images/Map_pin_icon_green.svg.png

41 KiB

src/main/webapp/public/images/Map_pin_icon_green_small.png

1.43 KiB

...@@ -714,7 +714,7 @@ ...@@ -714,7 +714,7 @@
</div> </div>
</div> </div>
</div> </div>
<div style="display: none;"><div id="poiMarker" title="Marker"><img src="/public/images/anemometer_mono.png"/></div></div> <div style="display: none;"><div id="poiMarker" title="Marker"><img src="/public/images/Map_pin_icon_green_small.png"/></div></div>
</div> </div>
</#macro> </#macro>
<@page_html/> <@page_html/>
...@@ -63,8 +63,9 @@ ...@@ -63,8 +63,9 @@
<div class="form-inline"> <div class="form-inline">
<div class="form-group"> <div class="form-group">
<select class="form-control" name="statusTypeId"> <select class="form-control" name="statusTypeId">
<#list [-1,1,2,3] as statusTypeId> <option value="-1" <#if 1 == selectedStatusTypeId>selected="selected"</#if>>${i18nBundle.allCategories}</option>
<option value="${statusTypeId}" <#if statusTypeId == selectedStatusTypeId>selected="selected"</#if>><#switch statusTypeId><#case -1>${i18nBundle.allCategories}<#break><#case 1>${i18nBundle.pending}<#break><#case 2>${i18nBundle.rejected}<#break><#case 3>${i18nBundle.approved}</#switch></option> <#list [1,2,3] as statusTypeId>
<option value="${statusTypeId}" <#if statusTypeId == selectedStatusTypeId>selected="selected"</#if>><#switch statusTypeId><#case 1>${i18nBundle.pending}<#break><#case 2>${i18nBundle.rejected}<#break><#case 3>${i18nBundle.approved}</#switch></option>
</#list> </#list>
</select> </select>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment