-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
95 lines (90 loc) · 5.65 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
<!DOCTYPE html>
<html>
<head>
<title>Materiales Arasaac</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="http://www.simile-widgets.org/styles/common.css" type="text/css" />
<link href="materiales.js" type="application/json" rel="exhibit-data" />
<link href="autores.json" type="application/json" rel="exhibit-data" />
<link href="esquema.json" type="application/json" rel="exhibit-data" />
<link href="edades.json" type="application/json" rel="exhibit-data" />
<link href="niveles.json" type="application/json" rel="exhibit-data" />
<link href="tipos.json" type="application/json" rel="exhibit-data" />
<link rel="exhibit-extension" type="text/javascript" href="http://api.simile-widgets.org/exhibit/current/extensions/time/time-extension.js" />
<script src="http://api.simile-widgets.org/exhibit/current/exhibit-api.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.3.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.3.0/css/bootstrap-theme.min.css" />
<script src="http://api.simile-widgets.org/exhibit/HEAD/lib/jquery.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript">
function creaLink(material) {
var url_arasaac = "http://arasaac.org/zona_descargas/materiales/";
var itemID = material.getAttribute("itemid");
var archivos = material.getElementsByClassName("ar_link")[0].getElementsByTagName('span');
var links = material.getElementsByClassName("links")[0];
var docfrag = document.createDocumentFragment();
for (i = 0; i < archivos.length; i++) {
var iconfile = document.createElement('span');
iconfile.className = "glyphicon glyphicon-download";
var link = document.createElement('a');
link.href = url_arasaac + itemID + "/" + archivos[i].textContent;
link.text = archivos[i].textContent;
link.appendChild(iconfile);
docfrag.appendChild(link);
docfrag.appendChild(document.createTextNode(" "));
}
links.appendChild(docfrag);
}
</script>
<style>
.links ul li {
display: inline
}
</style>
</head>
<body>
<div data-ex-role="collection" data-ex-item-types="Item"></div>
<div data-ex-role="collection" data-ex-item-types="autor" id="autores"></div>
<div class="container-fluid">
<div class="row page-header">
<div class="col-sm-1 col-sm-offset-2 col-xs-2 col-xs-offset-1">
<img class="img-responsive" src="hola.png" alt="arasaac">
</div>
<div class="col-xs-8 titulo">
<h1>Materiales Arasaac</h1>
</div>
</div>
<div class="row">
<div class="col-xs-3">
<div data-ex-role="facet" data-ex-facet-class="TextSearch" data-ex-facet-label="Search" data-ex-expressions=".label, .descripcion, .autor.label"></div>
<div data-ex-role="facet" data-ex-expression=".autor" data-ex-show-missing="false" data-ex-facet-label="Autor" data-ex-sort-mode="count"></div>
<div data-ex-role="facet" data-ex-expression=".edad" data-ex-show-missing="false" data-ex-fixed-order="0 a 3;3 a 6;6 a 9;9 a 12;12 a 15;15 a 18;Adultos;Ancianos;Otros intervalos" data-ex-facet-label="Edad"></div>
<div data-ex-role="facet" data-ex-expression=".nivel" data-ex-show-missing="false" data-ex-facet-label="Nivel educativo" data-ex-fixed-order="E.Especial;E.Infantil;E.Primaria;E.S.O;E.Adultos;TVA - Transición Vida Adulta;Ancianos;Centros Ocupacionales"></div>
<div data-ex-role="facet" data-ex-expression=".tipo" data-ex-show-missing="false" data-ex-facet-label="Tipo de recurso" data-ex-fixed-order="E.Especial;E.Infantil;E.Primaria;E.S.O;E.Adultos;TVA - Transición Vida Adulta;Ancianos;Centros Ocupacionales"></div>
</div>
<div class="col-xs-9">
<div data-ex-role="lens" data-ex-item-types="autor" style="display: none">
<span style="color: #008" data-ex-content=".label"></span>
<ol data-ex-content="!autor">
<li data-ex-content="value"></li>
</ol>
</div>
<div class="item" data-ex-role="exhibit-lens" data-ex-item-types="Item" style="display: none" data-ex-onshow="creaLink(this)">
<p><strong data-ex-content=".label"></strong></p>
<p><span data-ex-content=".descripcion"></span></p>
<p><strong>De </strong><span data-ex-content=".autor"></span></p>
<p><span class="ar_link" data-ex-content=".archivos" style="display: none"></span></p>
<p class="links"><strong>Descargas:</strong> </p>
</div>
<div data-ex-role="viewPanel">
<div data-ex-role="view" data-ex-label="Listado" data-ex-paginate="true" data-ex-showAll="false" data-ex-grouped="false" data-ex-orders="fecha-alta" data-ex-directions="descending" data-ex-possible-orders=".autor, .label">
</div>
<div data-ex-role="view" data-ex-view-class="Timeline" data-ex-start=".fecha_alta" data-ex-color-key=".tipo.label" data-ex-caption=".discipline" data-ex-bubble-width="150" data-ex-bubble-height="150" date-time-format="iso8601" data-ex-bottom-band-unit="month" >
</div>
</div>
</div>
</div>
</div>
</body>
</html>