1
|
$common/master( header={
|
2
|
|
3
|
<script type="text/javascript" src="../resources/js/angular-1.4.8.min.js"></script>
|
4
|
|
5
|
<script type="text/javascript" src="../resources/js/blacklist.js"></script>
|
6
|
|
7
|
}, body={
|
8
|
<div ng-app="blacklistUI" ng-controller="blacklistCtrl">
|
9
|
<div class="row">
|
10
|
<div class="col-xs-12 col-md-6">
|
11
|
<form name="buscadorForm">
|
12
|
<div class="form-group">
|
13
|
<label for="title">Titulo</label>
|
14
|
<input ng-model="query.title" type="text" class="form-control" id="title" placeholder="Ejemplo: carta de Francisco Rodriguez Adrados a Antonio Tovar Llorente">
|
15
|
</div>
|
16
|
<div class="form-group">
|
17
|
<label for="url">Identificador:</label>
|
18
|
<input type="url" ng-model="query.url" class="form-control" id="url" placeholder="Ejemplo: http://dhl.handle.net/10366/76336">
|
19
|
</div>
|
20
|
<div class="form-group">
|
21
|
<label for="author">Autor (*):</label>
|
22
|
<input type="text" ng-required="true" ng-model="query.author" class="form-control" id="author" placeholder="Ejemplo: Rodríguez Adrados, Francisco">
|
23
|
</div>
|
24
|
<div class="form-group">
|
25
|
<label for="repository">Repositorio:</label>
|
26
|
<input type="text" ng-model="query.repository" class="form-control" id="repository" placeholder="Ejemplo: GREDOS: Repositori Institutional de la Universidad de Salamanca">
|
27
|
</div>
|
28
|
<div class="form-group">
|
29
|
<label for="institution">Institución:</label>
|
30
|
<input type="text" ng-model="query.institution" class="form-control" id="institution" placeholder="Ejemplo: Universidad de Salamanca (USAL)">
|
31
|
</div>
|
32
|
|
33
|
|
34
|
<button type="submit" ng-disabled="buscadorForm.\$invalid" class="btn btn-default" ng-click="listResults()">Buscar</button>
|
35
|
|
36
|
<button type="submit" ng-disabled="selection.length==0" class="btn btn-default" ng-click="sendResults()">Añadir publicación</button>
|
37
|
</form>
|
38
|
</div></div>
|
39
|
<div class="panel panel-default" ng-repeat="r in results track by \$index">
|
40
|
<div class="panel-heading">
|
41
|
<input
|
42
|
type="checkbox"
|
43
|
value="{{r.id}}"
|
44
|
ng-checked="selection.indexOf(r.id) > -1"
|
45
|
ng-click="toggleSelection(r.id)"
|
46
|
>
|
47
|
<a class="accordion-toggle" data-toggle="collapse" data-target="#collapse_{{\$index}}"><b> Result: </b><i>{{\$index + 1}}</i></a>
|
48
|
{{r.id}}
|
49
|
</div>
|
50
|
<div id="collapse_{{\$index}}" class="panel-collapse collapse in">
|
51
|
<div class="panel-body" >
|
52
|
<div ng-bind-html="to_trusted(r.metadata)"></div>
|
53
|
</div>
|
54
|
</div>
|
55
|
|
56
|
</div>
|
57
|
</div>
|
58
|
|
59
|
} )$
|