BU-Spark / se-Symbiota-portal

The Symbiota Virtual Flora/Fauna project is an open source software project, with central goal of developing on-line tools that aid in the generation, exploration and management of biodiversity data (collection specimens, observations, images, checklist, keys, etc.). See also: http://bdj.pensoft.net/articles.php?id=1114 and http://symbiota.org/
GNU General Public License v2.0
1 stars 3 forks source link

Investigate existing Symbiota dropdown functions #34

Closed Tian-Tan closed 6 months ago

Tian-Tan commented 1 year ago

Our client has mentioned that there is no need to create new dropdown tables and to leverage existing dropdown functions currently available in Symbiota. This requires some digging into the code to find out these existing functions.

ttaliacc commented 1 year ago

@Tian-Tan since the function exists, i didn't really see anywhere using this function or having dropdown list? especially not in the old entry form. I'll look around to see if there is any clue.

ttaliacc commented 1 year ago

Related Issues:

ttaliacc commented 1 year ago

Based on the video, the field "scientific name" should have the dropdown list function. However, i didn't find related code in the occurrenceeditor.php file. So, we guess that it's because our repo is out of date. Langdon is woking on merging the new version to our repo, and we will see if we can find any potential dropdown list code.

ttaliacc commented 1 year ago

I took a look at the occurrenceeditor of the merge branch, but there was still nothing related to dropdown list.

Tian-Tan commented 1 year ago

Issue currently on hold as we approach the Symbiota devs for some pointers on the code for existing Symbiota typeahead functions

ttaliacc commented 1 year ago

@Tian-Tan do we still need to work on this one? Or we are good with the new dropdown function?

Tian-Tan commented 1 year ago

ON HOLD: Currently we need to contact Symbiota's admins to inquire about pointers to where the code for the existing dropdown functions might be.

On the other hand, we have also implemented our own dropdown functions, but how it works is still a little different from what the client expects. There are basically 2 options here:

  1. Continue trying to contact Symbiota admins and try to get the existing dropdown/typeahead functions to work.
  2. Fix our already implemented dropdown functions to fit client expectations.

We should mention this in a future meeting but I'd suppose this is lower on the priority list.

Tian-Tan commented 1 year ago

During the meeting, Jonathan told us to let him access the dev version of the website to poke around the code himself

ttaliacc commented 9 months ago

The existing drop down function is using jQuery autocomplete plugin to achieve the functionality. Here is an example(/home/herbaria/running-symbiota/js/symb/collections.editor.main.js):

Screenshot 2024-01-27 at 2 13 36 PM
ttaliacc commented 8 months ago

For the old entry form, many autocomplete functions are broken, such as state, country.

Screenshot 2024-02-04 at 5 39 37 PM

I think the reason is that in our data base, we don't have state or country table, and the query fails.

Screenshot 2024-02-04 at 5 40 15 PM

Should we fix it? and how?

ttaliacc commented 7 months ago

Finish implementing one of the dropdown. Should i move on to implement all field's drop?

ttaliacc commented 6 months ago

Implemented all dropdowns with commit 001ca652fefe51f4944f96daefc25aafb5e0d6cd