Split species with a single click (OK, two...)
Fixes: https://naturalis.atlassian.net/browse/LINNA-2127
This MR automates the process of splitting a species (elevating a subspecies to species). The main pain was to find the right methods to use, not the technicalities themselves.
Best tested on a local NSR installation. In the admin section, find a subspecies (just type subsp.
in the Search box) and click the link "promote "[ssp]" to species"
Note that nominate subspecies cannot be split in NSR because that species will already exist. You will get a greyed out link instead. When sabotaging things by modifying the url to the id of the nominate you will get an error. This will also show if you refresh after splitting a species.
I had to shift things a bit between the TableModel and AbstractModel, as the latter did not yet include an option to fetch a last insert id.
Boy scout: renamed every containing reffering to referring.