-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Old tags not going away #80
Comments
I believe we've briefly talked about this, but haven't explicitly mentioned it here. That is indeed a valid issue.
|
I'm having trouble accessing the tags array from within the tagging_view.js file. Even when tags have been generated, self.tags remains empty (currently trying to do the second option with the button). |
Could be a bug. I unfortunately don't have the time to sit down and debug this myself, but at some point the tags must be added to the list of tags for the JS to check whether they're already there.
If that didn't work, you'd get duplicate tags all over the place, so |
I was able to fix it with the manual entry by adding: $("#modal-annotation-tags").empty(); at the beginning of the keyup function and then removing the if (self.tags[label] === undefined) {} conditional. I realizes this forces a reload of all of the tags, but because the manual entry doesn't require any queries, it's still quite fast, and it then eliminates the need for users to accept or reject tags (because if they're manually entering tags, they should only be entering ones they consider accept-worthy anyway). Edit: for reference, I have 2 tagging views, the original TaggingVIew and a ManualTaggingView that I created so I could make any changes that were needed and not have to worry about having a bunch of conditionals. |
There was already some discussion of a similar issue, so I'm not sure how feasible it is, but with both the wikipedia/geonames-fetching tags and the manual entry tags, if you type something and erase it, the tag stays.
For example, typing in "Egypt" returns the tags
But if you then erase the word "Egypt" and just type in "China," your tags are now:
even though there is now no mention of "Egypt" in your annotation. Some of this error can be circumvented with the accept/reject/neutral toggle, but, particularly with manual entry, it poses the potential issue of creating a half-finished tag that can't be removed (i.e. if someone pauses partway through typing "Mesopotamia," you could end up with 3 tags, "Meso," "Mesopot" and "Mesopotamia."
The text was updated successfully, but these errors were encountered: