-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (82 loc) · 3.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EHRI Components test</title>
<style>
html,
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
background-color: rgb(240, 240, 240);
border: 0;
padding: 2rem;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.5rem;
}
code {
font-family: monospace;
color: #d82086;
}
pre {
margin: 0;
background-color: #fff;
padding: .4rem;
font-weight: normal;
}
</style>
</head>
<body>
<script src="dist/ehri-web-components.js"></script>
<h1>EHRI Web Component Demo</h1>
<p>
This library provides two custom tags: <code><ehri-item></code>, and <code><ehri-resource></code>.
</p>
<h2>EHRI Portal Items</h2>
<p>The <code><ehri-item></code> tag displays a panel providing info about an item in the <a href="https://portal.ehri-project.eu/">EHRI Portal</a>.
It requires a single attribute named <code>item-id</code> containing the global identifier of the entity.</p>
<p>
The following types of item are currently supported:
</p>
<ul>
<li>Archival Institutions</li>
<li>Archival Descriptions</li>
<li>Archival Authorities</li>
<li>Country Reports</li>
</ul>
<h3>Example code:</h3>
<pre>
<script src="ehri-web-components.js"></script>
<ehri-item item-id="us-005578"></ehri-item>
</pre>
<h3>Examples:</h3>
<h4>Archival Institutions</h4>
<p><code><ehri-item item-id="us-005578"></ehri-item></code></p>
<ehri-item item-id="us-005578"></ehri-item>
<h4>Archival Descriptions</h4>
<p><code><ehri-item item-id="il-002798-4019665"></ehri-item></code></p>
<ehri-item item-id="il-002798-4019665"></ehri-item>
<h4>Archival Authorities</h4>
<p><code><ehri-item item-id="ehri_cb-001658"></ehri-item></code></p>
<ehri-item item-id="ehri_cb-001658"></ehri-item>
<h4>Country Reports</h4>
<p><code><ehri-item item-id="de"></ehri-item></code></p>
<ehri-item item-id="de"></ehri-item>
<h2>EHRI Resources</h2>
<p>The <code><ehri-resource></code> tag shows a panel containing info about an EHRI resource, i.e.
a website or other programme provided by EHRI, that is registered on the <a href="https://marketplace.eosc-portal.eu/services?providers=306">EOSC Portal</a>.
It requires a single attribute: <code>resource-id</code>, containing the EOSC identifier of the EHRI resource.</p>
<h3>Examples:</h3>
<h4>The EHRI Portal</h4>
<p><code><ehri-resource resource-id="ehri.the_ehri_portal"></ehri-resource></code></p>
<ehri-resource resource-id="ehri.the_ehri_portal"></ehri-resource>
<h4>The Begrenzte Flucht Online Edition</h4>
<p><code><ehri-resource resource-id="ehri.begrenzte_flucht"></ehri-resource></code></p>
<ehri-resource resource-id="ehri.begrenzte_flucht"></ehri-resource>
</body>
</html>