Template:PLANTS/testcases

Template behavior
See https://plants.sc.egov.usda.gov/home/help for Citing the PLANTS Database. This change will cite the author, work, publisher, and location as requested on the PLANTS DB help page.


 * PLANTS currently sets the following:
 * url      = https://plants.sc.egov.usda.gov/home/plantProfile?symbol=
 * title    = 
 * publisher = Natural Resources Conservation Service PLANTS Database. USDA
 * PLANTS/sandbox sets the following:
 * last1     = ((USDA, NRCS))
 * author-link1 = Natural Resources Conservation Service
 * date     =
 * url      = https://plants.sc.egov.usda.gov/home/plantProfile?symbol=
 * title    = 
 * website  = The PLANTS Database (plants.usda.gov)
 * publisher = National Plant Data Team
 * location = Greensboro, North Carolina
 * language = en

If  is not specified, it will default to n.d.

Basic

 * Set nothing


 * Basic access date cases

Date and access date

 * Date and access date


 * Date but no access date


 * No dates


 * String of the same date with multiple calls in same article

Let's check for expected (or not) errors in the sandbox

 * Invalid id, no taxon/name/title - error = no ; behavior - title = id and url is built properly


 * Invalid symbol, no taxon/name/title - error = no ; behavior - title = symbol and url is built properly


 * Set id only - error = no; behavior - title is id


 * Set taxon and title - error = no; behavior - title overrides taxon


 * Set taxon and name - error = no; behavior - name overrides taxon


 * Set name and taxon and title - error = no; behavior - title overrides name and taxon


 * Set website - error = no


 * Set work - error = yes


 * Set author - error = yes


 * Set author1 - error = yes


 * Set author2 - error = no


 * Set last - error = yes


 * Set last1 - error = no


 * Set last2 - error = no


 * Set author-link1 - error = no


 * Set author-link - error = yes