PageSourceSearch

https://borm.es/scripts/app.js

js borm.es collected 2026-10-02 05:23:51 UTC 26,175 bytes, 760 lines download raw bytes

1'use strict';
2/**
3 * @ngdoc overview
4 * @name BormApp
5 * @description
6 * # BormApp
7 *
8 * Módulo principal del aplicativo
9 */
10angular
11.module('BormApp', ['oc.lazyLoad', 'ui.router', 'ui.bootstrap', 'ngSanitize',
12  'pascalprecht.translate', 'tmh.dynamicLocale', 'angular-loading-bar',
13  'BormApp.BoletinesModule', 'BormApp.SuplementosModule',
14  'BormApp.BuzonSugerenciasModule', 'BormApp.HomeModule',
15  'BormApp.SumarioModule', 'BormApp.AnunciantesModule',
16  'BormApp.AnuncianteModule', 'BormApp.AnunciosModule',
17  'BormApp.CalendarioModule', 'BormApp.SumarioSuplementoModule',
18  'BormApp.AyuntamientosModule', 'BormApp.AyuntamientoModule',
19  'BormApp.NoticiasModule', 'BormApp.MasVisitadoModule',
20  'BormApp.NormativaGeneralModule', 'BormApp.PlantillasEncuestasModule',
21  'BormApp.PreguntasFrecuentesModule', 'BormApp.CalendarioSedeModule',
22  'BormApp.DirectorioModule', 'BormApp.DatosAbiertosModule',
23  'BormApp.NormativaModule', 'BormApp.EnlacesModule', 'BormApp.LoginModule',
24  'BormApp.SuscripcionModule', 'BormApp.BuscadorModule', 'BormApp.RssModule',
25  'BormApp.BuzonInformanteModule']).constant("Constantes", {
26  "PAGE_SIZE": 7, "FORMAT_DATE": "dd/MM/yyyy", "TIMEOUT_ALERTS": 20000,
27}).config(['$stateProvider', '$urlRouterProvider', '$ocLazyLoadProvider',
28  '$httpProvider', '$translateProvider', 'tmhDynamicLocaleProvider',
29  function ($stateProvider, $urlRouterProvider, $ocLazyLoadProvider,
30      $httpProvider, $translateProvider, tmhDynamicLocaleProvider) {
31
32    // Todas las peticiones y respuestas se tratan a través de un objeto XMLHttpRequest,
33    // en JavaScript, sin que intervenga el navegador
34    $httpProvider.defaults.headers.common["X-Requested-With"] = 'XMLHttpRequest';
35
36    // Se añade un interceptor para controlar las respuestas HTTP erróneas
37    // Configuración necesaria para controlar cuando nos devuelven un recurso en 401
38    $httpProvider.interceptors.push('HttpResponseErrorHandler');
39
40    $ocLazyLoadProvider.config({
41      debug: false, events: true,
42    });
43
44    // Configuracion para i18n
45    $translateProvider.preferredLanguage('es');
46
47    // IMPORTANTE: Evita vulnerabilidad XSS en el aplicativo
48    $translateProvider.useSanitizeValueStrategy('sanitizeParameters');
49    translateBundle_es.messages_translate_es($translateProvider); //Bundle para Castellano
50    translateBundle_en.messages_translate_en($translateProvider); //Bundle para Ingles
51    tmhDynamicLocaleProvider.localeLocationPattern(
52        'bower_components/angular-i18n/angular-locale_{{ locale }}.js');
53
54    //Mapa de navegación del aplicativo
55    $stateProvider
56    .state('home', {
57      templateUrl: 'views/home.html',
58      url: '/home',
59      controller: 'homeController',
60      resolve: {
61        loadMyFiles: function ($ocLazyLoad) {
62          return $ocLazyLoad.load({
63            name: 'BormApp.HomeModule',
64            files: ['scripts/homeBorm/controllers/homeController.js',
65              'scripts/boletines/factories/boletinFactory.js',
66              'scripts/noticias/factories/noticiasFactory.js']
67          })
68        }
69      }
70    })
71    .state('home.boletines', {
72      url: '/boletines', views: {
73        "content": {
74          templateUrl: 'views/boletines/boletines.html',
75          controller: 'boletinController',
76          resolve: {
77            loadMyFiles: function ($ocLazyLoad) {
78              return $ocLazyLoad.load({
79                name: 'BormApp.BoletinesModule',
80                files: ['scripts/boletines/controllers/boletinController.js',
81                  'scripts/boletines/factories/boletinFactory.js']
82              })
83            }
84          }
85        }, "footer": {
86          templateUrl: 'views/footerInterior.html'
87        }
88      }
89    })
90    .state('home.suplementos', {
91      url: '/suplementos', views: {
92        "content": {
93          templateUrl: 'views/suplementos/suplementos.html',
94          controller: 'suplementoController',
95          resolve: {
96            loadMyFiles: function ($ocLazyLoad) {
97              return $ocLazyLoad.load({
98                name: 'BormApp.SuplementosModule',
99                files: ['scripts/suplementos/controllers/suplementoController.js',
100                  'scripts/suplementos/factories/suplementoFactory.js']
101              })
102            }
103          }
104        }, "footer": {
105          templateUrl: 'views/footerInterior.html'
106        }
107      }
108    })
109    .state('home.buzonSugerencias', {
110
111      url: '/buzonSugerencias', views: {
112        "content": {
113          templateUrl: 'views/buzonSugerencias/buzonSugerencias.html',
114          controller: 'sugerenciaController',
115          resolve: {
116            loadMyFiles: function ($ocLazyLoad) {
117              return $ocLazyLoad.load({
118                name: 'BormApp.BuzonSugerenciasModule',
119                files: ['scripts/buzonSugerencias/controllers/sugerenciaController.js',
120                  'scripts/buzonSugerencias/services/sugerenciaService.js',
121                  'scripts/buzonSugerencias/factories/sugerenciaFactory.js']
122              })
123            }
124          }
125        }, "footer": {
126          templateUrl: 'views/footerInterior.html'
127        }
128      }
129    })
130    .state('home.sumario', {
131      url: '/sumario/:fechaPublicacion', views: {
132        "content": {
133          templateUrl: 'views/sumario/sumario.html',
134          controller: 'sumarioController',
135          resolve: {
136            loadMyFiles: function ($ocLazyLoad) {
137              return $ocLazyLoad.load({
138                name: 'BormApp.SumarioModule',
139                files: ['scripts/sumario/controllers/sumarioController.js',
140                  'scripts/boletines/factories/boletinFactory.js',
141                  'scripts/sumario/factories/sumarioFactory.js',
142                  'scripts/anuncio/factories/anuncioFactory.js']
143              })
144            }
145          }
146        }, "footer": {
147          templateUrl: 'views/footerInterior.html'
148        }
149      }
150    })
151    .state('home.anunciantes', {
152      url: '/sumario/:fechaPublicacion/anunciantes', views: {
153        "content": {
154          templateUrl: 'views/anunciantes/anunciantes.html',
155          controller: 'anunciantesController',
156          resolve: {
157            loadMyFiles: function ($ocLazyLoad) {
158              return $ocLazyLoad.load({
159                name: 'BormApp.AnunciantesModule',
160                files: ['scripts/anunciantes/controllers/anunciantesController.js',
161                  'scripts/boletines/factories/boletinFactory.js']
162              })
163            }
164          }
165        }, "footer": {
166          templateUrl: 'views/footerInterior.html'
167        }
168      }
169    })
170    .state('home.anunciante', {
171      url: '/anuncios/:anunciante', views: {
172        "content": {
173          templateUrl: 'views/anunciante/anunciante.html',
174          controller: 'anuncianteController',
175          resolve: {
176            loadMyFiles: function ($ocLazyLoad) {
177              return $ocLazyLoad.load({
178                name: 'BormApp.AnuncianteModule',
179                files: ['scripts/anunciante/controllers/anuncianteController.js',
180                  'scripts/anuncio/factories/anuncioFactory.js']
181              })
182            }
183          }
184        }, "footer": {
185          templateUrl: 'views/footerInterior.html'
186        }
187      }
188    })
189    .state('home.anuncio', {
190      url: '/anuncio/:fecha/:numero', views: {
191        "content": {
192          templateUrl: 'views/anuncio/anuncio.html',
193          controller: 'anuncioController',
194          resolve: {
195            loadMyFiles: function ($ocLazyLoad) {
196              return $ocLazyLoad.load({
197                name: 'BormApp.AnunciosModule',
198                files: ['scripts/anuncio/controllers/anuncioController.js',
199                  'scripts/anuncio/factories/anuncioFactory.js']
200              })
201            }
202          }
203        }, "footer": {
204          templateUrl: 'views/footerInterior.html'
205        }
206      }
207    })
208    .state('home.calendario', {
209      url: '/boletines/calendario', views: {
210        "content": {
211          templateUrl: 'views/calendario/calendario.html',
212          controller: 'calendarioController',
213          resolve: {
214            loadMyFiles: function ($ocLazyLoad) {
215              return $ocLazyLoad.load({
216                name: 'BormApp.CalendarioModule',
217                files: ['scripts/calendario/controllers/calendarioController.js',
218                  'scripts/calendario/factories/calendarioFactory.js']
219              })
220            }
221          }
222        }, "footer": {
223          templateUrl: 'views/footerInterior.html'
224        }
225      }
226    })
227    .state('home.sumarioSuplementos', {
228      url: '/sumarioSuplemento/:fechaPublicacion/:numeroSuplemento', views: {
229        "content": {
230          templateUrl: 'views/sumarioSuplementos/sumarioSuplementos.html',
231          controller: 'sumarioSuplementoController',
232          resolve: {
233            loadMyFiles: function ($ocLazyLoad) {
234              return $ocLazyLoad.load({
235                name: 'BormApp.SumarioSuplementoModule',
236                files: ['scripts/sumarioSuplementos/controllers/sumarioSuplementoController.js',
237                  'scripts/suplementos/factories/suplementoFactory.js',
238                  'scripts/sumarioSuplementos/factories/sumarioSuplementoFactory.js',
239                  'scripts/anuncio/factories/anuncioFactory.js']
240              })
241            }
242          }
243        }, "footer": {
244          templateUrl: 'views/footerInterior.html'
245        }
246      }
247    })
248    .state('home.ayuntamientos', {
249      url: '/ayuntamientos', views: {
250        "content": {
251          templateUrl: 'views/ayuntamientos/ayuntamientos.html',
252          controller: 'ayuntamientosController',
253          resolve: {
254            loadMyFiles: function ($ocLazyLoad) {
255              return $ocLazyLoad.load({
256                name: 'BormApp.AyuntamientosModule',
257                files: ['scripts/ayuntamientos/controllers/ayuntamientosController.js',
258                  'scripts/ayuntamientos/factories/ayuntamientosFactory.js']
259              })
260            }
261          }
262        }, "footer": {
263          templateUrl: 'views/footerInterior.html'
264        }
265      }
266    })
267    .state('home.ayuntamiento', {
268      url: '/ayuntamientos/:ayuntamiento', views: {
269        "content": {
270          templateUrl: 'views/ayuntamiento/ayuntamiento.html',
271          controller: 'ayuntamientoController',
272          resolve: {
273            loadMyFiles: function ($ocLazyLoad) {
274              return $ocLazyLoad.load({
275                name: 'BormApp.AyuntamientoModule',
276                files: ['scripts/ayuntamiento/controllers/ayuntamientoController.js',
277                  'scripts/ayuntamientos/factories/ayuntamientosFactory.js',
278                  'scripts/anuncio/factories/anuncioFactory.js']
279              })
280            }
281          }
282        }, "footer": {
283          templateUrl: 'views/footerInterior.html'
284        }
285      }
286    })
287    .state('home.noticias', {
288      url: '/noticias', views: {
289        "content": {
290          templateUrl: 'views/noticias/noticias.html',
291          controller: 'noticiasController',
292          resolve: {
293            loadMyFiles: function ($ocLazyLoad) {
294              return $ocLazyLoad.load({
295                name: 'BormApp.NoticiasModule',
296                files: ['scripts/noticias/controllers/noticiasController.js',
297                  'scripts/noticias/factories/noticiasFactory.js']
298              })
299            }
300          }
301        }, "footer": {
302          templateUrl: 'views/footerInterior.html'
303        }
304      }
305    })
306    .state('home.masVisitado', {
307      url: '/masVisitado', views: {
308        "content": {
309          templateUrl: 'views/masVisitado/masVisitado.html',
310          controller: 'masVisitadoController',
311          resolve: {
312            loadMyFiles: function ($ocLazyLoad) {
313              return $ocLazyLoad.load({
314                name: 'BormApp.MasVisitadoModule',
315                files: ['scripts/masVisitado/controllers/masVisitadoController.js',
316                  'scripts/anuncio/factories/anuncioFactory.js']
317              })
318            }
319          }
320        }, "footer": {
321          templateUrl: 'views/footerInterior.html'
322        }
323      }
324    })
325    .state('home.normativaGeneral', {
326      url: '/normativaGeneral', views: {
327        "content": {
328          templateUrl: 'views/normativaGeneral/normativaGeneral.html',
329          controller: 'normativaGeneralController',
330          resolve: {
331            loadMyFiles: function ($ocLazyLoad) {
332              return $ocLazyLoad.load({
333                name: 'BormApp.NormativaGeneralModule',
334                files: ['scripts/normativaGeneral/controllers/normativaGeneralController.js',
335                  'scripts/normativaGeneral/factories/normativaGeneralFactory.js',
336                  'scripts/anuncio/factories/anuncioFactory.js']
337              })
338            }
339          }
340        }, "footer": {
341          templateUrl: 'views/footerInterior.html'
342        }
343      }
344    })
345    .state('home.plantillasEncuestas', {
346      url: '/plantillasEncuestas', views: {
347        "content": {
348          templateUrl: 'views/plantillasEncuestas/plantillasEncuestas.html',
349          controller: 'plantillasEncuestasController',
350          resolve: {
351            loadMyFiles: function ($ocLazyLoad) {
352              return $ocLazyLoad.load({
353                name: 'BormApp.PlantillasEncuestasModule',
354                files: ['scripts/plantillasEncuestas/controllers/plantillasEncuestasController.js',
355                  'scripts/plantillasEncuestas/factories/plantillasEncuestasFactory.js']
356              })
357            }
358          }
359        }, "footer": {
360          templateUrl: 'views/footerInterior.html'
361        }
362      }
363    })
364    .state('home.dondeEstamos', {
365      url: '/dondeEstamos', views: {
366        "content": {
367          templateUrl: 'views/informacionWeb/dondeEstamos.html',
368        }, "footer": {
369          templateUrl: 'views/footerInterior.html'
370        }
371      }
372    })
373    .state('home.mapaWeb', {
374      url: '/mapaWeb', views: {
375        "content": {
376          templateUrl: 'views/informacionWeb/mapaWeb.html',
377        }, "footer": {
378          templateUrl: 'views/footerInterior.html'
379        }
380      }
381    })
382    .state('home.terminosUso', {
383      url: '/terminosUso', views: {
384        "content": {
385          templateUrl: 'views/informacionWeb/terminosUso.html',
386        }, "footer": {
387          templateUrl: 'views/footerInterior.html'
388        }
389      }
390    })
391    .state('home.politicaCookies', {
392      url: '/politicaCookies', views: {
393        "content": {
394          templateUrl: 'views/informacionWeb/politicaCookies.html',
395        }, "footer": {
396          templateUrl: 'views/footerInterior.html'
397        }
398      }
399    })
400    .state('home.accesibilidad', {
401      url: '/accesibilidad', views: {
402        "content": {
403          templateUrl: 'views/informacionWeb/accesibilidad.html',
404        }, "footer": {
405          templateUrl: 'views/footerInterior.html'
406        }
407      }
408    })
409    .state('home.preguntasFrecuentes', {
410      url: '/faq', views: {
411        "content": {
412          templateUrl: 'views/preguntasFrecuentes/preguntasFrecuentes.html',
413          controller: 'preguntasFrecuentesController',
414          resolve: {
415            loadMyFiles: function ($ocLazyLoad) {
416              return $ocLazyLoad.load({
417                name: 'BormApp.PreguntasFrecuentesModule',
418                files: ['scripts/preguntasFrecuentes/controllers/preguntasFrecuentesController.js',
419                  'scripts/preguntasFrecuentes/factories/preguntasFrecuentesFactory.js']
420              })
421            }
422          }
423        }, "footer": {
424          templateUrl: 'views/footerInterior.html'
425        }
426      }
427    })
428    .state('home.identificacion', {
429      url: '/identificacion', views: {
430        "content": {
431          templateUrl: 'views/sedeElectronica/identificacion.html',
432        }, "footer": {
433          templateUrl: 'views/footerInterior.html'
434        }
435      }
436    })
437    .state('home.sello', {
438      url: '/sello', views: {
439        "content": {
440          templateUrl: 'views/sedeElectronica/sello.html',
441        }, "footer": {
442          templateUrl: 'views/footerInterior.html'
443        }
444      }
445    })
446    .state('home.validacionDocumentos', {
447      url: '/validacionDocumentos', views: {
448        "content": {
449          templateUrl: 'views/sedeElectronica/validacionDocumentos.html',
450        }, "footer": {
451          templateUrl: 'views/footerInterior.html'
452        }
453      }
454    })
455    .state('home.calendarioSede', {
456      url: '/calendarioSede', views: {
457        "content": {
458          templateUrl: 'views/sedeElectronica/calendarioSede.html',
459          controller: 'calendarioSedeController',
460          resolve: {
461            loadMyFiles: function ($ocLazyLoad) {
462              return $ocLazyLoad.load({
463                name: 'BormApp.CalendarioSedeModule',
464                files: ['scripts/calendarioSede/controllers/calendarioSedeController.js',
465                  'scripts/calendarioSede/factories/calendarioSedeFactory.js']
466              })
467            }
468          }
469        }, "footer": {
470          templateUrl: 'views/footerInterior.html'
471        }
472      }
473    })
474    .state('home.sistemasAdmitidos', {
475      url: '/sistemasAdmitidos', views: {
476        "content": {
477          templateUrl: 'views/sedeElectronica/sistemasAdmitidos.html',
478        }, "footer": {
479          templateUrl: 'views/footerInterior.html'
480        }
481      }
482    })
483    .state('home.directorio', {
484      url: '/directorio', views: {
485        "content": {
486          templateUrl: 'views/institucional/directorio.html',
487          controller: 'directorioController',
488          resolve: {
489            loadMyFiles: function ($ocLazyLoad) {
490              return $ocLazyLoad.load({
491                name: 'BormApp.DirectorioModule',
492                files: ['scripts/directorio/controllers/directorioController.js']
493              })
494            }
495          }
496        }, "footer": {
497          templateUrl: 'views/footerInterior.html'
498        }
499      }
500    })
501    .state('home.datosAbiertos', {
502      url: '/datosAbiertos', views: {
503        "content": {
504          templateUrl: 'views/datosAbiertos/datosAbiertos.html',
505          controller: 'datosAbiertosController',
506          resolve: {
507            loadMyFiles: function ($ocLazyLoad) {
508              return $ocLazyLoad.load({
509                name: 'BormApp.DatosAbiertosModule',
510                files: ['scripts/datosAbiertos/controllers/datosAbiertosController.js']
511              })
512            }
513          }
514        }, "footer": {
515          templateUrl: 'views/footerInterior.html'
516        }
517      }
518    })
519    .state('home.suscripcion', {
520      url: '/suscripcion?estado', views: {
521        "content": {
522          templateUrl: 'views/suscripcion/suscripcion.html',
523          controller: 'loginController',
524          resolve: {
525            loadMyFiles: function ($ocLazyLoad) {
526              return $ocLazyLoad.load({
527                name: 'BormApp.LoginModule',
528                files: ['scripts/suscripcion/controllers/loginController.js',
529                  'scripts/suscripcion/services/suscripcionService.js']
530              })
531            }
532          }
533        }, "footer": {
534          templateUrl: 'views/footerInterior.html'
535        }
536      }
537    })
538    .state('home.suscripcion.alta', {
539      templateUrl: 'views/suscripcion/alta/alta.html',
540      url: '/alta',
541      controller: 'loginController',
542      resolve: {
543        loadMyFiles: function ($ocLazyLoad) {
544          return $ocLazyLoad.load({
545            name: 'BormApp.LoginModule',
546            files: ['scripts/suscripcion/controllers/loginController.js',
547              'scripts/suscripcion/factories/suscripcionFactory.js']
548          })
549        }
550      }
551    })
552    .state('home.suscripcion.menu', {
553      templateUrl: 'views/suscripcion/menu/menu.html',
554      url: '/menu',
555      controller: 'suscripcionController',
556      resolve: {
557        loadMyFiles: function ($ocLazyLoad) {
558          return $ocLazyLoad.load({
559            name: 'BormApp.SuscripcionModule',
560            files: ['scripts/suscripcion/controllers/suscripcionController.js',
561              'scripts/suscripcion/services/suscripcionService.js',
562              'scripts/suscripcion/factories/suscripcionFactory.js']
563          })
564        }
565      }
566    })
567    .state('home.normativa', {
568      url: '/normativa', views: {
569        "content": {
570          templateUrl: 'views/institucional/normativa.html',
571          controller: 'normativaController',
572          resolve: {
573            loadMyFiles: function ($ocLazyLoad) {
574              return $ocLazyLoad.load({
575                name: 'BormApp.NormativaModule',
576                files: ['scripts/normativa/controllers/normativaController.js',
577                  'scripts/normativa/factories/normativaFactory.js']
578              })
579            }
580          }
581        }, "footer": {
582          templateUrl: 'views/footerInterior.html'
583        }
584      }
585    })
586    .state('home.certificaciones', {
587      url: '/certificaciones', views: {
588        "content": {
589          templateUrl: 'views/institucional/certificaciones.html',
590        }, "footer": {
591          templateUrl: 'views/footerInterior.html'
592        }
593      }
594    })
595    .state('home.quienesSomos', {
596      url: '/quienesSomos', views: {
597        "content": {
598          templateUrl: 'views/institucional/quienesSomos.html',
599        }, "footer": {
600          templateUrl: 'views/footerInterior.html'
601        }
602      }
603    })
604    .state('home.queEsBORM', {
605      url: '/queEsBORM', views: {
606        "content": {
607          templateUrl: 'views/institucional/queEsBORM.html',
608        }, "footer": {
609          templateUrl: 'views/footerInterior.html'
610        }
611      }
612    })
613    .state('home.queEsNPE', {
614      url: '/queEsNPE', views: {
615        "content": {
616          templateUrl: 'views/institucional/queEsNPE.html',
617        }, "footer": {
618          templateUrl: 'views/footerInterior.html'
619        }
620      }
621    })
622    .state('home.cartaServicios', {
623      url: '/cartaServicios', views: {
624        "content": {
625          templateUrl: 'views/institucional/cartaServicios.html',
626        }, "footer": {
627          templateUrl: 'views/footerInterior.html'
628        }
629      }
630    })
631    .state('home.calidadYMedioAmbiente', {
632      url: '/calidadYMedioAmbiente', views: {
633        "content": {
634          templateUrl: 'views/institucional/calidadYMedioAmbiente.html',
635        }, "footer": {
636          templateUrl: 'views/footerInterior.html'
637        }
638      }
639    })
640    .state('home.contacto', {
641      url: '/contacto', views: {
642        "content": {
643          templateUrl: 'views/contacto/contacto.html',
644        }, "footer": {
645          templateUrl: 'views/footerInterior.html'
646        }
647      }
648    })
649    .state('home.enlaces', {
650      url: '/enlaces', views: {
651        "content": {
652          templateUrl: 'views/enlaces/enlaces.html',
653          controller: 'enlacesController',
654          resolve: {
655            loadMyFiles: function ($ocLazyLoad) {
656              return $ocLazyLoad.load({
657                name: 'BormApp.EnlacesModule',
658                files: ['scripts/enlaces/controllers/enlacesController.js',
659                  'scripts/enlaces/factories/enlacesFactory.js']
660              })
661            }
662          }
663        }, "footer": {
664          templateUrl: 'views/footerInterior.html'
665        }
666      }
667    })
668    .state('home.buscador', {
669      url: '/buscador', views: {
670        "content": {
671          templateUrl: 'views/buscador/buscador.html',
672          controller: 'buscadorController',
673          resolve: {
674            loadMyFiles: function ($ocLazyLoad) {
675              return $ocLazyLoad.load({
676                name: 'BormApp.BuscadorModule',
677                files: ['scripts/buscador/controllers/buscadorController.js',
678                  'scripts/buscador/factories/buscadorFactory.js',
679                  'scripts/anuncio/factories/anuncioFactory.js']
680              })
681            }
682          }
683        }, "footer": {
684          templateUrl: 'views/footerInterior.html'
685        }
686      }
687    })
688    .state('home.rss', {
689      url: '/rss', views: {
690        "content": {
691          templateUrl: 'views/rss/rss.html',
692          controller: 'rssController',
693          resolve: {
694            loadMyFiles: function ($ocLazyLoad) {
695              return $ocLazyLoad.load({
696                name: 'BormApp.RssModule',
697                files: ['scripts/rss/controllers/rssController.js',
698                  'scripts/rss/factories/rssFactory.js']
699              })
700            }
701          }
702        }, "footer": {
703          templateUrl: 'views/footerInterior.html'
704        }
705      }
706    })
707    .state('home.buzonInformante', {
708      url: '/buzonInformante', views: {
709        "content": {
710          templateUrl: 'views/buzonInformante/buzonInformante.html',
711          controller: 'buzonInformanteController',
712          resolve: {
713            loadMyFiles: function ($ocLazyLoad) {
714              return $ocLazyLoad.load({
715                name: 'BormApp.BuzonInformanteModule',
716                files: ['scripts/buzonInformante/controllers/buzonInformanteController.js']
717              })
718            }
719          }
720        }, "footer": {
721          templateUrl: 'views/footerInterior.html'
722        }
723      }
724    })
725    .state('home.transparencia', {
726      url: '/transparencia', views: {
727        "content": {
728          templateUrl: 'views/transparencia/transparencia.html',
729        }, "footer": {
730          templateUrl: 'views/footerInterior.html'
731        }
732      }
733    });
734
735    $urlRouterProvider
736    .otherwise('/home');
737
738  }]).run(function ($rootScope) {
739
740  $rootScope.$on('$stateChangeSuccess', function () {
741    document.body.scrollTop = document.documentElement.scrollTop = 0;
742  });
743
744  $rootScope.$on('$stateChangeStart', function () {
745    $rootScope.metaEli = false;
746    $rootScope.metaCorrigendumEli = false;
747  });
748
749}).filter('filterEncodeURI', function () {
750  return function (x) {
751    console.log(encodeURIComponent(x));
752    return encodeURIComponent(x);
753  };
754}).filter('monthValue', function () {
755  var month = ["", "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio",
756    "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
757  return function (x) {
758    return month[x];
759  };
760});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.