-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
709 lines (677 loc) · 43.5 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
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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cartillas Indigenas</title>
</head>
<body class="body-special">
<div id="app" style="height: 100%;">
<router-view></router-view>
<footer>
<div>
<div style="background-color: #F5F5F5; height: 100px; border-bottom: solid 3px #E5E4E3; text-align: center;"
class="p-3 logos-footer">
<a href="https://colmex.mx">
<img src="src/assets/logo_colmex.svg" width="350px" class="me-5" alt="">
</a>
<a href="https://biblioteca.colmex.mx/">
<img src="src/assets/bdcv_project.png" class="me-5" alt="">
</a>
<a href="https://mexico.sil.org/es">
<img src="src/assets/footer_logo_instituto.png" alt="" class="me-5">
</a>
</div>
<div style="background-color: #F5F5F5; height: 100px; text-align: center;" class="p-4 dir-footer">
<p>
<strong>El Colegio de México A.C.</strong> Carretera Picacho Ajusco 20, Col. Ampliación Fuentes
del Pedregal, C.P. 14110 Tlalpan, Ciudad de México
</p>
<p>
<strong>[email protected]</strong> | +5255 5449-3000 ext.: 2121, 2122 | Horario de servicio:
<strong>Lunes a Viernes 8:30 - 20:30 hrs</strong>
</p>
</div>
</div>
</footer>
</div>
<!--<div w3-include-html="js/vue/src/templates/home.html">
</div>-->
<div w3-include-html="src/templates/maps.html"></div>
<div w3-include-html="src/templates/personas.html"></div>
<div w3-include-html="src/templates/advancedview.html"></div>
<div w3-include-html="src/templates/docview.html"></div>
<div w3-include-html="src/templates/about.html"></div>
<!--<div w3-include-html="src/templates/videoview.html"> </div>-->
<div w3-include-html="src/templates/collections.html"></div>
<div w3-include-html="src/templates/collection_list.html"></div>
<template id="languaje">
<div class="btn-group" style="float: right; display: inline; width: 30%; margin: 20px 0;">
<button style="float: right;" class="btn dropdown-toggle btn-languaje" type="button" id="dropdownMenuButton"
data-toggle="dropdown">
{{$t(this.$i18n.locale)}} <span class="caret caret-white"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#" @click="changeLang('sp')">{{$t('spanish')}}</a>
</li>
<li><a href="#" @click="changeLang('en')">{{$t('english')}}</a></li>
</ul>
</div>
</template>
<template id="home">
<div class="bg" style="height: 100%;">
<div
style="background-color: rgb(250 250 250); width: 100%; position: absolute; border-bottom: 7px solid rgb(91,39,121);">
<div class="container">
<headers :keyword="keyword" :pages="repo.pages" :filter="filter" :search_in="search_in"
is_page="false" is_home="true"></headers>
</div>
</div>
<div class="container" style="height: 100%;">
<armados></armados>
</div>
</div>
</template>
<template id="mainarmados">
<div class="first-search center">
<div class="title text-center"><strong><!--¡Bienvenido!--></strong></div>
<div class="search-form text-center" >
<div class="row mt-2">
<div class="col-3">
</div>
<div :class="[isMobile ? 'col-12': 'col-6']">
<div class="input-group">
<input type="text" class="form-control search-input" :placeholder="$t('search_term')"
v-model="search" name="keyword" @keyup.enter="send_data()" />
<button class="btn btn-primary" type="button" @click="send_data()">
<span class="material-icons">search</span> </button>
<button class="btn btn-primary" v-on:click="show = !show" type="button"><span
class="material-icons">
more_horiz
</span></button>
</div>
<transition name="fade">
<div class="bg-dark p-3 bg-advanced" v-if="show">
<div class="col-md-auto mb-2">
<label for=""> Buscar en: </label>
</div>
<div class="col-md-auto">
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions"
id="inlineRadio1" value="all_fields" checked v-model="search_in">
<label class="form-check-label" for="inlineRadio1">Todo</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions"
id="inlineRadio2" value="description" v-model="search_in">
<label class="form-check-label" for="inlineRadio2">Descripción</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions"
id="inlineRadio4" value="creator" v-model="search_in">
<label class="form-check-label" for="inlineRadio4">Autor</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions"
id="inlineRadio5" value="title" v-model="search_in">
<label class="form-check-label" for="inlineRadio5">Titulo</label>
</div>
</div>
</div>
</transition>
<!--<input type="text" class="form-control search-input" :placeholder="$t('search_term')"
v-model="search" name="keyword" @keyup.enter="send_data()" />
<span class="input-group-btn">
<button type="button" class="btn btn-search" @click="send_data()">
<span class="glyphicon glyphicon-search"></span> {{$t('go')}}
</button>
</span>-->
</div>
<div class="col-3">
</div>
</div>
<!--<div class="row mt-4">
<div class="col-4">
<label for="coleccion">Filtrar por colección:</label>
</div>
<div class="col-8">
<select v-model="collection" class="form-select" name="coleccion" id="coleccion">
<option value="todo" >Todo</option>
<option value="tesis">Tesis</option>
</select>
</div>
</div>-->
<div class="row ">
<div class="col-7">
</div>
</div>
<div class="row mt-2">
<div class="col-3">
</div>
<div :class="[isMobile ? 'col-12': 'col-6']">
<div class="d-grid gap-2 fw-bolder" :class="[isMobile ? 'fs-7':'fs-4']">
<p>Explore más de 600 cartillas de lenguas indígenas mexicanas, publicadas en México,
desde 1940 hasta 1980. Proyecto colaborativo de la Biblioteca Daniel Cosío Villegas
de El Colegio de México y el Instituto Lingüístico de Verano, A.C.
</p>
<!--<button type="button" class="btn btn-primary" @click="send_data">
<span class="glyphicon glyphicon-search"></span> Buscar
</button>-->
</div>
</div>
<div class="col-3">
</div>
</div>
<!--<div class="row mt-5 justify-content-center">
<div class="col-12">
<ul class="nav nav-search">
<li class="nav-item">
<!--<a class="nav-link" href="/search">Ver Todo</a>-->
<!--<router-link class="nav-link" to="search">Ver Todo</router-linkv>
</li>
<li class="nav-item">
<router-link class="nav-link" to="personas">Personas Mencionadas</router-link>
</li>
<li class="nav-item">
<router-link class="nav-link" to="about">Sobre el Sitio</router-linkv>
</li>
</ul>
</div>
</div>
<div class="row mt-3">
<div class="col-12">
<img src="./src/assets/logo-colmex.png" height="75" width="200" class="rounded mx-auto d-block"
alt="COLMEX">
</div>
</div>-->
</div>
</div>
</template>
<template id="headers">
<div class="" >
<div class="row header">
<nav class="navbar navbar-expand-lg navbar-light">
<div class="container-fluid">
<router-link class="" to="/">
<span class="logo"><img src="src/assets/cartillas.png" alt=""
class="d-inline-block align-text-top"></span></router-link>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0 text-start">
<!--<li class="nav-item">
<router-link class="nav-link" to="/">INICIO</router-link>
<!--<a class="nav-link " aria-current="page" href="#">Inicio</a>-->
<!--</li>-->
<li class="nav-item" style="min-width: 90px;">
<router-link class="nav-link" to="about">ACERCA DE</router-link>
<!--<a class="nav-link" href="#">Sobre el sitio</a>-->
</li>
<li class="nav-item">
<!--<router-link class="nav-link" @click="reload()" to="">Ver Todo</router-link>-->
<a class="nav-link " @click="reload()" href="./#/search">EXPLORAR</a>
</li>
<li class="nav-item">
<router-link class="nav-link" to="maps">MAPA</router-link>
<!--<a class="nav-link " href="#">Personas Mencionadas</a>-->
</li>
<li class="nav-item">
<router-link class="nav-link" to="personas">CONTACTO</router-link>
<!--<a class="nav-link " href="#">Personas Mencionadas</a>-->
</li>
</ul>
</div>
<div class="divsearch" v-if="is_home != 'true'">
<input type="search" @keyup.enter="get_search" class="globalsearch" style="width: 70%;"
placeholder="Búsqueda" v-model="search" name="lname" />
<button type="button" @click="get_search" class="btn-globalsearch"><span class="material-icons">
search
</span></button>
<button type="button" id="btn-advanced" class="btn-globalsearch btn-advanced"
data-bs-container="body" data-bs-toggle="popover" data-bs-placement="bottom">
<span class="material-icons">
more_horiz
</span>
</button>
<div hidden>
<div class="hide" data-name="popover-content" id="optionsearch">
<div class="card card-body">
<div class="form-check">
<input class="form-check-input" type="radio" name="optionRadios"
id="radio_all" value="all_fields" v-model="lcl_search" checked>
<label class="form-check-label" for="radio_all">
Todo
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" v-model="lcl_search" name="optionRadios"
id="radio_desc" value="description">
<label class="form-check-label" for="radio_desc">
Descripción
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" v-model="lcl_search" name="optionRadios"
id="radio_auth" value="creator">
<label class="form-check-label" for="radio_auth">
Autor
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" v-model="lcl_search" name="optionRadios"
id="radio_title" value="title">
<label class="form-check-label" for="radio_title">
Titulo
</label>
</div>
</div>
<router-link to="advanced">Ir a busqueda avanzada</router-link>
</div>
</div>
</div>
</div>
</nav>
</div>
</div>
</template>
<template id="searchview">
<div style="min-height: 80%; background-color: #FFFFFF;">
<div style="width: 100%; border-bottom: 7px solid rgb(91,39,121);">
<div class="container">
<headers :keyword="keyword" :pages="repo.pages" :filter="filter" :search_in="search_in"
is_page="false" :json_data="json_data"></headers>
</div>
</div>
<div class="bg-pages">
<div class="" style="height: 100%;" :class="[isMobile ? '':'container']">
<div class="contained">
<div class="row">
<div class="col-3 col-normal">
<facets :facets="repo.facets" :type="this.type" :val="this.val" :label="this.label"
:params="this.params">
</facets>
</div>
<div class="col-1 col-menu">
<facets :facets="repo.facets" :type="this.type" :val="this.val" :label="this.label"
:params="this.params">
</facets>
</div>
<div class="show-all" :class="[isMobile ? 'col-12':'col-9']">
<!--<search :keyword="keyword" :pages="repo.pages"></search>-->
<helperbar :pages="repo.pages" ref="pagination" :total="repo.total_pages"></helperbar>
<docs :docs="repo.docs"></docs>
<pages :pages="repo.pages" ref="pagination" :total="repo.total_pages"></pages>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<template id="docs">
<div class="docs_view container">
<div class="row" :class="[isMobile ? 'isMobileWith': 'other']" v-for="doc in docs">
<router-link class="mt-5 mb-3"
:to="{path: 'docs', query: {id: doc.id, has_model: doc.has_model, thumbnail: doc.thumbnail_path_ss, related: doc.hasRelatedMediaFragment, keyword: keyword}}">
<h6> <strong>{{ doc.title[0] }}</strong> </h6>
</router-link>
<!--<div class="bd-highlight">-->
<div class="col-md-auto">
<router-link
:to="{path: 'docs', query: {id: doc.id, has_model: doc.has_model, thumbnail: doc.thumbnail_path_ss, related: doc.hasRelatedMediaFragment, keyword: keyword}}">
<img class="img-responsive" :src="get_url() + doc.thumbnail_path_ss ">
</router-link>
</div>
<div class="col-md-auto justify-content-md-center">
<!--<table class="table table-docs">
<tbody>
<tr v-for="(metadata, key, index) in doc" v-if="check_metadata(metadata, key)">
<th class="td-tittle" style="text-align: right;">
{{ $t(key) }}
</th>
<td v-if="isObject(metadata)" style="text-align: left;">
<p v-for="m in metadata">
{{ m }}
</p>
</td>
<td v-else style="text-align: left;">
<p>
{{ metadata }}
</p>
</td>
</tr>
</tbody>
</table>-->
<div class="row" v-for="(metadata, key, index) in doc" v-if="check_metadata(metadata, key)">
<div class="td-tittle col-5" :class="[isMobile ? 'text-left' : 'text-right']">
{{ $t(key) }}
</div>
<div v-if="isObject(metadata)" class="col-7" style="text-align: left;">
<p v-for="m in metadata" class="text-break">
{{ m }}
</p>
</div>
<div v-else style="text-align: left;" class="col-7">
<p class="text-break">
{{ metadata }}
</p>
</div>
</div>
</div>
<!--</div>-->
</div>
</div>
</template>
<template id="pages">
<div id="pages-div" style="overflow-x: auto;">
<nav class="mt-5" aria-label="Paginas disponibles" style="text-align: center;" v-if="pages != undefined">
<ul class="pagination" v-if="pages.total_count != 0">
<li class="page-item" v-if="pages.current_page != 1">
<a class="page-link" @click="next_page(pages.prev_page)" href="#">{{$t('previous')}}</a>
</li>
<li class="page-item disabled" v-if="pages.current_page == 1">
<span class="page-link">{{$t('previous')}}</span>
</li>
<li class="page-item" :class="isCurrent((1))" v-if="pages.current_page > 4"><a class="page-link"
@click="next_page(1)" href="#">1</a></li>
<li class="page-item disabled" v-if="pages.current_page > 4">
<span class="page-link">...</span>
</li>
<li class="page-item" :class="isCurrent((page))" v-for="(page,index) in get_pages">
<a class="page-link" @click="next_page(page)" href="#">{{ page }}</a>
</li>
<li class="page-item disabled" v-if="pages.total_pages - pagesArray[pagesArray.length-1] > 9">
<span class="page-link">...</span>
</li>
<li class="page-item" :class="pages.current_page == pages.total_pages ? 'active' : ''"><a
class="page-link" @click="next_page(pages.total_pages)" href="#">{{pages.total_pages}}</a>
</li>
<li class="page-item" v-if="pages.current_page < pages.total_pages">
<a class="page-link" @click="next_page(pages.next_page)" href="#">{{$t('next')}}</a>
</li>
<li class="page-item disabled" v-if="pages.current_page == pages.total_pages">
<span class="page-link">{{$t('next')}}</span>
</li>
</ul>
</nav>
</div>
</template>
<template id="helperbar">
<div>
<div style="margin-top: 10px;" v-if="filters.length > 0">
<label>{{$t('filters')}}: </label>
<span class="btn-group appliedFilter constraint filter filter-resource_type_sim"
v-for="filter in filters">
<span class="constraint-value btn btn-sm btn-default btn-disabled">
<span class="filterName">{{filter.key}} > </span>
<span class="filterValue" :title="filter.value">{{filter.value}}</span>
<!--<a class="btn btn-default btn-sm remove dropdown-toggle" href="#" @click="delete_query(filter.type, filter.value, filter.key)" :title="$t('remove') + ':' + filter.value"><span class="glyphicon glyphicon-remove"></span><span class="sr-only">Remove </span></a>-->
<i class="fa fa-times-circle fa-lg close" aria-hidden="true"
@click="delete_query(filter.type, filter.value, filter.key)"></i>
<!--<button id="close-filter" type="button" class="close" aria-label="Close"
@click="delete_query(filter.type, filter.value, filter.key)">
<span aria-hidden="true">×</span>
</button>-->
</span>
</span>
<a class="remove-all" href="#" @click="delete_all()">Quitar filtros</a>
</div>
<div v-if="pages != undefined">
<div style="display: contents;" class="row" v-if="pages.total_count != 0">
<div class="paginator-top btn-group bd-highlight" :class="[isMobile ? 'col-6':'col-md-auto']">
<nav aria-label="Paginas disponibles" style="text-align: left; display: inline">
<ul class="pagination">
<li class="page-item" v-if="pages.current_page != 1">
<a class="page-link" @click="next_page(pages.prev_page)" href="#">
<< <span v-if="!isMobile">{{$t('previous')}}</span> </a>
</li>
<li class="page-item disabled" v-if="pages.current_page == 1">
<span class="page-link">
<< <span v-if="!isMobile">{{$t('previous')}}</span> </span>
</li>
<li class="page-item">
<span class="page-link">| {{pages.offset_value + 1}} -
{{(pages.offset_value + paginas) < pages.total_count ? (pages.offset_value +
paginas) : pages.total_count }} <span class="pagination-movil"> de
{{pages.total_count}} </span> | </span>
</li>
<li class="page-item" v-if="pages.current_page < pages.total_pages">
<a class="page-link" @click="next_page(pages.next_page)"
href="#"><span v-if="!isMobile">{{$t('next')}}</span> >></a>
</li>
<li class="page-item disabled" v-if="pages.current_page == pages.total_pages">
<span class="page-link"><span v-if="!isMobile">{{$t('next')}}</span> >></span>
</li>
</ul>
</nav>
</div>
<div class="dropdown order-by bd-highlight" :class="[isMobile ? 'col-3':'col-md-auto']">
<a style="float: right;" class="btn dropdown-toggle btn-per_pagina" href="#" role="button"
data-bs-toggle="dropdown" aria-expanded="false" id="dropdownMenu">
{{paginas}} {{$t('per_page')}}
</a>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu">
<li><a class="dropdown-item" href="#" @click="per_pages(10)">10</a></li>
<li><a class="dropdown-item" href="#" @click="per_pages(20)">20</a></li>
<li><a class="dropdown-item" href="#" @click="per_pages(50)">50</a></li>
<li><a class="dropdown-item" href="#" @click="per_pages(100)">100</a></li>
</ul>
</div>
<div class="dropdown order-by bd-highlight" :class="[isMobile ? 'col-3':'col-md-auto']">
<a style="float: right;" class="btn dropdown-toggle btn-per_pagina" href="#" role="button"
data-bs-toggle="dropdown" aria-expanded="false" id="dropdownMenu">
{{$t('order_by')}} {{ order }}
</a>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu">
<li><a class="dropdown-item" href="#"
@click="order_by('score desc, system_create_dtsi desc', 'Relevancia')">Relevancia</a>
</li>
<li><a class="dropdown-item" href="#"
@click="order_by('date_created_sim desc', 'Año Desc')">Año Desc</a></li>
<li><a class="dropdown-item" href="#"
@click="order_by('date_created_sim asc', 'Año Asc')">Año Asc</a></li>
<li><a class="dropdown-item" href="#"
@click="order_by('title_sim asc', 'Titulo [A-Z]')">Titulo [A-Z]</a></li>
<li><a class="dropdown-item" href="#"
@click="order_by('title_sim desc','Titulo [Z-A]')">Titulo [Z-A]</a></li>
</ul>
</div>
</div>
<div style="height: 78%;" v-else>
<h2>No se encontraron resultados.</h2>
</div>
</div>
</div>
</template>
<template id="search">
<div class="input-group">
<div v-if="search != ''" style="margin-bottom: 20px">La busqueda <strong>"{{search}}"</strong> arrojó
<strong>"{{pages.total_count}}"</strong> resultados
</div>
<form class="search-form">
<input type="text" class="form-control search-input" :placeholder="$t('search_term')" v-model="search"
name="lname" />
<span class="input-group-btn">
<button type="button" class="btn btn-search" @click="search_term">
<span class="glyphicon glyphicon-search"></span> {{$t('go')}}
</button>
</span>
</form>
</div>
</template>
<script type="text/template" id="facetas">
<nav class="navbar navbar-expand-lg navbar-light menu-facetas">
<div class="">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="#navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="navbarNavDropdown">
<ul class="navbar-nav me-auto mb-2 mb-lg-0 bg-facetas">
<li class="nav-item">
<div id="facet-accordion bg-facetas">
<div v-if="facet.items.length > 0" v-for="(facet, index) in facets" class="accordion" id="accordionFacet">
<!--<div class="card-header">-->
<div class="acordion-item ">
<h2 class="acordion-header" :id="'heading' + index">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" :data-bs-target="'#facets-'+index" aria-expanded="true" :aria-controls="'facets-'+index">
{{$t(facet.label.toLowerCase())}}
</button>
<!--<a data-toggle="collapse" :href="'#facets-'+index">
<span class="glyphicon glyphicon-tag"></span>{{$t(facet.label.toLowerCase())}}</a>-->
</h2>
<div :id="'facets-'+index" class="accordion-collapse collapse show" :aria-labelledby="'heading' + index" data-parent="#accordionFacet">
<div class="accordion-body">
<ul class="list-group">
<li v-for="item in facet.items.slice(0, 5)" class="list-group-item bg-facetas">
<span v-if="compare_params(facet.name, item.value)" class="facet-label">
<span class="selected" @click="delete_query(facet.name, item.value, $t(facet.label.toLowerCase()))">
<i class="fa fa-check-square-o fa-lg close" title="Quitar filtro" aria-hidden="true"></i>{{item.label}}</span>
<!--<a class="remove" @click="delete_query(facet.name, item.value, $t(facet.label.toLowerCase()))">
<span class="glyphicon glyphicon-remove"></span>
<span class="sr-only">[remove]</span>
</a>-->
<!--<button type="button" class="close" aria-label="Close" @click="delete_query(facet.name, item.value, $t(facet.label.toLowerCase()))">
<span aria-hidden="true">×</span>
</button>-->
</span>
<span v-else class="facet-label">
<a @click="query(facet.name,item.value, $t(facet.label.toLowerCase()))">
<i class="fa fa-square-o fa-lg close" title="" aria-hidden="true"></i>{{item.label}}</a>
</span>
</li>
<li class="list-group-item facet-label bg-facetas" v-if="facet.items.length > 5 ">
<a href="#" class="more_facets_link" @click="get_data_facet(facet.name)">{{$t('more')}} <span
class="sr-only"></span> »</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</li>
</ul>
<facetModal v-if="showModal" @query="query" :facet_url="facet_url" :facet_data="facet_data"
:facet_label="facet_label"></facetModal>
</div>
</div>
</nav>
</script>
<script type="text/template" id="modal-template">
<transition name="modal">
<div class="modal-mask">
<div class="modal-wrapper">
<div class="modal-container">
<div class="modal-header">
<slot name="header">
{{$t(label_title)}}
</slot>
</div>
<div class="modal-body">
<slot name="body">
<ul class="list-group">
<li v-for="item in data_local" class="list-item-modal">
<a @click="query(item.value, $t(label_title))">
<span class="facet-label">
{{item.value}}
</span>
<span style="float: right;" class="facet-label">
{{item.hits}}
</span>
</a>
</li>
</ul>
</slot>
</div>
<div class="modal-footer">
<slot name="footer">
<nav aria-label="Paginas disponibles" style="text-align: left;">
<ul class="pagination pagination-modal">
<li class="page-item" v-if="isPrev">
<a class="page-link" @click="prev_page()" href="#">{{$t('previous')}}</a>
</li>
<li class="page-item disabled" v-else>
<span class="page-link">{{$t('previous')}}</span>
</li>
<li class="page-item" v-if="isNext">
<a class="page-link" @click="next_page()" href="#">{{$t('next')}}</a>
</li>
<li class="page-item disabled" v-else>
<span class="page-link">{{$t('next')}}</span>
</li>
</ul>
</nav>
<button type="button" class="btn btn-modal" @click="modal_facets_close()"
data-dismiss="modal">{{$t('close')}}</button>
</slot>
</div>
</div>
</div>
</div>
</div>
</transition>
</script>
</body>
<link rel="stylesheet" type="text/css" href="css/style.css">
<!--<link rel="stylesheet" type="text/css" href="/public/js/vue/src/assets/style.css">-->
<script type="text/javascript" src="https://www.w3schools.com/lib/w3data.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue-i18n/8.14.1/vue-i18n.js"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ=="
crossorigin="" />
<link rel="stylesheet" href="./css/Control.FullScreen.css">
<!--<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js"></script>-->
<!-- DEVELOPMENT MODE -->
<!--<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.13/vue.js"></script>-->
<!-- PRODUCTION MODE -->
<!-- Latest compiled and minified CSS -->
<!--<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://unpkg.com/[email protected]/dist/MarkerCluster.Default.css" rel="stylesheet">
<link href="https://unpkg.com/[email protected]/dist/MarkerCluster.css" rel="stylesheet">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<link rel="stylesheet" href="css/style-armados.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.13/vue.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vuex/3.1.1/vuex.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.1.3/vue-router.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js">
</script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-BB3hKbKWOc9Ez/TAwyWxNXeoV9c1v6FIeYiBieIWkpLjauysF18NzgR1MBNBXf8/KABdlkX68nAhlwcDFLGPCQ=="
crossorigin=""></script>
<script src="./js/Control.FullScreen.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/build/pdf.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/web/pdf_viewer.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!--<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj"
crossorigin="anonymous"></script>-->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDPbdLVfBy79lwLRuStHHH9KQsoBvxj5eE" async></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.markercluster-src.js" async></script>
<!--</script>-->
<!--<script type="text/javascript"
src="https://stackpath.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>-->
<!--<script type="text/javascript"
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>-->
<script>
w3IncludeHTML();
</script>
<script type="module" src="functions.js"></script>
<script type="module" src="main.js"></script>
</html>