-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (91 loc) · 5.86 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>XML Generator for Posted Content Type</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="container">
<h1>XML Generator</h1>
<h2>for Posted Content Type <a href="https://www.crossref.org/documentation/research-nexus/posted-content-includes-preprints/" target="_blank" alt="Crossref Documentation">
<i class="fas fa-info-circle"></i></a></h2>
<h3><a href="https://paideiastudio.net" target="_blank"><img src="https://paideiastudio.net/wp-content/uploads/2024/01/sentirloRecurso-11.png" alt="Paideia studio" width="130"></a></h3>
<p>In this form you will be able to generate in a simple way an XML to load in Crossref and deposit DOI specifically for one type: Posted Content.</p>
<p>You can test <a href="https://data.crossref.org/reports/parser.html" target="_blank">the downloaded XML here</a>.</p>
<p>You can learn <a href="https://www.crossref.org/documentation/register-maintain-records/direct-deposit-xml/admin-tool/" target="_blank">how to upload the downloaded XML to Crossref here</a>.</p>
<form onsubmit="event.preventDefault(); generarXML();">
<label for="depositante"><a href="https://data.crossref.org/reports/help/schema_doc/4.4.2/schema_4_4_2.html#depositor" target="_blank" alt="Crossref Documentation">
<i class="fas fa-info-circle"></i></a> Depositor:</label>
<input type="text" id="depositante" name="depositante" required title="Enter the name under which your institution is registered with Crossref.">
<label for="emailDepositante"><a href="https://data.crossref.org/reports/help/schema_doc/4.4.2/schema_4_4_2.html#email_address" target="_blank" alt="Crossref Documentation">
<i class="fas fa-info-circle"></i></a> Depositor Email:</label>
<input type="email" id="emailDepositante" name="emailDepositante" required title="Enter the e-mail address your institution is registered with Crossref.">
<label for="registrante"><a href="https://data.crossref.org/reports/help/schema_doc/4.4.2/schema_4_4_2.html#registrant" target="_blank" alt="Crossref Documentation">
<i class="fas fa-info-circle"></i></a> Registrant:</label>
<input type="text" id="registrante" name="registrante" required title="The organization that owns the information being registered.">
<label for="tipoContenido">Type of content:</label>
<select id="tipoContenido" name="tipoContenido">
<option value="preprint">Preprint</option>
<option value="working_paper">Working Paper</option>
<option value="letter">Letter</option>
<option value="dissertation">Dissertation</option>
<option value="report">Report</option>
<option value="review">Review</option>
<option value="other">Other</option>
</select>
<!-- Caja de autores -->
<div id="autoresContainer">
<label style="text-align: center; margin-top: 10px; text-transform: uppercase;">Autor box</label>
<!-- Primer autor presente desde el principio -->
<div class="autor">
<label for="nombre">Name:</label>
<input type="text" class="nombre" required>
<label for="apellido">Surname:</label>
<input type="text" class="apellido" required>
<label for="sequence">Sequence:</label>
<select class="sequence">
<option value="first">First</option>
<option value="additional">Additional</option>
</select>
<label for="contributorRole">Contributor Role:</label>
<select class="contributorRole">
<!-- Opciones para Contributor Role se agregarán dinámicamente aquí -->
</select>
<label for="afiliacion">Affiliation:</label>
<input type="text" class="afiliacion">
<label for="orcid">ORCID (Full URL):</label>
<input type="text" class="orcid" placeholder="https://orcid.org/0000-0002-8104-8975">
</div>
</div>
<button type="button" onclick="agregarAutor()">Add Author</button>
<!-- Nuevo campo para el título del contenido -->
<label for="tituloContenido">Title of Content:</label>
<input type="text" id="tituloContenido" name="tituloContenido" required>
<!-- Nuevos campos para fechas -->
<label for="postedDate">Publication Date:</label>
<input type="date" id="postedDate" name="postedDate" required>
<!-- fecha de aceptación -->
<label for="acceptanceDate">Acceptance Date:</label>
<input type="date" id="acceptanceDate" name="acceptanceDate" required>
<!-- Nuevo campo para el DOI -->
<label for="doi">DOI:</label>
<input type="text" id="doi" name="doi" required placeholder="10.62059/paideia.studio.12790">
<!-- Nuevo campo para la Resource -->
<label for="resource">Resource:</label>
<input type="text" id="resource" name="resource" required placeholder="https://paideiastudio.net/etica-en-la-publicacion-academica/">
<br>
<button type="button" onclick="generarXML()">Generate XML</button>
</form>
<h2>XML Generated:</h2>
<pre id="xmlOutput"></pre>
<!-- Botón de Descargar -->
<button id="downloadButton" style="display: none;" onclick="descargarXML()">Download XML</button>
<!-- Archivo JS -->
<script src="generadorXML.js"></script>
</div>
<footer>This app code is <a href="https://github.com/Ppantaleo/form-Crossref" target="_blank">here</a>.</footer>
</body>
</html>