diff --git a/src/modules/Components/components/entity-card/template.php b/src/modules/Components/components/entity-card/template.php index ab8562e358..e0b4fed265 100644 --- a/src/modules/Components/components/entity-card/template.php +++ b/src/modules/Components/components/entity-card/template.php @@ -92,19 +92,19 @@
-

{{areas}}

+

{{areas}}

-

{{tags}}

+

{{tags}}

diff --git a/src/modules/Components/components/occurrence-card/template.php b/src/modules/Components/components/occurrence-card/template.php index a1dade29f8..f76c9a8bf1 100644 --- a/src/modules/Components/components/occurrence-card/template.php +++ b/src/modules/Components/components/occurrence-card/template.php @@ -60,17 +60,17 @@
-
+
-

{{tags}}

+

{{tags}}

-

{{linguagens}}

+

{{linguagens}}

diff --git a/src/modules/Entities/components/entity-map/template.php b/src/modules/Entities/components/entity-map/template.php index 698af3380b..9184bf515d 100644 --- a/src/modules/Entities/components/entity-map/template.php +++ b/src/modules/Entities/components/entity-map/template.php @@ -11,7 +11,7 @@ ?> applyTemplateHook('entity-map','before'); ?> - + applyTemplateHook('entity-map','after'); ?> \ No newline at end of file diff --git a/src/modules/Entities/components/entity-terms/script.js b/src/modules/Entities/components/entity-terms/script.js index b2d6bc8f81..9dbe74ddb9 100644 --- a/src/modules/Entities/components/entity-terms/script.js +++ b/src/modules/Entities/components/entity-terms/script.js @@ -115,14 +115,29 @@ app.component('entity-terms', { addTerm(term) { - if (this.entity.terms[this.taxonomy].indexOf(term) < 0) { - this.entity.terms[this.taxonomy].push(term); + if(this.spaceCheck(term)) { + if (this.entity.terms[this.taxonomy].indexOf(term) < 0) { + this.entity.terms[this.taxonomy].push(term); + + } + + if (this.terms.indexOf(term) < 0) { + this.terms.push(term); + } } + }, - if (this.terms.indexOf(term) < 0) { - this.terms.push(term); + spaceCheck(term) { + if(this.taxonomy == "tag") { + let tam = term.length; + for (let i = 0; i < tam; i++) { + if (term[i] != " ") { + return true; + } + } + return false; } - + return true; }, taxomyExists() { diff --git a/src/modules/Entities/components/entity-terms/template.php b/src/modules/Entities/components/entity-terms/template.php index bd01272fa8..cf4dfb50ac 100644 --- a/src/modules/Entities/components/entity-terms/template.php +++ b/src/modules/Entities/components/entity-terms/template.php @@ -16,7 +16,6 @@
{{title ?? taxonomy}} - *
diff --git a/src/modules/Entities/views/project/single.php b/src/modules/Entities/views/project/single.php index 0161e67885..9226d90962 100644 --- a/src/modules/Entities/views/project/single.php +++ b/src/modules/Entities/views/project/single.php @@ -72,7 +72,7 @@

-

{{entity.emailPublico}}

+

{{entity.emailPublico}}