GithubHelp home page GithubHelp logo

tigerhawkvok / asm-mammal-database Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 3.0 254.25 MB

American Society of Mammalogists Database

Home Page: http://mammaldiversity.org

License: Other

CoffeeScript 11.50% PHP 42.58% HTML 13.48% Shell 0.92% JavaScript 1.89% CSS 2.32% Ruby 0.01% Makefile 0.13% Tcl 0.02% Python 0.49% Batchfile 0.01% Pawn 0.03% C 0.10% SQLPL 26.48% PLpgSQL 0.05%
asm mammals science wildlife nature

asm-mammal-database's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

asm-mammal-database's Issues

Search on higher taxon names, other non-species fields

Right now it looks like only the Genus and Species are searchable on the main page? When I type in Rodentia or Muridae I get no search results. Ideally a user would be able to type in anything in the database, e.g., "Thomas" to get all the mammals that Thomas described, etc. -- would that considerably slow down the searches?

Downloading issues

When attempting to download my search results I encountered two separate problems:

  1. I tried several different searches of various sizes, but the HTML/PDF option nearly always failed (an exception is that the HTML option worked but not the pdf for Ursus arctos). A popup appears briefly which says "Failed to create file", but then the "Select Download Type" popup box remains up and I couldn't get it to disappear unless I refreshed the page.

  2. The CSV download option worked great, but I noticed one odd thing: If I clicked a search result to see the info on a particular species, selecting download from that species' page provides the option to "Use current search results", but turning that on didn't restrict the download. The download worked, but I got the whole database. Not a big problem, but having the option for the just the current search results made me think it was somehow able to tap into the search results that led me to the page I was on (of a single species) while downloading. If this is unavoidable, perhaps a simple notification somewhere would help clarify?

Make the ASM logo = link to front search page

When on the About or Summary pages its not easy to navigate back to the main search page, other than to just hit the browser back button. So can we make the ASM logo on the left be associated with the text "Home", and then have it redirect to mammaldiversity.org? I think we don't need to have a direct link to the ASM website other than on the About page.

Thanks!

Header bar, front page

Lets go with text + icon for the header bar, so that it jumps out at folks more easily to start with. So it would be:

About + icon
Statistics + icon
Forum + icon
Random species + icon

I'd be fine with following that through the entire website, or if its easier we could have icons-only on all pages other than the front page

Front page layout

  1. Lets change "ASM Species Account Database" to "ASM Mammal Diversity Database"

  2. in the "Search" can we make it a box? Its actually confusing (a bit) about where to click to start typing, whether on that line, or else below it with the blue bar where it says "Search for a common or scientific name above to begin, eg, "Brown Bear" or "Ursus arctos"" — it would be great to just move that blue bar up, with the identical text, and make that the "Search" entry form— Does that make sense?

  3. Add the twitter bar on the right hand side, about 1/4 or 1/5 of the browser window width, similar to the WoRMs site: http://www.marinespecies.org/ ( see #32 )

  4. Can we add a "News" listing under the search field to update folks about new releases of the taxonomy, popular press, etc.? I can write a blog entry for this when we go live

  5. Creative ideas about a landing page image / beautification, etc? We want folks to be excited about mammals when they land here

Thanks man, --nate

Spelling errors

Marsupalia -> Marsupialia
Dasyuromorpha -> Dasyuromorphia

Errors from my database, thanks

Change header on front page

For the main text on the front page, can we use "ASM Mammal Diversity Database"?

And then to correspond, the site title (in the tab header on Firefox) to the same thing?

Thanks man
--nate

Move 'data generated with'

Put at top of Taxon Entry as 'citations' to highlight it more.

Data citation entry should be multiline rather than single line.

Advanced search bug -- from ASM Comm Members #1

"I was able to break the search by searching using the advanced options alone (nothing in the standard search box), all my queries returned the entire database. It might be better to label the advanced options as "filters" to narrow down the search results? Or perhaps just refuse to search if the standard search line is blank? I'm not sure which would be an easier fix. "

Taxon statistics page -- from ASM Comm Members #4

"On the statistics page, species diversity is plotted as a bar graph (appropriate), but generic diversity is plotted as a filled curve (not ideal). Let’s set a good example of appropriate use of graphs and use bar graphs for both categories."

Maybe side-by-side bar graphs, just slightly to the left or right for genera?

Thanks man (that was the last one!)

"No results" return is too small/ephemeral -- from ASM Comm Members #2

"When searching for something that doesn’t exist, a small badge pops up very briefly saying “no results”. It’s easy to miss this though. I’d rather have some stable text that stays put stating this."

"I agree with Jake about the "No Results" needing to be larger and more prominent. I didn't see it for some time while clicking search repeatedly. Also, it appears to be a dynamic, where it returns the fields that had no results...While trying to test the search limits, I was able to have it flash a very large no results box with every field mentioned. It flashed way too fast to read the whole text (I had to screenshot it to read)."

Advanced searching vs. all-in-one searching

How much work is involved in making the main search field == a query to all fields in the database? Would there be a cost of longer search times?

Also, when I search "Rodentia" under "Clade" the advanced search still returns no results. I think we want Clade to indicate Higher Taxon in general

Genus Authority does work (e.g., "Thomas" returns 8 results), but species authority returns no results for the same search...

Thanks, --n

"Featured Mammal" on the front page

Via @n8upham

Featured mammal = one of these 4 species with free Mammalian Species accounts: https://academic.oup.com/mspecies/pages/speciesaccounts

  • The goal here is to
    1. showcase this ASM-based journal, and
    2. make an argument to the Board that we should be serving the content of these Mammalian Species articles for free on the MDD website. This would both populate our per-species pages and provide an outlet to these articles that often linger in obscurity, but contain much valuable information
  • Check out that Felis margarita!

My initial response and thoughts:

I will need to ponder the featured mammal entry -- need to figure out a way to both accomplish the goal above and to keep search functions central and accessible.

My best off-the-cuff idea is an auto-opening dialog on first visit / featured taxon change, with some other button or iconography to expose it again manually (so it shows up immediately when it's new to you, but when you're going to the site to do a "routine" search you're not interrupted by content you've already seen before).

There may be a better solution, just I haven't thought of it yet.

Later response:

Yes I like the idea of a featured mammal tab that is popped out the first time, but not on subsequent visits. But maybe on the pop-out tab there can still be a small (thumbnail) version of the MIL image for that featured species? I want to have some mammal images on the front page, so people know there are here to learn about furry things!

Additions to taxon summary page

  • Orders capitalized
  • Y-axis is great on log scale, but can you translate it to real numbers = 1,2,5,10,20,50,100, etc?
  • Genera
    • capitalized
    • italics
  • Display of a text-based table that shows the totals being visualized
  • Ability to sort by descending taxon order? (not critically important if is difficult to implement that, folks can just download and analyze themselves)

Search box on front page -- from ASM Comm Members #3

screen shot 2017-06-16 at 6 33 32 pm

"This box looks more like a search box than the actual search box. My first instinct was to not read the text in this box, but to just click and try to type. That doesn’t work. I suggest making this text look less like a search box. "

Need citation migration script

Needs to

  • walk distinct genera
  • Find oldest citation among unformatted (all) and formatted genera
  • Apply oldest as genus citation for all of them
  • Format and apply species citation

blocking #50

Range maps on species account pages

Note: Stretch goal for milestone! May not accomplish!

Could use the IUCN countries-by-taxon ( http://apiv3.iucnredlist.org/api/v3/docs#species-occurrence-name )

eg:

{"name":"Loxodonta africana","count":40,"result":[{"code":"AO","country":"Angola","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"BF","country":"Burkina Faso","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"BI","country":"Burundi","presence":"Extinct Post-1500","origin":"Native","distribution_code":"Regionally Extinct"},{"code":"BJ","country":"Benin","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"BW","country":"Botswana","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"CD","country":"Congo, The Democratic Republic of the","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"CF","country":"Central African Republic","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"CG","country":"Congo","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"CI","country":"Côte d'Ivoire","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"CM","country":"Cameroon","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"ER","country":"Eritrea","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"ET","country":"Ethiopia","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"GA","country":"Gabon","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"GH","country":"Ghana","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"GM","country":"Gambia","presence":"Extinct Post-1500","origin":"Native","distribution_code":"Regionally Extinct"},{"code":"GN","country":"Guinea","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"GQ","country":"Equatorial Guinea","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"GW","country":"Guinea-Bissau","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"KE","country":"Kenya","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"LR","country":"Liberia","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"ML","country":"Mali","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"MR","country":"Mauritania","presence":"Extinct Post-1500","origin":"Native","distribution_code":"Regionally Extinct"},{"code":"MW","country":"Malawi","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"MZ","country":"Mozambique","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"NA","country":"Namibia","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"NE","country":"Niger","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"NG","country":"Nigeria","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"RW","country":"Rwanda","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"SL","country":"Sierra Leone","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"SN","country":"Senegal","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"SO","country":"Somalia","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"SS","country":"South Sudan","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"SZ","country":"Swaziland","presence":"Extant","origin":"Reintroduced","distribution_code":"Reintroduced"},{"code":"TD","country":"Chad","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"TG","country":"Togo","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"TZ","country":"Tanzania, United Republic of","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"UG","country":"Uganda","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"ZA","country":"South Africa","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"ZM","country":"Zambia","presence":"Extant","origin":"Native","distribution_code":"Native"},{"code":"ZW","country":"Zimbabwe","presence":"Extant","origin":"Native","distribution_code":"Native"}]}

and do a color coded political map???

Enable editing for new columns

  • Column citation for taxon entry citation
  • Column genus_authority_citation
  • Column species_authority_citation

These citations should be displayed on account pages:

  • Genus authority
  • Species authority
  • Entry

New Taxonomy Count

@n8upham :

You mentioned in your email that the new list has 6301 new species. However, when I integrate and update the data, I get a new count of 6733.

It took a while to find the discrepancy, but I finally did.

For example, let's look at the genus Eospalax.

MariaDB [mammal2_asm_sadb]> select genus, species, internal_id from mammal_diversity_database where genus like 'eospalax' order by species;
+----------+-------------+-------------+
| genus    | species     | internal_id |
+----------+-------------+-------------+
| eospalax | baileyi     |   100000481 |
| eospalax | cansus      |   100000482 |
| eospalax | fontanierii |       14118 |
| eospalax | rothschildi |       14121 |
| eospalax | rufescens   |   100000483 |
| eospalax | smithii     |       14122 |
+----------+-------------+-------------+
6 rows in set (0.12 sec)

However, the base dataset you gave has this to say on the subject:

split from frontanierii

for sp = baileyi, cansus, and rufescens. They are tagged as splitFromExisting, but also have no entry under IfTransfer_oldSciName (implying the old taxon is still valid, and it's just been differentiated).

However, the dataset doesn't actually have fontanierii in it as a standalone taxon, making this ambiguous as to if it's been deprecated.

The size of this split from existing set seems to fully encompass the difference in counts.

For now, I'll operate under the assumption that both taxa are valid while I'm completing the data insertion/merge, but this ambiguity needs to be resolved!

Taxonomy Information Page

Via @n8upham

Add a page called “Taxonomy” to the toolbar header— this page will contain sub-links and descriptions about the following:

  • List of new species (since MSW3) and their citations for “evidence" and “name”, including links to the article where we have that info
  • List of genus name transfers (since MSW3) and the citation for the change
  • Summary table comparing counts of species, genera, and families in MSW3 versus our MDD list

Random entry

It works on the main page, but from the summary or info pages it gives error that "cannot retrieve random entry" — all this is awesome though man!

Synonym field to allow multiple entries per species

Model this after the IUCN listing where they have a “Synonyms” field in their CSV output that includes data as e.g., "Abrothrix hershkovitzi|Abrothrix markhami|Akodon mansoensis |Akodon olivaceus |Akodon xanthorhinus”

So that is all recent name combinations as separated by pipes.

We can form that synonym pipes column using the 200k+ row listing that I sent you yesterday. Do you want me to work on parsing that, or are you already on it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.