Details
-
Sub-task
-
Resolution: Fixed
-
None
-
Empty show more show less
Description
The following functionality is only available for users that have the right to propose terms.
The last editor and creator fields of the term and their corresponding dates are also set with the values of the currently logged in user. This is also true for attribute proposals.
Proposing termEntries
Below the search form and above possible results a button "Propose term entry" is shown. When clicking it the result area opens below it in the same way, as if a result for a term search is shown.
Yet, the primary result column on the left is empty and the right result area looks like it usually does, but without content and with the "Propose term" select field available as described below.
As soon as a first term is entered and saved, the termEntry is saved to the database.
Proposing terms
Above the first term in the right result area of the termPortal a select list "Propose term" is shown. The select list contains the rfc5646 shortcuts of all available languages. If a flag image exists for the language, the flag will be shown in addition.
When a language is selected, an empty edit field for the corresponding language for a term for that termEntry is shown and the cursor placed in it.
After the cursor leaves the term field, the new term is saved to the server. Before save it is ensured, that it contains at least one character afterwards, that is no whitespace and all whitespace is trimmed form start and end.
Comment field always visible
If someone adds a term, a comment field (text area form field or similar) gets visible as top most attribute. It saves the comment into an attribute with the attribute hierarchy <tig> <note> for this term and the processstatus "unprocessed" for the note attribute.