Revision 7914
Added by ben leinfelder over 11 years ago
lib/style/common/templates/metacatui/entryForm.tmpl | ||
---|---|---|
641 | 641 |
|
642 | 642 |
[% END %] |
643 | 643 |
|
644 |
<!-- TEMPLATE --> |
|
645 |
<div class="accordion-heading"> |
|
646 |
<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none"> |
|
647 |
Template |
|
648 |
</a> |
|
649 |
<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&stage=guide#BasicInformation"><i class="icon-question-sign"></i></a> |
|
650 |
</div> |
|
651 |
<div id="collapseTemplate" class="accordion-body collapse in"> |
|
652 |
<div class="accordion-inner"> |
|
653 |
<!-- the INPUT --> |
|
654 |
<div class="control-group"> |
|
655 |
<label class="control-label" for="template">*template</label> |
|
656 |
<div class="controls"> |
|
657 |
<input type="text" name="template" value="[%template%]"> |
|
658 |
</div> |
|
659 |
</div> |
|
660 |
|
|
661 |
</div> |
|
662 |
</div> |
|
663 | 644 |
|
664 | 645 |
[% IF modules.spatial == 'true' %] |
665 | 646 |
|
... | ... | |
865 | 846 |
</div> |
866 | 847 |
|
867 | 848 |
[% END %] |
868 |
|
|
869 |
|
|
870 |
|
|
871 |
[% IF modules.taxonomic == 'true' %] |
|
849 |
|
|
850 |
<!-- TEMPLATE --> |
|
851 |
<div class="accordion-heading"> |
|
852 |
<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTemplate" href="#none"> |
|
853 |
Template |
|
854 |
</a> |
|
855 |
<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&stage=guide#BasicInformation"><i class="icon-question-sign"></i></a> |
|
856 |
</div> |
|
857 |
<div id="collapseTemplate" class="accordion-body collapse in"> |
|
858 |
<div class="accordion-inner"> |
|
859 |
<!-- the INPUT --> |
|
860 |
<div class="control-group"> |
|
861 |
<label class="control-label" for="template">*template</label> |
|
862 |
<div class="controls"> |
|
863 |
<input type="text" name="template" value="[%template%]"> |
|
864 |
</div> |
|
865 |
</div> |
|
866 |
|
|
867 |
</div> |
|
868 |
</div> |
|
869 |
|
|
870 |
|
|
871 |
[% IF modules.taxonomic == 'true' %] |
|
872 |
|
|
873 |
<!-- TAXONOMIC --> |
|
874 |
<div class="accordion-heading"> |
|
875 |
<a class="accordion-toggle" data-toggle="collapse" data-target="#collapseTaxonomic" href="#none"> |
|
876 |
Taxonomic Coverage |
|
877 |
</a> |
|
878 |
<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&stage=guide#TaxonomicCoverage"><i class="icon-question-sign"></i></a> |
|
879 |
</div> |
|
880 |
<div id="collapseTaxonomic" class="accordion-body collapse in"> |
|
881 |
<div class="accordion-inner"> |
|
882 |
<!-- the INPUT --> |
|
883 |
<div class="control-group"> |
|
884 |
<label class="control-label" for="taxonRank">Taxonomic Rank</label> |
|
885 |
<div class="controls"> |
|
886 |
<input name="taxonRank" id="taxonRank"> |
|
887 |
<span class="help-block">(e.g., Species)</span> |
|
888 |
</div> |
|
889 |
</div> |
|
890 |
<div class="control-group"> |
|
891 |
<label class="control-label" for="taxonName">Taxonomic Name</label> |
|
892 |
<div class="controls"> |
|
893 |
<input name="taxonName" id="taxonName"> |
|
894 |
<span class="help-block">(e.g., <i>Ursus arctos</i>)</span> |
|
895 |
</div> |
|
896 |
</div> |
|
897 |
<div class="control-group"> |
|
898 |
<label class="control-label" for="addTaxonButton">More?</label> |
|
899 |
<div class="controls"> |
|
900 |
<input type="button" value="Add Taxon" onClick="addTaxon()"> |
|
901 |
</div> |
|
902 |
</div> |
|
903 |
|
|
904 |
<div class="control-group"> |
|
905 |
<label class="control-label" for="taxonTable"></label> |
|
906 |
<div class="controls"> |
|
907 |
<table> |
|
908 |
[% numTaxa = 0 %] |
|
909 |
[% IF taxaCount %] |
|
910 |
[% numTaxa = taxaCount %] |
|
911 |
<tr class="sectbody" id="taxonHRRow"> |
|
912 |
<td colSpan="6"> |
|
913 |
<hr width = "85%"/> |
|
914 |
</td> |
|
915 |
</tr> |
|
916 |
[% END %] |
|
917 |
<input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount"> |
|
918 |
|
|
919 |
[% cnt = 1 %] |
|
920 |
[% WHILE cnt <= numTaxa%] |
|
921 |
<tr class="sectbody"> |
|
922 |
<td class="rightCol"> |
|
923 |
<a style="cursor:pointer"> |
|
924 |
<img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)" |
|
925 |
src="[% contextUrl %]/style/images/previous.gif" |
|
926 |
alt="Move Up" border="0"/> |
|
927 |
</a> |
|
928 |
<a style="cursor:pointer"> |
|
929 |
<img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')" |
|
930 |
src="[% contextUrl %]/style/images/next.gif" |
|
931 |
alt="Move Down" border="0"/> |
|
932 |
</a> |
|
933 |
<a style="cursor:pointer"> |
|
934 |
<img src="[% contextUrl %]/style/images/delete.gif" |
|
935 |
onClick="delRow(event)" alt="Delete" border="0"/> |
|
936 |
</a> |
|
937 |
</td> |
|
938 |
[% SET rank = "taxonRankName${cnt}" %] |
|
939 |
[% SET name = "taxonRankValue${cnt}" %] |
|
940 |
<td colspan="5" align ="left" style="cursor:pointer" |
|
941 |
onClick="taxonEditRow(event, 0, '[%$rank%]', '[%$name%]')"> |
|
942 |
Rank: [%$rank%], Name: [%$name%] |
|
943 |
<input name="taxonName" type="hidden" value="[%$name%]"/> |
|
944 |
<input name="taxonRank" type="hidden" value="[%$rank%]"/> |
|
945 |
</tr> |
|
946 |
[% cnt = cnt + 1 %] |
|
947 |
[% END %] |
|
948 |
|
|
949 |
<!-- placeholder for list code --> |
|
950 |
<tr class="sectbody" id="addtaxarow"> |
|
951 |
<td class="bordertop" valign="top" align="right"></td> |
|
952 |
<td class="bordertop" align="left" colspan="5"></td> |
|
953 |
</tr> |
|
954 |
|
|
955 |
</table> |
|
956 |
</div> |
|
957 |
</div> |
|
958 |
|
|
959 |
<div class="control-group"> |
|
960 |
<label class="control-label" for="taxaAuth">Taxonomic Reference</label> |
|
961 |
<div class="controls"> |
|
962 |
<textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea> |
|
963 |
<span class="help-block">List the source(s) used for identifying and naming taxa (e.g., name of a <br>field guide, key, or |
|
964 |
nomenclature revision).</span> |
|
965 |
</div> |
|
966 |
</div> |
|
967 |
|
|
968 |
</div> |
|
969 |
</div> |
|
970 |
|
|
971 |
[% END %] |
|
872 | 972 |
|
873 |
<table class="tables" cellpadding="5" cellspacing="0"> |
|
874 | 973 |
|
875 |
<tr class="sectheader"> |
|
876 |
<td colspan="5" align="left"> |
|
877 |
<span class="label">TAXONOMIC COVERAGE OF DATA</span> |
|
878 |
<a href="[% cgiPrefix %]/register-dataset.cgi?cfg=[%cfg%]&stage=guide#TaxonomicCoverage" target="guide" class="smalltext">(What's this?)</a> |
|
879 |
</td> |
|
880 |
<td class="rightCol"><span><a onClick="taxonomicBit=swap(event, 'taxonomicTable', taxonomicBit)" style="cursor:pointer">Hide</a></span></td> |
|
881 |
</tr> |
|
882 |
</table> |
|
883 |
|
|
884 |
<table class="tables" cellpadding="5" cellspacing="0" id="taxonomicTable"> |
|
885 |
<tr class="sectbody"><td></td> |
|
886 |
<td colspan="5" align="left"><span class="regtext">See the <a href= |
|
887 |
"http://darwin.zoology.gla.ac.uk/~rpage/MyToL/www/index.php" target="_blank">Glasgow Taxonomic Name Server</a> or the <a href= |
|
888 |
"http://www.itis.gov/" target="_blank">Integrated Taxonomic Information System</a> for correct spelling of taxonomic names.</td></tr> |
|
889 |
|
|
890 |
<tr class="sectbody"> |
|
891 |
<td class="rightCol"><span class="label">Taxonomic Rank</span></td> |
|
892 |
<td align="left" colspan="5"> |
|
893 |
<input name="taxonRank" id="taxonRank" class="shortwidth"> <span class="label"><span class="regtext">(e.g., Species)</span> |
|
894 |
</td> |
|
895 |
</tr> |
|
896 | 974 |
|
897 |
<tr class="sectbody"> |
|
898 |
<td class="rightCol"><span class="label">Taxonomic Name</span></td> |
|
899 |
<td align="left" colspan="5"> |
|
900 |
<input name="taxonName" id="taxonName" class="shortwidth"> <span class="label"><span class="regtext">(e.g., <i>Ursus arctos</i>)</span> |
|
901 |
</td> |
|
902 |
</tr> |
|
903 |
|
|
904 |
<tr id="addTaxon" class="sectbody"> |
|
905 |
<td></td> |
|
906 |
<td colspan="5" align="left"> <input type="button" value="Add Taxon" |
|
907 |
onClick="addTaxon()"> |
|
908 |
</td> |
|
909 |
</tr> |
|
910 |
|
|
911 |
[% numTaxa = 0 %] |
|
912 |
[% IF taxaCount %] |
|
913 |
[% numTaxa = taxaCount %] |
|
914 |
<tr class="sectbody" id="taxonHRRow"> |
|
915 |
<td colSpan="6"> |
|
916 |
<hr width = "85%"/> |
|
917 |
</td> |
|
918 |
</tr> |
|
919 |
[% END %] |
|
920 |
<input type="hidden" name="taxaCount" value="[%numTaxa%]" id="taxaCount"> |
|
921 |
|
|
922 |
[% cnt = 1 %] |
|
923 |
[% WHILE cnt <= numTaxa%] |
|
924 |
<tr class="sectbody"> |
|
925 |
<td class="rightCol"> |
|
926 |
<a style="cursor:pointer"> |
|
927 |
<img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveUpRow(event)" |
|
928 |
src="[% contextUrl %]/style/images/previous.gif" |
|
929 |
alt="Move Up" border="0"/> |
|
930 |
</a> |
|
931 |
<a style="cursor:pointer"> |
|
932 |
<img onClick="cleanTextNodes('taxonHRRow', 'addtaxarow');moveDownRow(event, 'addtaxarow')" |
|
933 |
src="[% contextUrl %]/style/images/next.gif" |
|
934 |
alt="Move Down" border="0"/> |
|
935 |
</a> |
|
936 |
<a style="cursor:pointer"> |
|
937 |
<img src="[% contextUrl %]/style/images/delete.gif" |
|
938 |
onClick="delRow(event)" alt="Delete" border="0"/> |
|
939 |
</a> |
|
940 |
</td> |
|
941 |
[% SET rank = "taxonRankName${cnt}" %] |
|
942 |
[% SET name = "taxonRankValue${cnt}" %] |
|
943 |
<td colspan="5" align ="left" style="cursor:pointer" |
|
944 |
onClick="taxonEditRow(event, 0, '[%$rank%]', '[%$name%]')"> |
|
945 |
Rank: [%$rank%], Name: [%$name%] |
|
946 |
<input name="taxonName" type="hidden" value="[%$name%]"/> |
|
947 |
<input name="taxonRank" type="hidden" value="[%$rank%]"/> |
|
948 |
</tr> |
|
949 |
[% cnt = cnt + 1 %] |
|
950 |
[% END %] |
|
951 |
|
|
952 |
<tr class="sectbody" id="addtaxarow"> |
|
953 |
<td class="bordertop" valign="top" align="right" ><span class="label">Taxonomic Reference</span></td> |
|
954 |
<td class="bordertop" align="left" colspan="5"><textarea rows="3" cols="30" name="taxaAuth">[% taxaAuth %]</textarea></td> |
|
955 |
</tr> |
|
956 |
<tr class="sectbody"> |
|
957 |
<td></td> |
|
958 |
<td colspan="5"><span class="regtext">List the source(s) used for identifying and naming taxa (e.g., name of a <br>field guide, key, or |
|
959 |
nomenclature revision).</span></td> |
|
960 |
</tr> |
|
961 |
</table> |
|
962 |
[% END %] |
|
963 |
|
|
964 | 975 |
[% IF modules.method == 'true' %] |
965 | 976 |
<table class="tables" cellpadding="5" cellspacing="0"> |
966 | 977 |
<tr class="sectheader"> |
Also available in: Unified diff
restyle taxonomic section, first pass. https://projects.ecoinformatics.org/ecoinfo/issues/5951