All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.enUS.MapResultGenPage.hbs Maven / Gradle / Ivy

Go to download

Red Hat Global Social Innovation Program is partnering with Boston University and Smarta Byar in order to collaborate on creating a global and open research platform allowing researchers to study what social sustainability means by using a digital twin of Veberöd, Sweden as the test village, supported by Smarta Byar. The goal of this collaboration is to build the open source technological infrastructure so that researchers can collaborate on this platform effectively to study mobility, public health, sustainability among other study areas to ultimately help define better the link between well being and eco-smart cities.

The newest version!
{{#*inline "htmTitleMapResultPage"}}		
		{{#if searchListMapResult_}}{{#eq mapResultCount int1}}{{#if id}}map result{{else}}map result{{/if}}{{else}}no map result found{{/eq}}{{else}}map results{{/if}}
{{/inline}}
{{#*inline "htmMetaMapResultPage"}}{{> "htmMetaBaseResultPage"}}{{/inline}}
{{#*inline "htmStyleMapResultPage"}}{{> "htmStyleBaseResultPage"}}{{/inline}}
{{#*inline "htmScriptsMapResultPage"}}{{> "htmScriptsBaseResultPage"}}		
		
{{/inline}}
{{#*inline "htmScriptMapResultPage"}}		
		
{{/inline}}
{{#*inline "websocketMapResultPage"}}
				
				websocketMapResult(websocketMapResultInner);
{{/inline}}
{{#*inline "jsWebsocketMapResultPage"}}{{/inline}}
{{#*inline "jsTooltipMapResultPage"}}{{/inline}}
{{#*inline "htmTooltipMapResultPage"}}

${feature.properties.objectTitle}

{{/inline}} {{#*inline "jsLegendMapResultPage"}} var div = L.DomUtil.create('div', 'info legend'); var htm = ''; $.each( window.listMapResult, function(index, mapResult) { if(mapResult.location) { var shapes = []; if(Array.isArray(mapResult.location)) shapes = shapes.concat(mapResult.location); else shapes.push(mapResult.location); shapes.forEach(function(shape, index) { htm += htmLegendMapResult(map, shape, mapResult, index, shapes.length); }); } }); div.innerHTML = htm; return div; {{/inline}} {{#*inline "htmLegendMapResultPage"}}
${title}
{{/inline}} {{#*inline "jsStyleMapResultPage"}} if(feature.geometry.type == 'Point') { return { radius: 8 , fillColor: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000')) , color: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000')) , weight: 1 , opacity: 0.7 , fillOpacity: 0.7 }; } else if(feature.geometry.type == 'LineString') { return { color: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000')) , weight: 5 , opacity: 0.7 }; } else { return { fillColor: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000')) , color: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000')) , weight: 3 , opacity: 0.7 , fillOpacity: 0.7 }; } {{/inline}} {{#*inline "htmUrlMapResult"}}{{pageUri}}?q={{query.q}}&rows={{#if rows}}{{rows}}{{else}}{{pagination.rows}}{{/if}}&rows={{#if start}}{{start}}{{else}}{{pagination.start}}{{/if}}{{#each query.fq}}{{#eq fq this}}{{else}}&fq={{fq}}:{{val}}{{/eq}}{{/each}}{{#each query.sort}}{{#eq sort this}}{{else}}&sort={{var}} {{order}}{{/eq}}{{/each}}{{/inline}} {{#*inline "htmHeadMapResultPage"}}{{#block "htmTitle"}}{{/block}}{{#block "htmMeta"}}{{/block}}{{#block "htmStyle"}}{{/block}}{{#block "htmScripts"}}{{/block}}{{#block "htmScript"}}{{/block}}{{/inline}} {{#*inline "htmBodySearchMapResultPage"}}
{{#each varsQ}}
{{/each}}
start={{ start }}
rows={{ rows }}
{{/inline}} {{#*inline "htmBodyFiltersMapResultPage"}}
{{#each varsFq }}
{{#if val }}fq={{ var }}:{{encodeURIComponent val }}{{/if}}
{{#if facetField.var }}facet.field={{ facetField.var }}{{/if}}
    {{#each facetField.counts }}
  1. {{ @key }}: {{ this }}
  2. {{/each}}
{{/each}}
{{/inline}} {{#*inline "htmBodyRangeMapResultPage"}}
{{#if rangeGap }}facet.range.gap={{encodeURIComponent rangeGap }}{{/if}}
{{#if rangeStart }}facet.range.start={{encodeURIComponent rangeStart }}{{/if}}
{{#if rangeEnd }}facet.range.end={{encodeURIComponent rangeEnd }}{{/if}}
{{#if defaultRangeVar }}facet.range={!tag=r1}{{encodeURIComponent defaultRangeVar }}{{/if}}
Range Gap
Range Start
Range End
{{#each varsRange }} {{/each}}
{{/inline}} {{#*inline "htmBodyPivotMapResultPage"}}
{{#if defaultPivotVars }}
facet.pivot={!range=r1}{{#each defaultPivotVars }}{{#if @index }},{{/if}}{{ this }}{{/each}}
{{/if}}
{{#each varsFq }} {{/each}}
{{/inline}} {{#*inline "htmBodyFieldListMapResultPage"}}
{{#if defaultFieldListVars }}
fl={{#each defaultFieldListVars }}{{#if @index }},{{/if}}{{ this }}{{/each}}
{{/if}}
{{#each varsFq }} {{/each}}
{{/inline}} {{#*inline "htmBodyStatsMapResultPage"}}
{{#if defaultStatsVars }} {{#each defaultStatsVars }}
stats.field={{ this }}
{{/each}}{{/if}}
{{#each varsFq }} {{#if enableStats }} {{/if}} {{/each}}
{{#if ./stats }} {{#each ./stats }} {{#eq @key 'name' }}{{else}}
{{ @key }}: {{ this }}
{{/eq}} {{/each}} {{#if ./stats/max }}
step min max speed in seconds
{{/if}} {{/if}}
{{/inline}} {{#*inline "htmBodyMenuMapResultPage"}} {{> "htmBodyMenuBaseResultPage"}}{{/inline}} {{#*inline "htmBodyGraphMapResultPage"}}
{{/inline}} {{#*inline "htmBodyGraphLocationMapResultPage"}}
{{/inline}} {{#*inline "htmBodyCount0MapResultPage"}}

{{#if classIconCssClasses}} {{/if}} map results

{{#if classIconCssClasses}} {{/if}} no map result found

{{/inline}} {{#*inline "htmBodyCount1MapResultPage"}}

{{#if classIconCssClasses}} {{/if}} map result

{{mapResult_.objectTitle}}

{{/inline}} {{#*inline "htmBodyAllMapResultPage"}}

{{#if classIconCssClasses}} {{/if}} map results

{{#if pagination.pagePrevious}} {{else}} {{/if}} {{#gte pagination.rowsPrevious pagination.1L}} {{else}} {{/gte}} {{#if pagination.pageNext}} {{else}} {{/if}} {{ pagination.startNum }} - {{ pagination.endNum }} of {{ pagination.foundNum }}
{{> "table1MapResultPage"}}
{{/inline}} {{#*inline "htmFormMapResultPage"}}
{{#if id}} {{/if}}
{{#if id}} {{#block "htmButton_searchpageMapResult"}}{{/block}} {{#block "htmForm_searchpageMapResult"}}{{/block}} {{/if}} {{/inline}} {{#*inline "htmButtonMapResultPage_searchpageMapResult"}} {{/inline}} {{#*inline "htmFormButtonMapResultPage_searchpageMapResult"}} {{/inline}} {{#*inline "htmFormMapResultPage_searchpageMapResult"}}
{{#ifContainsAnyRoles roles roleForWrite}} {{> "htmCreated" roleForWriteBool="true" roleForReadBool="true"}} {{else}} {{#ifContainsAnyRoles roles roleForRead}} {{> "htmCreated" roleForWriteBool="false" roleForReadBool="true"}} {{else}} {{> "htmCreated" roleForWriteBool="false" roleForReadBool="false"}} {{/ifContainsAnyRoles}} {{/ifContainsAnyRoles}} {{#ifContainsAnyRoles roles roleForWrite}} {{> "htmModified" roleForWriteBool="true" roleForReadBool="true"}} {{else}} {{#ifContainsAnyRoles roles roleForRead}} {{> "htmModified" roleForWriteBool="false" roleForReadBool="true"}} {{else}} {{> "htmModified" roleForWriteBool="false" roleForReadBool="false"}} {{/ifContainsAnyRoles}} {{/ifContainsAnyRoles}} {{#ifContainsAnyRoles roles roleForWrite}} {{> "htmObjectId" roleForWriteBool="true" roleForReadBool="true"}} {{else}} {{#ifContainsAnyRoles roles roleForRead}} {{> "htmObjectId" roleForWriteBool="false" roleForReadBool="true"}} {{else}} {{> "htmObjectId" roleForWriteBool="false" roleForReadBool="false"}} {{/ifContainsAnyRoles}} {{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}} {{> "htmArchived" roleForWriteBool="true" roleForReadBool="true"}} {{else}} {{#ifContainsAnyRoles roles roleForRead}} {{> "htmArchived" roleForWriteBool="false" roleForReadBool="true"}} {{else}} {{> "htmArchived" roleForWriteBool="false" roleForReadBool="false"}} {{/ifContainsAnyRoles}} {{/ifContainsAnyRoles}} {{#ifContainsAnyRoles roles roleForWrite}} {{> "htmDeleted" roleForWriteBool="true" roleForReadBool="true"}} {{else}} {{#ifContainsAnyRoles roles roleForRead}} {{> "htmDeleted" roleForWriteBool="false" roleForReadBool="true"}} {{else}} {{> "htmDeleted" roleForWriteBool="false" roleForReadBool="false"}} {{/ifContainsAnyRoles}} {{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}} {{> "htmTime" roleForWriteBool="true" roleForReadBool="true"}} {{else}} {{#ifContainsAnyRoles roles roleForRead}} {{> "htmTime" roleForWriteBool="false" roleForReadBool="true"}} {{else}} {{> "htmTime" roleForWriteBool="false" roleForReadBool="false"}} {{/ifContainsAnyRoles}} {{/ifContainsAnyRoles}} {{#ifContainsAnyRoles roles roleForWrite}} {{> "htmDateTime" roleForWriteBool="true" roleForReadBool="true"}} {{else}} {{#ifContainsAnyRoles roles roleForRead}} {{> "htmDateTime" roleForWriteBool="false" roleForReadBool="true"}} {{else}} {{> "htmDateTime" roleForWriteBool="false" roleForReadBool="false"}} {{/ifContainsAnyRoles}} {{/ifContainsAnyRoles}} {{#ifContainsAnyRoles roles roleForWrite}} {{> "htmStep" roleForWriteBool="true" roleForReadBool="true"}} {{else}} {{#ifContainsAnyRoles roles roleForRead}} {{> "htmStep" roleForWriteBool="false" roleForReadBool="true"}} {{else}} {{> "htmStep" roleForWriteBool="false" roleForReadBool="false"}} {{/ifContainsAnyRoles}} {{/ifContainsAnyRoles}} {{#ifContainsAnyRoles roles roleForWrite}} {{> "htmLocation" roleForWriteBool="true" roleForReadBool="true"}} {{else}} {{#ifContainsAnyRoles roles roleForRead}} {{> "htmLocation" roleForWriteBool="false" roleForReadBool="true"}} {{else}} {{> "htmLocation" roleForWriteBool="false" roleForReadBool="false"}} {{/ifContainsAnyRoles}} {{/ifContainsAnyRoles}} {{#ifContainsAnyRoles roles roleForWrite}} {{> "htmColor" roleForWriteBool="true" roleForReadBool="true"}} {{else}} {{#ifContainsAnyRoles roles roleForRead}} {{> "htmColor" roleForWriteBool="false" roleForReadBool="true"}} {{else}} {{> "htmColor" roleForWriteBool="false" roleForReadBool="false"}} {{/ifContainsAnyRoles}} {{/ifContainsAnyRoles}}
{{/inline}} {{#*inline "htmBodySidebarMapResultPage"}}
Search Filters Range Pivot FieldList Stats API
{{/inline}} {{#*inline "htmBodyStartMapResultPage"}} {{> "htmBodyStartBaseResultPage"}} {{/inline}} {{#*inline "htmBodyMiddleMapResultPage"}} {{> "htmBodyMiddleBaseResultPage"}} {{/inline}} {{#*inline "htmBodyEndMapResultPage"}} {{> "htmBodyEndBaseResultPage"}} {{/inline}} {{#*inline "htmBodyMapResultPage"}} {{#block "htmBodyStart"}}{{/block}} {{#block "htmBodyMiddle"}}{{/block}} {{#block "htmBodyEnd"}}{{/block}} {{/inline}} {{#*inline "htmBodyMiddleMapResultPage"}}
{{#block "htmBodySidebar"}}{{/block}}
{{#block "htmBodyGraphLocation"}}{{/block}} {{#block "htmBodyGraph"}}{{/block}}
{{#eq mapResultCount int0}} {{#block "htmBodyCount0"}}{{/block}} {{else}} {{#eq mapResultCount int1}} {{#if id}} {{#block "htmBodyCount1"}}{{/block}} {{else}} {{#block "htmBodyAll"}}{{/block}} {{/if}} {{else}} {{#block "htmBodyAll"}}{{/block}} {{/eq}} {{/eq}} {{#block "htmForm"}}{{/block}} {{#block "htmForms"}}{{/block}}
{{/inline}} {{#*inline "table1MapResultPage"}}
{{> table2MapResultPage}}
{{/inline}} {{#*inline "table2MapResultPage"}} {{> "thead1MapResultPage"}} {{> "tbody1MapResultPage"}} {{> "tfoot1MapResultPage"}} {{/inline}} {{#*inline "thead1MapResultPage"}} {{> thead2MapResultPage}} {{/inline}} {{#*inline "thead2MapResultPage"}} ID created {{/inline}} {{#*inline "tbody1MapResultPage"}} {{> tbody2MapResultPage}} {{/inline}} {{#*inline "tbody2MapResultPage"}} {{#each listMapResult}} {{objectId}} {{siteZonedDateTimeFormat created "MMM d, yyyy h:mm:ss a" siteLocale}} {{objectTitle}} {{/each}} {{/inline}} {{#*inline "tfoot1MapResultPage"}} {{> tfoot2MapResultPage}} {{/inline}} {{#*inline "tfoot2MapResultPage"}} {{#if getColumnObjectId}} {{/if}} {{#if getColumnCreated}} {{/if}} {{#if getColumnObjectTitle}} {{/if}} {{/inline}} {{#*inline "htmFormsMapResultPage"}} {{#ifContainsAnyRoles roles authRoleSuperAdmin}} {{#eq mapResultCount int1}} {{/eq}} {{/ifContainsAnyRoles}} {{#block "htmSuggested"}}{{/block}} {{/inline}} {{#*inline "htmSuggestedMapResultPage"}} {{#ifContainsAnyRoles roles roleForWrite}}
{{/ifContainsAnyRoles}}
search map results:
{{/inline}} {{> BaseResultPage baseResult_=mapResult_}} {{#*inline "htmCreated"}}
{{> "inputCreated" roleForWrite=roleForWrite roleForRead=roleForRead}}
{{/inline}} {{#*inline "inputCreated"}} {{#eq 'Page' classApiMethodMethod}} {{formatZonedDateTime mapResult_.created 'EEE MMM d yyyy h:mm a zz' defaultLocaleId defaultZoneId}} {{/eq}} {{/inline}} {{#*inline "htmModified"}}
{{> "inputModified" roleForWrite=roleForWrite roleForRead=roleForRead}}
{{/inline}} {{#*inline "inputModified"}} {{#eq 'Page' classApiMethodMethod}} {{formatZonedDateTime mapResult_.modified 'EEE MMM d yyyy h:mm a zz' defaultLocaleId defaultZoneId}} {{/eq}} {{/inline}} {{#*inline "htmObjectId"}}
{{> "inputObjectId" roleForWrite=roleForWrite roleForRead=roleForRead}}
{{/inline}} {{#*inline "inputObjectId"}} {{#eq roleForWriteBool "true"}} {{else}} {{#ifContainsKeys userKeys}} {{mapResult_.objectId}} {{/ifContainsKeys}} {{else}} {{mapResult_.objectId}} {{/eq}} {{/inline}} {{#*inline "htmArchived"}}
{{> "inputArchived" roleForWrite=roleForWrite roleForRead=roleForRead}}
{{/inline}} {{#*inline "inputArchived"}} {{#eq roleForWriteBool "true"}} {{#eq 'Page' classApiMethodMethod}} {{else}} > {{/eq}} {{else}} {{#ifContainsKeys userKeys}} {{mapResult_.archived}} {{/ifContainsKeys}} {{else}} {{mapResult_.archived}} {{/eq}} {{/inline}} {{#*inline "htmDeleted"}}
{{> "inputDeleted" roleForWrite=roleForWrite roleForRead=roleForRead}}
{{/inline}} {{#*inline "inputDeleted"}} {{#eq roleForWriteBool "true"}} {{#eq 'Page' classApiMethodMethod}} {{else}} > {{/eq}} {{else}} {{#ifContainsKeys userKeys}} {{mapResult_.deleted}} {{/ifContainsKeys}} {{else}} {{mapResult_.deleted}} {{/eq}} {{/inline}} {{#*inline "htmTime"}}
{{> "inputTime" roleForWrite=roleForWrite roleForRead=roleForRead}}
{{/inline}} {{#*inline "inputTime"}} {{#eq roleForWriteBool "true"}} {{else}} {{#ifContainsKeys userKeys}} {{mapResult_.time}} {{/ifContainsKeys}} {{else}} {{mapResult_.time}} {{/eq}} {{/inline}} {{#*inline "htmDateTime"}}
{{> "inputDateTime" roleForWrite=roleForWrite roleForRead=roleForRead}}
{{/inline}} {{#*inline "inputDateTime"}} {{#eq roleForWriteBool "true"}} {{else}} {{#ifContainsKeys userKeys}} {{mapResult_.dateTime}} {{/ifContainsKeys}} {{else}} {{mapResult_.dateTime}} {{/eq}} {{/inline}} {{#*inline "htmStep"}}
{{> "inputStep" roleForWrite=roleForWrite roleForRead=roleForRead}}
{{/inline}} {{#*inline "inputStep"}} {{#eq roleForWriteBool "true"}} {{#eq 'Page' classApiMethodMethod}} {{else}} > {{/eq}} {{else}} {{#ifContainsKeys userKeys}} {{mapResult_.step}} {{/ifContainsKeys}} {{else}} {{mapResult_.step}} {{/eq}} {{/inline}} {{#*inline "htmLocation"}}
{{> "inputLocation" roleForWrite=roleForWrite roleForRead=roleForRead}}
{{/inline}} {{#*inline "inputLocation"}} {{#eq roleForWriteBool "true"}} {{else}} {{#ifContainsKeys userKeys}} {{mapResult_.location}} {{/ifContainsKeys}} {{else}} {{mapResult_.location}} {{/eq}} {{/inline}} {{#*inline "htmColor"}}
{{> "inputColor" roleForWrite=roleForWrite roleForRead=roleForRead}}
{{/inline}} {{#*inline "inputColor"}} {{#eq roleForWriteBool "true"}} {{else}} {{#ifContainsKeys userKeys}} {{mapResult_.color}} {{/ifContainsKeys}} {{else}} {{mapResult_.color}} {{/eq}} {{/inline}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy