Skip to content

Commit

Permalink
508 compliance for taxa/taxonomy/taxonomyloader.php (#654)
Browse files Browse the repository at this point in the history
* added Doctype and lang, added labels,created new classes and renamed existing for textfields

* improve code readability of html label sections and add aria-labels

* add spacing to the concat syntax

* added js script to dynamically change the labels

* changed the unit name 1 to genus name

* internationalized text, fixed js script, added spaces to ternary operators

* change lets to consts and fix one TVP issue

---------

Co-authored-by: Mark <[email protected]>
  • Loading branch information
NikitaSalikov and Atticus29 authored Dec 8, 2023
1 parent 1ae79a2 commit b12fd9d
Show file tree
Hide file tree
Showing 9 changed files with 395 additions and 248 deletions.
8 changes: 4 additions & 4 deletions content/lang/taxa/taxonomy/taxoneditor.en.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
$LANG['HIERARCHY'] = 'Hierarchy';
$LANG['CHILDREN_TAXA'] = 'Children Taxa';
$LANG['DELETE'] = 'Delete';
$LANG['UNITNAME1'] = 'UnitName1';
$LANG['UNITNAME2'] = 'UnitName2';
$LANG['UNITNAME3'] = 'UnitName3';
$LANG['UNITNAME1'] = 'UnitName';
$LANG['UNITNAME2'] = 'Specific Epithet';
$LANG['UNITNAME3'] = 'Infraspecific Epithet';
$LANG['AUTHOR'] = 'Author';
$LANG['KINGDOM'] = 'Kingdom';
$LANG['RANK_NAME'] = 'Rank Name';
Expand Down Expand Up @@ -64,6 +64,6 @@
$LANG['QUERY_HIERARCHY'] = 'Quick Query Taxonomic Hierarchy';
$LANG['EMPTY'] = 'Empty';
$LANG['NOT_AUTH'] = 'You are not authorized to access this page';

$LANG['GENUS_NAME'] = 'Genus Name';

?>
6 changes: 3 additions & 3 deletions content/lang/taxa/taxonomy/taxoneditor.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
$LANG['CHILDREN_TAXA'] = 'Taxa inferiores';
$LANG['DELETE'] = 'Eliminar';
$LANG['UNITNAME1'] = 'NombreUnitario1';
$LANG['UNITNAME2'] = 'NombreUnitario2';
$LANG['UNITNAME3'] = 'NombreUnitario3';
$LANG['UNITNAME2'] = 'Epíteto específico';
$LANG['UNITNAME3'] = 'Epíteto infraespecífico';
$LANG['AUTHOR'] = 'Autor';
$LANG['KINGDOM'] = 'Reino';
$LANG['RANK_NAME'] = 'Rango del Nombre';
Expand Down Expand Up @@ -64,6 +64,6 @@
$LANG['QUERY_HIERARCHY'] = 'Búsqueda Rápida de Jerarquía Taxonómica';
$LANG['EMPTY'] = 'Vacío';
$LANG['NOT_AUTH'] = 'No está autorizado para acceder a esta página';

$LANG['GENUS_NAME'] = 'Nombre del Género';

?>
5 changes: 5 additions & 0 deletions content/lang/taxa/taxonomy/taxonomyloader.en.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@
$LANG['ACCEPT_STATUS'] = 'Acceptance Status';
$LANG['UNACCEPT_REASON'] = 'Unacceptability Reason';
$LANG['SUBMIT_NEW_NAME'] = 'Submit New Name';
$LANG['GENUS_OR_BASE'] = 'Genus or Base Name';
$LANG['EPITHET'] = 'Epithet';
$LANG['SPECIF_EPITHET_FIELD'] = 'Specific Epithet Field';
$LANG['INFRA_EPITHET_FIELD'] = 'Infraspecific Epithet Field';
$LANG['RANK_FIELD'] = 'Rank Field';

?>
4 changes: 4 additions & 0 deletions content/lang/taxa/taxonomy/taxonomyloader.es.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
$LANG['ACCEPT_STATUS'] = 'Estado de Aceptación';
$LANG['UNACCEPT_REASON'] = 'Razón de No Ser Aceptado';
$LANG['SUBMIT_NEW_NAME'] = 'Enviar Nuevo Nombre';
$LANG['GENUS_NAME'] = 'Género o Nombre Base';
$LANG['EPITHET'] = 'Epíteto';
$LANG['INFRA_EPITHET_FIELD'] = 'Campo de epíteto infraespecífico';
$LANG['RANK_FIELD'] = 'Campo de clasificación';

?>
18 changes: 15 additions & 3 deletions css/v202209/symbiota/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ hr {
.no-margin-left {
margin-left: 0;
}
.taxon-search-bar {
.search-bar {
width: 25rem;
}

Expand Down Expand Up @@ -531,8 +531,16 @@ hr {
clear: both;
}

.taxon-search-bar {
width: 25rem;
.search-bar-long {
width: 35rem;
}

.search-bar-short {
width: 15rem;
}

.search-bar-extraShort {
width: 5rem;
}

.fieldset-size {
Expand Down Expand Up @@ -889,6 +897,10 @@ hr {
margin-left: 3rem;
}

.left-column {
float: left;
width: 170px;
}
.nativity-div {
margin-top: 1em;
font-size: 125%;
Expand Down
Loading

0 comments on commit b12fd9d

Please sign in to comment.