forked from mpaluch/datacite-metadata-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
datacite_metadata_generator.html
351 lines (351 loc) · 28.7 KB
/
datacite_metadata_generator.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<!DOCTYPE html><html>
<!-- DataCite Metadata Generator (Kernel 4.0)-->
<!-- created: 2013-10-04 paluchm - DataCite Canada -->
<!-- modified: 2015-02-04 paluchm - Updated to Kernel 3.1 -->
<!-- modified: 2015-11-01 paluchm - Fixed HTML validation problems. Modified implementation so that new XML tags can be generated just by adding HTML elements with proper names and classes. -->
<!-- modified: 2016-01-09 paluchm - Fixed rightsList tag name. -->
<!-- modified: 2017-02-12 paluchm - Updated to Kernel 4.0 and JQuery 3 -->
<!-- This form makes use of styles developed by the wet-boew project (https://github.com/wet-boew/wet-boew) -->
<!-- Recommended browsers are Firefox or Chrome. Minimum supported IE version is 8 (save feature currently not supported in IE)-->
<head>
<meta charset="utf-8" />
<title>DataCite Metadata Generator - Kernel 4.0</title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){var kernelVersion="4.0";var kernelNamespace="http://datacite.org/schema/kernel-4";var kernelSchema="http://schema.datacite.org/meta/kernel-4/metadata.xsd";var kernelSchemaLocation=kernelNamespace+" "+kernelSchema;var header="<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+br()+"<resource xmlns=\""+kernelNamespace+"\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\""+kernelSchemaLocation+"\">"+br();$("select[title]").each(function(){var tagName=name($(this));ps($(this),optionValues[tagName])});$("body").on("keyup","input",function(event){event.preventDefault();var xml=header;$("div.section").each(function(){xml+=process($(this))});xml+=ct("resource");metadata=xml;$("div.right code").text(xml);$(".right").show()});$("body").on("change","select",function(event){event.preventDefault();$("input").eq(0).keyup()});$("#reset").bind("click",function(event){event.preventDefault();location.reload(true)});$("#selectall").bind("click",function(event){event.preventDefault();st($("div code").get(0))});$("button.add.group").bind("click",function(event){event.preventDefault();var d=$(this).parent().find(".tag-group:first").clone();$(d).find("input,select").val("");$(d).find("input + button.delete.element").each(function(){$(this).prev("input").remove();$(this).remove()});$("<button/>",{"class":"delete group",text:"-",type:"button"}).appendTo($(d).find(".tag:first"));d.appendTo($(this).parent())});$("div.section").on("mouseenter mouseleave focusin focusout","button.delete.group, button.delete.single-tag",function(event){event.preventDefault();$(this).parent().toggleClass("remove-highlight")});$("div.section").on("click","button.delete.group",function(event){event.preventDefault();$(this).parent().remove();$("input").eq(0).keyup()});$("body").on("click"," button.add.single-tag",function(event){event.preventDefault();var c=$(this).parent().clone();$(c).find("input,select").val("");$(this).before($("<button/>",{"class":"delete single-tag",text:"-",type:"button"}));c.insertAfter($(this).parent());$(this).remove()});$("body").on("click","button.delete.single-tag",function(event){event.preventDefault();$(this).parent().remove();$("input").eq(0).keyup()});$("body").on("click","button#more",function(event){event.preventDefault();var div=$(this).parent();$(div).find("button#more").hide();$(div).find("div#subgroup,button#less").show()});$("body").on("click","button#less",function(event){event.preventDefault();var div=$(this).parent();$(div).find("div#subgroup,button#less").hide();$(div).find("button#more").show();$(div).find("div#subgroup input,div#subgroup select").val("");$("input").eq(0).keyup()});$("body").on("click","h3.recommended,h3.other",function(event){var div=$(this).next("div");var text=$(this).html();if(text.charAt(0)=="+"){text=text.replace("+","-");$(this).html(text);$(div).show()}else{if(text.charAt(0)=="-"){text=text.replace("-","+");$(this).html(text);$(div).hide()}}})});var optionValues={};optionValues["descriptionType"]=["Abstract","Methods","SeriesInformation","TableOfContents","TechnicalInfo","Other"];optionValues["relatedIdentifierType"]=["ARK","arXiv","bibcode","DOI","EAN13","EISSN","Handle","IGSN","ISBN","ISSN","ISTC","LISSN","LSID","PMID","PURL","UPC","URL","URN"];optionValues["relationType"]=["IsCitedBy","Cites","IsSupplementTo","IsSupplementedBy","IsContinuedBy","Continues","HasMetadata","IsMetadataFor","IsNewVersionOf","IsPreviousVersionOf","IsPartOf","HasPart","IsReferencedBy","References","IsDocumentedBy","Documents","IsCompiledBy","Compiles","IsVariantFormOf","IsOriginalFormOf","IsIdenticalTo","IsReviewedBy","Reviews","IsDerivedFrom","IsSourceOf"];optionValues["resourceTypeGeneral"]=["Audiovisual","Collection","Dataset","Event","Image","InteractiveResource","Model","PhysicalObject","Service","Software","Sound","Text","Workflow","Other"];optionValues["dateType"]=["Accepted","Available","Copyrighted","Collected","Created","Issued","Submitted","Updated","Valid"];optionValues["contributorType"]=["ContactPerson","DataCollector","DataCurator","DataManager","Distributor","Editor","HostingInstitution","Producer","ProjectLeader","ProjectManager","ProjectMember","RegistrationAgency","RegistrationAuthority","RelatedPerson","Researcher","ResearchGroup","RightsHolder","Sponsor","Supervisor","WorkPackageLeader","Other"];optionValues["titleType"]=["AlternativeTitle","Subtitle","TranslatedTitle","Other"];optionValues["funderIdentifierType"]=["Crossref Funder ID","GRID","ISNI","Other"];function process(section){var isWrapper=$(section).hasClass("wrapper-tag");var indent=0;var xml="";if(isWrapper){indent=1}$(section).find(".tag-group>.tag").each(function(){xml+=processTag(this,indent)});if(xml.length>0){if(isWrapper){var wrapperName=name(section);xml=ot(wrapperName)+br()+xml+ct(wrapperName)+br()}}return xml}function processTag(tag,indent){var xml="";var attributes;var value;var tagName=name(tag);var attr=attribs(tag);var tagValues=$(tag).children(".tag-value");if($(tagValues).length){value=inputValue(tagValues[0])}$(tag).children(".tag").each(function(){xml+=processTag(this,indent+1)});if(xml.length>0){xml=tab(indent)+ota(tagName,attr)+br()+xml+tab(indent)+ct(tagName)+br()}else if(typeof value!=="undefined"&&value.length>0){xml=tab(indent)+ota(tagName,attr)+value+ct(tagName)+br()}return xml}function attribs(element){var attribs="";$(element).children(".tag-attribute").each(function(){var value="";var n=name(this);if($(this).is("input")){value=inputValue(this)}if($(this).is("select")){value=selectValue(this)}if(value.length>0){if(attribs.length>0){attribs+=" "}attribs+=n+"=\""+value+"\""}});return attribs}function inputValue(input){return $(input).val().encodeXML()}function selectValue(select){return $(select).find("option").filter(":selected").val().encodeXML()}function name(tag){return $(tag).attr("title")}function ps(s,sarr){var i=$(s).attr("title");addO(s,"","["+i+"]");for(var i=0;i<sarr.length;i+=1){addO(s,sarr[i],sarr[i])}}function addO(s,v,d){$(s).append($("<option>").val(v).html(d))}function br(){return "\n"}function tab(number){var tabs="";if(typeof number!=="undefined"){for(var i=1;i<=number;i+=1){tabs+="\t"}}else{tabs="\t"}return tabs}function ota(tag,attr){if(attr.length>0){return "<"+tag+" "+attr+">"}else{return ot(tag)}}function ot(tag){return "<"+tag+">"}function ct(tag){return "</"+tag+">"}function st(element){var doc=document,text=element,range,selection;if(doc.body.createTextRange){range=doc.body.createTextRange();range.moveToElementText(text);range.select()}else{if(window.getSelection){selection=window.getSelection();range=doc.createRange();range.selectNodeContents(text);selection.removeAllRanges();selection.addRange(range)}}}String.prototype.encodeXML=function(){return this.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};var metadata="";var MIME_TYPE="application/xml";var cleanUp=function(a){setTimeout(function(){window.URL.revokeObjectURL(a.href)},1500);$("span#output").html("")};var downloadFile=function(){window.URL=window.webkitURL||window.URL;var prevLink=$("span#output a");if(prevLink){$("span#output").html("")}var bb=new Blob([metadata],{type:MIME_TYPE});var a=document.createElement("a");a.download="metadata.xml";a.href=window.URL.createObjectURL(bb);a.textContent="Click here to Save: metadata.xml";a.setAttribute("data-downloadurl",[MIME_TYPE,a.download,a.href].join(":"));a.classList.add("button");a.onclick=function(e){if($(this).is(":disabled")){return false}cleanUp(this)};$(a).appendTo($("span#output"))};function save(){if(false){alert("Not currently supported in Internet Explorer")}else{downloadFile()}};
</script>
<!--[if IE]><script>function save(){alert("Not currently supported in Internet Explorer");}</script><![endif]-->
<style>
body{font-family:sans-serif}.hidden{display:none}.visible{display:block}.input-field{margin-bottom:2px}.unbounded-width{width:79%}.full-width{width:89%}input.half-width{width:43%}input.half-width-smaller{width:41%}select.half-width{width:45%}.tag-group-label{float:left;margin-top:2px;width:80%}.left{float:left}.right{float:right}div.left{width:38%}div.right{width:61%}div.form{padding:12px}div.form div{width:100%;display:inline}div.tag{margin-bottom:4px}div.tag-group input:nth-last-of-type(1),div.tag-group select:nth-last-of-type(1){margin-bottom:8px}input,select{border-radius:4px;border-style:solid;border-width:1px;margin-bottom:2px;margin-top:0;min-height:18px!important;padding:4px}.right button{margin:2px;float:right}button.add,button.delete{width:1.8em;font-weight:400;margin-left:4px}button.group{float:right;margin-top:3px}button.element{margin-left:5px}button:hover{background-position:0 -15px;outline-offset:-6px;text-decoration:none;transition:background-position 0.1s linear 0s}input:focus,select:focus{border-color:#176ca7;box-shadow:0 1px 1px rgba(0, 0, 0, 0.05) inset, 0 0 8px #99cdf1;transition:border 0.2s linear 0s, box-shadow 0.2s linear 0s}div.left > div,div.right > div{background:none repeat scroll 0 center #f6f6f6;color:#222 !important;outline:1px solid gainsboro}div.right h3{background-color:#666;background-image:linear-gradient(#666666, #545454);background-repeat:repeat-x;background-size:100% auto;border-collapse:collapse;border-spacing:0;border-top-left-radius:4px;border-top-right-radius:4px;color:#fff;direction:ltr;font-family:sans-serif;font-size:12.8px;font-weight:700;line-height:19.2px;margin:0 0 1px;padding:5px 10px;text-align:left;text-shadow:#222 0 1px 1px;vertical-align:bottom}div.left h3{background-color:#176ca7;background-image:linear-gradient(#176ca7, #135888);background-repeat:repeat-x;background-size:100% auto;border-collapse:collapse;border-spacing:0;border-top-left-radius:4px;border-top-right-radius:4px;color:#fff;direction:ltr;font-family:sans-serif;font-size:12.8px;font-weight:700;line-height:19.2px;margin:0 0 1px;padding:5px 10px;text-align:left;text-shadow:#222 0 1px 1px;vertical-align:bottom}.remove-highlight input,.remove-highlight select{border-color:rgb(239, 6, 6);border-style:solid;border-width:1px;border-radius:5px;-webkit-transition:all 0.1s linear 0s, border-color 0s;transition:all 0.1s linear 0s, border-color 0s}button:hover,h3.other:hover,h3.recommended:hover{cursor:pointer}h1,h2{color:#0084b9}span.divider{border-bottom:1px gainsboro solid;float:left;line-height:3px;margin-bottom:5px;width:100%}pre{white-space:pre-wrap;word-wrap:break-word}span.output{float:left}a.button{-moz-text-blink:none;-moz-text-decoration-color:#fff;-moz-text-decoration-line:none;-moz-text-decoration-style:solid;background-color:#176ca7;background-image:linear-gradient(#176ca7, #114f7a);background-repeat:repeat-x;background-size:100% auto;border-bottom-color:#0b324d;border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom-style:solid;border-bottom-width:1px;border-collapse:collapse;border-left-color:#0e4164;border-left-style:solid;border-left-width:1px;border-right-color:#0e4164;border-right-style:solid;border-right-width:1px;border-spacing:0;border-top-color:#0e4164;border-top-left-radius:4px;border-top-right-radius:4px;border-top-style:solid;border-top-width:1px;box-shadow:rgba(255, 255, 255, 0.2) 0 1px 0 0 inset, rgba(0, 0, 0, 0.05) 0 1px 2px 0;color:#fff;cursor:pointer;direction:ltr;display:inline-block;font-family:Arial, Verdana, Helvetica, sans-serif;font-size:13.3333px;font-weight:400;line-height:16px;padding:4px 10px;text-align:center;text-decoration:none;text-shadow:#222 0 1px 1px;vertical-align:middle}
</style>
</head>
<body>
<h2 class="pagetitle">DataCite Metadata Generator - Kernel 4.0</h2>
<div class="left">
<h3 class="mandatory">Mandatory Elements</h3>
<div class="form mandatory">
<div class="section">
<span class="tag-group-label">DOI:</span>
<div class="tag-group">
<div title="identifier" class="tag">
<input class="input-field full-width tag-value" type="text" placeholder="[DOI]" title="identifier" value="" />
<input class="input-field tag-attribute" type="hidden" title="identifierType" value="DOI" />
</div>
</div>
</div>
<span class="divider"> </span>
<div title="titles" class="section wrapper-tag">
<span class="tag-group-label">Title(s):</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="title" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[TITLE]" title="title" value="" />
<select class="half-width input-field tag-attribute" title="titleType"></select>
</div>
</div>
</div>
<span class="divider"> </span>
<div title="creators" class="section wrapper-tag">
<span class="tag-group-label">Creator(s):</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="creator" class="tag">
<div title="creatorName" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[CREATOR NAME]" title="creatorName" value="" />
</div>
<div title="givenName" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[GIVEN NAME] (optional)" title="givenName" value="" />
</div>
<div title="familyName" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[FAMILY NAME] (optional)" title="familyName" value="" />
</div>
<div title="nameIdentifier" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[NAME IDENTIFIER]" title="nameIdentifier" value="" />
<input class="half-width input-field tag-attribute" type="text" placeholder="[NAME ID SCHEME]" title="nameIdentifierScheme" value="" />
<input class="unbounded-width input-field tag-attribute" type="text" placeholder="[IDENTIFIER SCHEME URI]" title="schemeURI" value="" /><button type="button" class="add single-tag">+</button>
</div>
<div title="affiliation" class="tag">
<input class="unbounded-width input-field tag-value" type="text" placeholder="[CREATOR AFFILIATION]" title="affiliation" value="" /><button type="button" class="add single-tag">+</button>
</div>
</div>
</div>
</div>
<span class="divider"> </span>
<div class="section">
<span class="tag-group-label">Publisher:</span>
<div class="tag-group">
<div title="publisher" class="tag">
<input type="text" class="full-width input-field tag-value" placeholder="[PUBLISHER]" title="publisher" value="" />
</div>
</div>
</div>
<span class="divider"> </span>
<div class="section">
<span class="tag-group-label">Publication Year:</span>
<div class="tag-group">
<div title="publicationYear" class="tag">
<input type="text" class="full-width input-field tag-value" placeholder="[YYYY]" title="publicationYear" pattern="[0-9]{4}" value="" />
</div>
</div>
</div>
<span class="divider"> </span>
<div class="section">
<span class="tag-group-label">Resource Type:</span>
<div class="tag-group">
<div title="resourceType" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[RESOURCE TYPE]" title="resourceType" value="" />
<select class="half-width input-field tag-attribute" title="resourceTypeGeneral"></select>
</div>
</div>
</div>
</div>
<h3 class="recommended">+ Recommended Elements</h3>
<div id="recommended" class="form recommended hidden">
<div title="subjects" class="section wrapper-tag">
<span class="tag-group-label">Subject(s):</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="subject" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[SUBJECT]" title="subject" value="" />
<input class="half-width input-field tag-attribute" type="text" placeholder="[SUBJECT SCHEME]" title="subjectScheme" value="" />
<input class="full-width input-field tag-attribute" type="text" placeholder="[SUBJECT SCHEME URI]" title="schemeURI" value="" />
<input class="full-width input-field tag-attribute" type="text" placeholder="[SUBJECT VALUE URI]" title="valueURI" value="" />
</div>
</div>
</div>
<span class="divider"> </span>
<div title="contributors" class="section wrapper-tag">
<span class="tag-group-label">Contributor(s):</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="contributor" class="tag">
<div title="contributorName" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[CONTRIBUTOR NAME]" title="contributorName" value="" />
</div>
<select class="half-width input-field tag-attribute" title="contributorType"></select>
<div title="givenName" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[GIVEN NAME] (optional)" title="givenName" value="" />
</div>
<div title="familyName" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[FAMILY NAME] (optional)" title="familyName" value="" />
</div>
<div title="nameIdentifier" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[NAME IDENTIFIER]" title="nameIdentifier" value="" />
<input class="half-width input-field tag-attribute" type="text" placeholder="[NAME ID SCHEME]" title="nameIdentifierScheme" value="" />
<input class="unbounded-width input-field tag-attribute" type="text" placeholder="[IDENTIFIER SCHEME URI]" title="schemeURI" value="" /><button type="button" class="add single-tag">+</button>
</div>
<div title="affiliation" class="tag">
<input class="unbounded-width input-field tag-value" type="text" placeholder="[CONTRIBUTOR AFFILIATION]" title="affiliation" value="" /><button type="button" class="add single-tag">+</button>
</div>
</div>
</div>
</div>
<span class="divider"> </span>
<div title="dates" class="section wrapper-tag">
<span class="tag-group-label">Date(s):</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="date" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[DATE]" title="date" value="" />
<select class="half-width input-field tag-attribute" title="dateType"></select>
</div>
</div>
</div>
<span class="divider"> </span>
<div title="relatedIdentifiers" class="section wrapper-tag">
<span class="tag-group-label">Related Identifier(s):</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="relatedIdentifier" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[RELATED IDENTIFIER]" title="relatedIdentifier" value="" />
<select class="half-width input-field tag-attribute" title="relatedIdentifierType"></select>
<select class="half-width input-field tag-attribute" title="relationType"></select>
<input class="half-width input-field tag-attribute" type="text" placeholder="[METADATA SCHEME]" title="relatedMetadataScheme" value="" />
<input class="half-width input-field tag-attribute" type="text" placeholder="[SCHEME TYPE]" title="schemeType" value="" />
<input class="full-width input-field tag-attribute" type="text" placeholder="[SCHEME URI]" title="schemeURI" value="" />
</div>
</div>
</div>
<span class="divider"> </span>
<div title="descriptions" class="section wrapper-tag">
<span class="tag-group-label">Description:</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="description" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[DESCRIPTION]" title="description" value="" />
<select class="half-width input-field tag-attribute" title="descriptionType"></select>
</div>
</div>
</div>
<span class="divider"> </span>
<div title="geoLocations" class="section wrapper-tag">
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="geoLocation" class="tag">
<span class="tag-group-label">Geo Location Place:</span>
<div title="geoLocationPlace" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[GEO LOCATION PLACE]" title="geoLocationPlace" value="" />
</div>
<span class="tag-group-label">Geo Location Point:</span>
<div title="geoLocationPoint" class="tag">
<div title="pointLongitude" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[POINT LONGITUDE]" title="pointLongitude" value="" />
</div>
<div title="pointLatitude" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[POINT LATITUDE]" title="pointLatitude" value="" />
</div>
</div>
<span class="tag-group-label">Geo Location Box:</span>
<div title="geoLocationBox" class="tag">
<div title="westBoundLongitude" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[WEST BOUND LONGITUDE]" title="westBoundLongitude" value="" />
</div>
<div title="eastBoundLongitude" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[EAST BOUND LONGITUDE]" title="eastBoundLongitude" value="" />
</div>
<div title="southBoundLatitude" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[SOUTH BOUND LATITUDE]" title="southBoundLatitude" value="" />
</div>
<div title="northBoundLatitude" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[NORTH BOUND LATITUDE]" title="northBoundLatitude" value="" />
</div>
</div>
<span class="tag-group-label">Geo Location Polygon:</span>
<div title="geoLocationPolygon" class="tag">
<div title="polygonPoint" class="tag">
<div title="pointLongitude" class="tag">
<input class="half-width-smaller input-field tag-value" type="text" placeholder="[POINT LONGITUDE]" title="pointLongitude" value="" />
</div>
<div title="pointLatitude" class="tag">
<input class="half-width-smaller input-field tag-value" type="text" placeholder="[POINT LATITUDE]" title="pointLatitude" value="" />
</div>
</div>
<div title="polygonPoint" class="tag">
<div title="pointLongitude" class="tag">
<input class="half-width-smaller input-field tag-value" type="text" placeholder="[POINT LONGITUDE]" title="pointLongitude" value="" />
</div>
<div title="pointLatitude" class="tag">
<input class="half-width-smaller input-field tag-value" type="text" placeholder="[POINT LATITUDE]" title="pointLatitude" value="" />
</div>
</div>
<div title="polygonPoint" class="tag">
<div title="pointLongitude" class="tag">
<input class="half-width-smaller input-field tag-value" type="text" placeholder="[POINT LONGITUDE]" title="pointLongitude" value="" />
</div>
<div title="pointLatitude" class="tag">
<input class="half-width-smaller input-field tag-value" type="text" placeholder="[POINT LATITUDE]" title="pointLatitude" value="" />
</div>
</div>
<div title="polygonPoint" class="tag">
<div title="pointLongitude" class="tag">
<input class="half-width-smaller input-field tag-value" type="text" placeholder="[POINT LONGITUDE]" title="pointLongitude" value="" />
</div>
<div title="pointLatitude" class="tag">
<input class="half-width-smaller input-field tag-value" type="text" placeholder="[POINT LATITUDE]" title="pointLatitude" value="" />
</div><button type="button" class="add single-tag">+</button>
</div>
</div>
</div>
</div>
</div>
</div>
<h3 class="other">+ Other Elements</h3>
<div id="other" class="form other hidden">
<div class="section">
<span class="tag-group-label">Language:</span>
<div class="tag-group">
<div title="language" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[LANGUAGE]" title="language" value="" />
</div>
</div>
</div>
<span class="divider"> </span>
<div title="alternateIdentifiers" class="section wrapper-tag">
<span class="tag-group-label">Alternate Identifier(s):</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="alternateIdentifier" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[ALTERNATE IDENTIFIER]" title="alternateIdentifier" value="" />
<input class="half-width input-field tag-attribute" type="text" placeholder="[ALTERNATE ID TYPE]" title="alternateIdentifierType" value="" />
</div>
</div>
</div>
<span class="divider"> </span>
<div title="sizes" class="section wrapper-tag">
<span class="tag-group-label">Size(s):</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="size" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[SIZE]" title="size" value="" />
</div>
</div>
</div>
<span class="divider"> </span>
<div title="formats" class="section wrapper-tag">
<span class="tag-group-label">Format(s):</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="format" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[FORMAT]" title="format" value="" />
</div>
</div>
</div>
<span class="divider"> </span>
<div class="section">
<span class="tag-group-label">Version:</span>
<div class="tag-group">
<div title="version" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[VERSION]" title="version" value="" />
</div>
</div>
</div>
<span class="divider"> </span>
<div title="rightsList" class="section wrapper-tag">
<span class="tag-group-label">Rights List:</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="rights" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[RIGHTS]" title="rights" value="" />
<input class="full-width input-field tag-attribute" type="text" placeholder="[RIGHTS URI]" title="rightsURI" value="" />
</div>
</div>
</div>
<span class="divider"> </span>
<div title="fundingReferences" class="section wrapper-tag">
<span class="tag-group-label">Funding Reference:</span>
<button type="button" class="add group">+</button>
<div class="tag-group">
<div title="fundingReference" class="tag">
<div title="funderName" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[FUNDER NAME]" title="funderName" value="" />
</div>
<div title="funderIdentifier" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[FUNDER IDENTIFIER]" title="funderIdentifier" value="" />
<select class="half-width input-field tag-attribute" title="funderIdentifierType"></select>
</div>
<div title="awardNumber" class="tag">
<input class="half-width input-field tag-value" type="text" placeholder="[AWARD NUMBER]" title="awardNumber" value="" />
<input class="half-width input-field tag-attribute" type="text" placeholder="[AWARD URI]" title="awardURI" value="" />
</div>
<div title="awardTitle" class="tag">
<input class="full-width input-field tag-value" type="text" placeholder="[AWARD TITLE]" title="awardTitle" value="" />
</div>
</div>
</div>
</div>
</div>
<br />
</div>
<div class="right hidden">
<h3 class="results">Metadata</h3>
<div class="form results">
<pre><code style="display:inline-block;"></code></pre>
</div>
<br />
<button type="button" id="download" onclick="save()">Ready to Save</button>
<button type="button" id="reset">Reset</button>
<button type="button" id="selectall">Select All</button>
<span class="output" id="output"></span>
</div>
</body>
</html>