Open fjlopez opened 2 years ago
Elements fixed:
Related with OGC web services
File | Code |
---|---|
app/components/trees/trees-form/trees-form.component.ts | if (!url.includes('request=GetCapabilities')) { |
app/components/trees/trees-form/trees-form.component.ts | url += 'request=GetCapabilities%26service=WMS' |
app/components/layers/layers-form/layers-form.component.ts | if (service.type === 'WFS') { wfsServices.push(service) } |
app/components/service/service-form/service-form.component.ts | this.tableLoadButtonDisabled=currentType.value == 'WMS'? false:true |
app/components/service/service-form/service-form.component.ts | if(! url.includes('request=GetCapabilities')){ |
app/components/service/service-form/service-form.component.ts | url += 'request=GetCapabilities%26service=WMS' |
app/components/task-form/task-form.component.ts | else if(selector=="wfsServices") { this.wfsServicesNeeded = true } |
app/components/task-form/task-form.component.ts | else if(data=="wfsServices") { return this.wfsServices } |
Related to code lists
File | Code | Obs |
---|---|---|
app/components/background-layers/background-layers-form/background-layers-form.component.ts | if (cartographyGroup.description === 'Background map') { | bug, should be cartographyGroup.type === 'F'? |
app/components/application/application-form/application-form.component.ts | if (element.value !== 'PRINT_TEMPLATE') { newTable.push(element) } | why this value of the code list application.type is needed hardcoded? |
app/components/application/application-form/application-form.component.ts | item.type = 'PRINT_TEMPLATE'; | why this value of the code list application.type is needed hardcoded? |
These constants are related with the tasks types that are dynamically loaded.
File | Code | ||
---|---|---|---|
app/components/task-form/task-form.component.ts | else if(selector=="fmeServices") { this.fmeServicesNeeded = true } | ||
app/components/task-form/task-form.component.ts | else if(selector=="this.locators") { this.locatorsNeeded = true } | ||
app/components/task-form/task-form.component.ts | else if(this.taskTypeName == 'Query' | this.taskTypeName== 'More info' | this.taskTypeName== 'Locator' ){ |
app/components/task-form/task-form.component.ts | else if(this.taskTypeName == 'Extraction (FME)' | this.taskTypeName == 'Report' ){ | |
app/components/task-form/task-form.component.ts | let key =this.taskTypeName == 'Extraction (FME)'?'layers':'layer' | ||
app/components/task-form/task-form.component.ts | else if(data=="fmeServices") { return this.fmeServices } | ||
app/components/task-form/task-form.component.ts | else if(data=="this.locators") { return this.locators } |
We think that the other elements don't need to be changed.
And languages? For example, imagine if somebody needs a Portuguese version and the backend has the Portuguese translations. Can the current code support it?
You were right! Now we have made a modification so if you want to add a new language you only need to add the flag icon (named flag_'shortname'.svg) and add an i18n file for translations (named 'shortname'.json').
Thanks!
This is a list of potential hardcoded codes
Related with languages
Related with OGC web services
Related to code lists
These constants are related with the tasks types that are dynamically loaded.