{"version":3,"sources":["webpack:///$_lazy_route_resource lazy namespace object","webpack:///src/app/app.component.ts","webpack:///src/app/app.component.html","webpack:///src/app/app.module.ts","webpack:///src/app/components/balloons/balloons.component.ts","webpack:///src/app/components/balloons/balloons.component.html","webpack:///src/app/components/banner-searches/banner-searches.component.ts","webpack:///src/app/components/banner-searches/banner-searches.component.html","webpack:///src/app/components/filters/filters.component.ts","webpack:///src/app/components/filters/filters.component.html","webpack:///src/app/components/footer/footer.component.ts","webpack:///src/app/components/footer/footer.component.html","webpack:///src/app/components/header/header.component.ts","webpack:///src/app/components/header/header.component.html","webpack:///src/app/components/last-articles/last-articles.component.ts","webpack:///src/app/components/last-articles/last-articles.component.html","webpack:///src/app/components/map/map.component.ts","webpack:///src/app/components/map/map.component.html","webpack:///src/app/components/network/network.component.ts","webpack:///src/app/components/network/network.component.html","webpack:///src/app/components/pagination/pagination.component.ts","webpack:///src/app/components/pagination/pagination.component.html","webpack:///src/app/components/table/table.component.ts","webpack:///src/app/components/table/table.component.html","webpack:///src/app/components/target/target.component.ts","webpack:///src/app/components/target/target.component.html","webpack:///src/app/components/word-cloud/word-cloud.component.ts","webpack:///src/app/components/word-cloud/word-cloud.component.html","webpack:///src/app/constants/numerary.ts","webpack:///src/app/interceptors/httpError.interceptor.ts","webpack:///src/app/interceptors/spinner.interceptor.ts","webpack:///src/app/models/FilterChain.model.ts","webpack:///src/app/pages/acerca-de/acerca-de.component.ts","webpack:///src/app/pages/acerca-de/acerca-de.component.html","webpack:///src/app/pages/busqueda-general/busqueda-general.component.ts","webpack:///src/app/pages/busqueda-general/busqueda-general.component.html","webpack:///src/app/pages/busqueda-pais/busqueda-pais.component.ts","webpack:///src/app/pages/busqueda-pais/busqueda-pais.component.html","webpack:///src/app/pages/busqueda-palabras-clave/busqueda-palabras-clave.component.ts","webpack:///src/app/pages/busqueda-palabras-clave/busqueda-palabras-clave.component.html","webpack:///src/app/pages/home/home.component.ts","webpack:///src/app/pages/home/home.component.html","webpack:///src/app/pipes/authors.pipe.ts","webpack:///src/app/pipes/title-article.pipe.ts","webpack:///src/app/routes/app.routes.ts","webpack:///src/app/services/article.service.ts","webpack:///src/app/services/error.service.ts","webpack:///src/app/services/filter.service.ts","webpack:///src/app/services/pagination.service.ts","webpack:///src/app/services/spinner.service.ts","webpack:///src/app/services/translation.service.ts","webpack:///src/environments/environment.ts","webpack:///src/main.ts"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","module","exports","id","AppComponent","translateService","title","setAppLanguage","addLangs","localStorage","getItem","setDefaultLang","use","setItem","selector","templateUrl","styleUrls","HttpLoaderFactory","http","AppModule","provide","useClass","multi","forRoot","loader","useFactory","deps","useHash","declarations","imports","providers","bootstrap","BalloonsComponent","filterService","balloonFilters","Array","console","log","filtersSelected$","subscribe","filtersSelected","changeStatefiltersSelected","unsubscribe","ballon","findFilterActive","nombre","clave","BannerSearchesComponent","FiltersComponent","filters","filtersSubscription$","filters$","applyFilters","filter","showElements","element","activate","activateFilters","filterElement","filterName","addFilter","show","showButton","FooterComponent","currentYear","Date","getFullYear","HeaderComponent","translationService","router","menuOpen","isHidden","isShow","menuItems","text","items","url","document","getElementById","scrollIntoView","behavior","selection","navigate","lang","changeLanguage","scrollTop","window","pageYOffset","documentElement","body","scrollPosition","scrollY","triggerPoint","openNav","LastArticlesComponent","articleService","articles","getLastArticles","resultados","dataArticle","data","split","MapComponent","articlesService","urlProject","getCountries","countrys","chart","geodata","projection","Miller","maxZoomLevel","seriesContainer","draggable","resizable","polygonSeries","series","push","exclude","useGeodata","polygonTemplate","mapPolygons","template","polygon","fillOpacity","fill","imageSeries","dataFields","value","imageTemplate","mapImages","propertyFields","latitude","longitude","nonScaling","tooltip","label","interactionsEnabled","keepTargetHover","circle","createChild","tooltipText","urlTarget","dataSource","parser","heatRules","dispose","NetworkComponent","textContent","PaginationComponent","paginationService","actualPage","initialPageSubscription$","initialPosition$","initialPage","finalPageSubscription$","finalPosition$","finalPage","changePosition","page","TableComponent","TargetComponent","WordCloudComponent","zone","runOutsideAngular","chart2","fontFamily","randomness","rotationThreshold","word","target","labels","property","min","max","dataField","subtitle2","titles","create","title2","fontSize","fontWeight","numArticles","numJournals","numCountries","Numeraries","HttpErrorInterceptor","errorService","next","handle","pipe","error","errorMessage","ErrorEvent","message","status","showError","providedIn","SpinnerInterceptor","spinnerService","showSpinner","hideSpinner","FilterChain","AcercaDeComponent","BusquedaGeneralComponent","routeService","subscriptionArray","filtersChain","yearChain","disciplineChain","countryChain","languageChain","fontChain","positionPage","view","results","imgTable","imgList","search","snapshot","paramMap","get","finalPositionSubscription$","finalPosition","finalPositionPage","positionSubscription$","position$","position","getArticles","changeFinalPosition","totalResultados","searchSubscription$","search$","searchCopy","articlesExists","length","totalResults","changeFilters","filtros","changeInitialPosition","showErrorSearchs","filtersChainSubscription$","filtersChain$","searchArticles","cleanFiltersSelected","forEach","subscription","changeSearch","state","scroll","top","left","changeView","goUp","BusquedaPaisComponent","listCountries","countryId","getArticlesByCountry","countryIdCopy","country","nombrePais","countryError","searchArticlesByCountry","countries","countrySelected","find","name","BusquedaPalabrasClaveComponent","key","getArticlesByKey","keyCopy","searchArticlesByKey","geyArticlesByKey","HomeComponent","route","numArticulos","numRevistas","numPaises","section","params","toNetwork","posicion","scrollLeft","getElementsByClassName","$event","offset","css","sectionOffsets","section1","section2","section3","section4","section5","section6","offsetTop","offsetBottom","outerHeight","parseInt","replace","toSearcher","toCould","toMap","toSparql","toAbout","toScrollTop","searchText","toRecent","leftScroll","rightScroll","AuthorsPipe","authors","authorsFormat","i","TitleArticlePipe","titleArticle","titulo","ROUTES","path","component","pathMatch","redirectTo","ArticleService","_search$","baseUrl","normalize","from","to","mapping","j","charAt","str","ret","c","hasOwnProperty","join","firstLetter","lastLetter","wordWithQuote","addQuotes","articlesLength","ErrorService","fire","FilterService","_filters$","_filtersChain$","_filtersSelected$","buildChain","filterSelected","filtro","Object","defineProperty","writable","deleteFilterActive","findFilterSelected","index","getIndexFilterSelected","splice","elementos","findIndex","filterIndexSelected","PaginationService","_position$","_initialPosition$","_finalPosition$","totalPages","typeSearch","Number","isInteger","Math","floor","SpinnerService","hide","TranslationService","translate","emit","environment","production","bootstrapModule","err"],"mappings":";;;;;;;;;;;;;;;;;AAAA,aAASA,wBAAT,CAAkCC,GAAlC,EAAuC;AACtC;AACA;AACA,aAAOC,OAAO,CAACC,OAAR,GAAkBC,IAAlB,CAAuB,YAAW;AACxC,YAAIC,CAAC,GAAG,IAAIC,KAAJ,CAAU,yBAAyBL,GAAzB,GAA+B,GAAzC,CAAR;AACAI,SAAC,CAACE,IAAF,GAAS,kBAAT;AACA,cAAMF,CAAN;AACA,OAJM,CAAP;AAKA;;AACDL,4BAAwB,CAACQ,IAAzB,GAAgC,YAAW;AAAE,aAAO,EAAP;AAAY,KAAzD;;AACAR,4BAAwB,CAACG,OAAzB,GAAmCH,wBAAnC;AACAS,UAAM,CAACC,OAAP,GAAiBV,wBAAjB;AACAA,4BAAwB,CAACW,EAAzB,GAA8B,yCAA9B;;;;;;;;;;;;;;;;ACZA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;;QAQaC,Y;AAEX,4BACUC,gBADV,EAC4C;AAAA;;AAAlC,aAAAA,gBAAA,GAAAA,gBAAA;AAFV,aAAAC,KAAA,GAAQ,OAAR;AAIE,aAAKC,cAAL;AACD;;;;eAED,0BAAc;AACZ,eAAKF,gBAAL,CAAsBG,QAAtB,CAA+B,CAAC,IAAD,EAAO,IAAP,CAA/B;;AAEA,cAAIC,YAAY,CAACC,OAAb,CAAqB,UAArB,CAAJ,EAAqC;AACnC,iBAAKL,gBAAL,CAAsBM,cAAtB,CAAqCF,YAAY,CAACC,OAAb,CAAqB,UAArB,CAArC;AACA,iBAAKL,gBAAL,CAAsBO,GAAtB,CAA0BH,YAAY,CAACC,OAAb,CAAqB,UAArB,CAA1B;AACD,WAHD,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AMkL,WAAW,GAAG;AACzBC,gBAAU,EAAE,IADa;AAEzBrD,aAAO,EAAE,sDAFgB;AAGzB;AACA3N,gBAAU,EAAE;AAJa,KAApB;;;;;;;;;;;;;;;;ACAP;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;;AAMA,QAAI,sEAAYgR,UAAhB,EAA4B;AAC1B;AACD;;AAED,gFAAyBC,eAAzB,CAAyC,yDAAzC,WACS,UAAAC,GAAG;AAAA,aAAItV,OAAO,CAAC2J,KAAR,CAAc2L,GAAd,CAAJ;AAAA,KADZ","file":"main-es5.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = \"./$$_lazy_route_resource lazy recursive\";","import { Component } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.css']\r\n})\r\nexport class AppComponent {\r\n title = 'peace';\r\n constructor(\r\n private translateService: TranslateService\r\n ){\r\n this.setAppLanguage();\r\n }\r\n\r\n setAppLanguage(): void {\r\n this.translateService.addLangs(['es', 'en']);\r\n\r\n if (localStorage.getItem('language')){\r\n this.translateService.setDefaultLang(localStorage.getItem('language'));\r\n this.translateService.use(localStorage.getItem('language'));\r\n } else {\r\n this.translateService.setDefaultLang('es');\r\n this.translateService.use('es');\r\n localStorage.setItem('language', 'es');\r\n }\r\n }\r\n}\r\n","","import { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { HttpClientModule, HTTP_INTERCEPTORS, HttpClient } from '@angular/common/http';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\n\r\n// Translation\r\nimport { TranslateLoader, TranslateModule } from '@ngx-translate/core';\r\nimport { TranslateHttpLoader } from '@ngx-translate/http-loader';\r\n\r\n// Librerias\r\nimport { MenuModule } from '@syncfusion/ej2-angular-navigations';\r\nimport { NgxSpinnerModule } from 'ngx-spinner';\r\n\r\n// pipes\r\nimport { AuthorsPipe } from './pipes/authors.pipe';\r\nimport { TitleArticlePipe } from './pipes/title-article.pipe';\r\n\r\n// Interceptores\r\nimport { SpinnerInterceptor } from './interceptors/spinner.interceptor';\r\nimport { HttpErrorInterceptor } from './interceptors/httpError.interceptor';\r\n\r\n// componentes\r\nimport { AppComponent } from './app.component';\r\nimport { BalloonsComponent } from './components/balloons/balloons.component';\r\nimport { BannerSearchesComponent } from './components/banner-searches/banner-searches.component';\r\nimport { BusquedaGeneralComponent } from './pages/busqueda-general/busqueda-general.component';\r\nimport { BusquedaPaisComponent } from './pages/busqueda-pais/busqueda-pais.component';\r\nimport { BusquedaPalabrasClaveComponent } from './pages/busqueda-palabras-clave/busqueda-palabras-clave.component';\r\nimport { FiltersComponent } from './components/filters/filters.component';\r\nimport { FooterComponent } from './components/footer/footer.component';\r\nimport { HeaderComponent } from './components/header/header.component';\r\nimport { PaginationComponent } from './components/pagination/pagination.component';\r\nimport { ROUTES } from './routes/app.routes';\r\nimport { TargetComponent } from './components/target/target.component';\r\nimport { TableComponent } from './components/table/table.component';\r\nimport { HomeComponent } from './pages/home/home.component';\r\nimport { MapComponent } from './components/map/map.component';\r\nimport { NetworkComponent } from './components/network/network.component';\r\nimport { WordCloudComponent } from './components/word-cloud/word-cloud.component';\r\nimport { LastArticlesComponent } from './components/last-articles/last-articles.component';\r\nimport { AcercaDeComponent } from './pages/acerca-de/acerca-de.component';\r\n\r\nexport function HttpLoaderFactory(http: HttpClient) {\r\n return new TranslateHttpLoader(http, './assets/i18n/', '.json');\r\n}\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n AuthorsPipe,\r\n BalloonsComponent,\r\n BannerSearchesComponent,\r\n BusquedaGeneralComponent,\r\n BusquedaPaisComponent,\r\n BusquedaPalabrasClaveComponent,\r\n FiltersComponent,\r\n FooterComponent,\r\n HeaderComponent,\r\n PaginationComponent,\r\n TargetComponent,\r\n TitleArticlePipe,\r\n TableComponent,\r\n HomeComponent,\r\n MapComponent,\r\n NetworkComponent,\r\n WordCloudComponent,\r\n LastArticlesComponent,\r\n AcercaDeComponent,\r\n ],\r\n imports: [\r\n BrowserAnimationsModule,\r\n BrowserModule,\r\n HttpClientModule,\r\n MenuModule,\r\n NgxSpinnerModule,\r\n TranslateModule.forRoot({\r\n loader: {\r\n provide: TranslateLoader,\r\n useFactory: HttpLoaderFactory,\r\n deps: [HttpClient]\r\n }\r\n }),\r\n RouterModule.forRoot(ROUTES, { useHash: true}),\r\n ],\r\n providers: [\r\n { provide: HTTP_INTERCEPTORS, useClass: SpinnerInterceptor, multi: true},\r\n { provide: HTTP_INTERCEPTORS, useClass: HttpErrorInterceptor, multi: true}\r\n ],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n","import { Component, OnInit, OnDestroy } from '@angular/core';\r\nimport { FilterService } from '../../services/filter.service';\r\nimport { FilterElement } from '../../models/FilterElement.model';\r\nimport { Subscription } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'app-balloons',\r\n templateUrl: './balloons.component.html',\r\n styleUrls: ['./balloons.component.css']\r\n})\r\nexport class BalloonsComponent implements OnInit, OnDestroy {\r\n private filtersSelected$: Subscription;\r\n\r\n balloonFilters: Array = new Array();\r\n\r\n constructor( private filterService: FilterService ) { }\r\n\r\n ngOnInit(): void {\r\n console.log('Componente globitos');\r\n this.filtersSelected$ = this.filterService.filtersSelected$.subscribe(\r\n (filtersSelected: Array) => this.balloonFilters = this.filterService.changeStatefiltersSelected(filtersSelected)\r\n );\r\n }\r\n\r\n ngOnDestroy(): void {\r\n console.log('Destroy component ballons');\r\n this.filtersSelected$.unsubscribe();\r\n }\r\n\r\n deleteBalloonFilter(ballon: FilterElement): void {\r\n this.filterService.findFilterActive(ballon.nombre, ballon.clave);\r\n }\r\n\r\n}\r\n","
\r\n
\r\n
{{ballon.nombre}} x
\r\n
\r\n
","import { Component, OnInit, Input } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-banner-searches',\r\n templateUrl: './banner-searches.component.html',\r\n styleUrls: ['./banner-searches.component.css']\r\n})\r\nexport class BannerSearchesComponent implements OnInit {\r\n @Input() sectionGeneral: boolean;\r\n @Input() sectionKey: boolean;\r\n @Input() sectionCountry: boolean;\r\n @Input() sectionAbout: boolean;\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { Subscription } from 'rxjs';\r\nimport { Filter } from '../../models/Filter.model';\r\nimport { FilterService } from '../../services/filter.service';\r\n\r\n@Component({\r\n selector: 'app-filters',\r\n templateUrl: './filters.component.html',\r\n styleUrls: ['./filters.component.css']\r\n})\r\nexport class FiltersComponent implements OnInit, OnDestroy {\r\n\r\n private filtersSubscription$: Subscription;\r\n filters: Array = new Array();\r\n\r\n constructor( private filterService: FilterService ) { }\r\n\r\n ngOnInit(): void {\r\n console.log('componente filtros');\r\n this.filtersSubscription$ = this.filterService.filters$.subscribe(\r\n (filters: Array) => this.filters = filters\r\n );\r\n }\r\n\r\n ngOnDestroy(): void {\r\n console.log('Destroy component Filters');\r\n this.filtersSubscription$.unsubscribe();\r\n }\r\n\r\n public applyFilters(): void {\r\n this.filterService.applyFilters();\r\n }\r\n\r\n public showElements(filter: any): void {\r\n this.filterService.showElements(filter);\r\n }\r\n\r\n public activateFilters(element: any): boolean {\r\n const activate: boolean = this.filterService.activateFilters(element);\r\n return activate;\r\n }\r\n\r\n public addFilter(filterElement: any, filterName: string): void {\r\n this.filterService.addFilter(filterElement, filterName);\r\n }\r\n\r\n public showButton(filter: Filter): boolean {\r\n const show: boolean = this.filterService.showButton(filter);\r\n return show;\r\n }\r\n\r\n}\r\n","
\r\n
\r\n
{{ 'busqueda.filtros.'+filter.nombre | translate}} :
\r\n
\r\n
4 ? 'hidden-filter' : 'filtroVisible'}} animated fast\" [ngClass]=\"{'show-more': filter.state}\" *ngFor=\"let element of filter.elementos; let indexOfelement=index;\">\r\n \r\n \r\n
\r\n
\r\n
\r\n {{ 'busqueda.filtros.mas' | translate}}\r\n {{ 'busqueda.filtros.menos' | translate}}\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
","import { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-footer',\r\n templateUrl: './footer.component.html',\r\n styleUrls: ['./footer.component.css']\r\n})\r\nexport class FooterComponent implements OnInit {\r\n currentYear = new Date().getFullYear();\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","
\r\n
\r\n {{ \"footer.copyright\" | translate }}
\r\n {{ \"footer.copyright2\" | translate }}
\r\n
\r\n {{ \"footer.version\" | translate: {year: currentYear} }}
\r\n {{ \"footer.correo\" | translate }}\r\n
\r\n
\r\n \r\n \r\n
\r\n
","import { Component, OnInit, Input } from \"@angular/core\";\r\nimport { MenuItemModel } from \"@syncfusion/ej2-angular-navigations\";\r\nimport { TranslationService } from \"../../services/translation.service\";\r\nimport { Router } from \"@angular/router\";\r\nimport * as $ from 'jquery';\r\nimport { HostListener } from '@angular/core';\r\n\r\n@Component({\r\n selector: \"app-header\",\r\n templateUrl: \"./header.component.html\",\r\n styleUrls: [\"./header.component.css\"],\r\n})\r\nexport class HeaderComponent implements OnInit {\r\n menuOpen: boolean = false;\r\n selection: number;\r\n isHidden: boolean = false;\r\n isShow: boolean = false;\r\n\r\n @Input() currentSection: string;\r\n\r\n public menuItems: MenuItemModel[] = [\r\n {\r\n text: \"header.acerca.redalyc\",\r\n items: [\r\n {\r\n text: \"header.mision\",\r\n url: \"https://www.redalyc.org/redalyc/acerca-de/mision.html\",\r\n },\r\n {\r\n text: \"header.consejo\",\r\n url: \"https://www.redalyc.org/redalyc/acerca-de/comite.html\",\r\n },\r\n {\r\n text: \"header.directorio\",\r\n url: \"https://www.redalyc.org/redalyc/acerca-de/directorio.html\",\r\n },\r\n {\r\n text: \"header.cronologia\",\r\n url: \"https://www.redalyc.org/redalyc/acerca-de/noticias.html\",\r\n },\r\n {\r\n text: \"header.reconocimientos\",\r\n url: \"https://www.redalyc.org/redalyc/acerca-de/reconocimientos.html\",\r\n },\r\n {\r\n text: \"header.oai\",\r\n url: \"https://www.redalyc.org/redalyc/acerca-de/oai-pmh.html\",\r\n },\r\n {\r\n text: \"header.sitio\",\r\n url: \"https://www.redalyc.org/redalyc/acerca-de/buscador.html\",\r\n },\r\n {\r\n text: \"header.uso\",\r\n url: \"https://www.redalyc.org/redalyc/acerca-de/usolegal.html\",\r\n },\r\n {\r\n text: \"header.publicaciones\",\r\n url: \"https://www.redalyc.org/redalyc/acerca-de/productos.html\",\r\n },\r\n ],\r\n },\r\n {\r\n text: \"header.acceso\",\r\n url: \"https://www.redalyc.org/home.oa?id=accesso\",\r\n },\r\n {\r\n text: \"header.valores\",\r\n url: \"https://www.redalyc.org/home.oa?id=principios\",\r\n },\r\n {\r\n text: \"header.jats\",\r\n items: [\r\n {\r\n text: \"header.marcalyc\",\r\n url: \"http://marcalyc.redalyc.org/\",\r\n },\r\n {\r\n text: \"header.ojs\",\r\n url: \"https://www.redalyc.org/\",\r\n },\r\n {\r\n text: \"header.capacitacion\",\r\n url: \"http://marcalyc.redalyc.org/ayuda/\",\r\n },\r\n {\r\n text: \"header.generacion\",\r\n url: \"https://www.redalyc.org/\",\r\n },\r\n {\r\n text: \"header.visor\",\r\n url: \"https://www.redalyc.org/\",\r\n },\r\n {\r\n text: \"header.movil\",\r\n url: \"https://www.redalyc.org/\",\r\n },\r\n ],\r\n },\r\n {\r\n text: \"header.indexacion\",\r\n items: [\r\n {\r\n text: \"header.consolidadas.redalyc\",\r\n items: [\r\n {\r\n text: \"header.evaluacion\",\r\n url: \"https://www.redalyc.org/postulacion.oa?q=criterios\",\r\n },\r\n {\r\n text: \"header.postulacion\",\r\n url: \"https://www.redalyc.org/postulacion.oa?q=proceso\",\r\n },\r\n ],\r\n url: \"https://www.redalyc.org/\",\r\n },\r\n {\r\n text: \"header.consolidadas.amelica\",\r\n items: [\r\n {\r\n text: \"header.evaluacion\",\r\n url: \"http://portal.amelica.org/microPortal.oa?opcion=postula\",\r\n },\r\n {\r\n text: \"header.postulacion\",\r\n url: \"http://portal.amelica.org/microPortal.oa?opcion=postula\",\r\n },\r\n ],\r\n url: \"http://portal.amelica.org/\",\r\n },\r\n ],\r\n },\r\n {\r\n text: \"header.servicios\",\r\n url: \"https://www.redalyc.org/home.oa?id=servicios\",\r\n },\r\n ];\r\n\r\n constructor(\r\n private translationService: TranslationService,\r\n private router: Router\r\n ) {}\r\n\r\n ngOnInit(): void {}\r\n\r\n openNav(): void {\r\n this.menuOpen = !this.menuOpen;\r\n console.log(this.menuOpen);\r\n }\r\n\r\n closeMenu(): void {\r\n if (this.menuOpen) {\r\n this.menuOpen = false;\r\n }\r\n }\r\n\r\n toCould() {\r\n document.getElementById(\"could\").scrollIntoView({ behavior: \"smooth\" });\r\n this.selection = 2;\r\n }\r\n toSearcher() {\r\n document.getElementById(\"searcher\").scrollIntoView({ behavior: \"smooth\" });\r\n this.selection = 1;\r\n }\r\n toNetwork() {\r\n document.getElementById(\"network\").scrollIntoView({ behavior: \"smooth\" });\r\n this.selection = 3;\r\n }\r\n toMap() {\r\n document.getElementById(\"map\").scrollIntoView({ behavior: \"smooth\" });\r\n this.selection = 4; // Set the selection explicitly\r\n }\r\n toSparql() {\r\n document.getElementById(\"sparql\").scrollIntoView({ behavior: \"smooth\" });\r\n this.selection = 5;\r\n }\r\n toAbout() {\r\n this.router.navigate([\"/acerca-de\"]);\r\n }\r\n\r\n changeLanguage(lang: string): void {\r\n this.translationService.changeLanguage(lang);\r\n }\r\n\r\n @HostListener('window:scroll', [])\r\n onWindowScroll() {\r\n const scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;\r\n const scrollPosition = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop || 0;\r\n const triggerPoint = 500; \r\n this.isShow = scrollPosition > 300;\r\n\r\n if (scrollTop >= triggerPoint) {\r\n this.isHidden = true;\r\n } else {\r\n this.isHidden = false;\r\n }\r\n }\r\n}","
\r\n
\r\n
\r\n
\r\n \r\n \"Redalyc\r\n \r\n
\r\n
\r\n {{ \"mHeader.title\" | translate }}\r\n {{ \"mHeader.desc1\" | translate }}\r\n {{ \"mHeader.desc2\" | translate }}\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \"Redalyc\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n ESP\r\n ENG\r\n
\r\n
\r\n
\r\n \r\n
\r\n {{\r\n \"header.redalyc\" | translate\r\n }}\r\n > {{ \"general.proyecto\" | translate }}\r\n \r\n > {{ currentSection | translate }}\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n ESP\r\n ENG\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n {{ \"navegacion.buscador\" | translate }}\r\n
\r\n
\r\n \r\n {{ \"navegacion.clave\" | translate }}\r\n
\r\n
\r\n \r\n {{ \"navegacion.conocimiento\" | translate }}\r\n
\r\n
\r\n \r\n {{ \"navegacion.pais\" | translate }}\r\n
\r\n
\r\n \r\n {{ \"navegacion.sparql\" | translate }}\r\n
\r\n
\r\n \r\n {{ \"header.acerca.genero\" | translate }}\r\n
\r\n
\r\n
\r\n ","import { Component, OnInit } from '@angular/core';\r\n// import { url } from 'inspector';\r\nimport { Article } from 'src/app/models/Article.model';\r\nimport { ArticleResult } from 'src/app/models/ArticleResult.model';\r\nimport { ArticleService } from 'src/app/services/article.service';\r\n\r\n@Component({\r\n selector: 'app-last-articles',\r\n templateUrl: './last-articles.component.html',\r\n styleUrls: ['./last-articles.component.css']\r\n})\r\nexport class LastArticlesComponent implements OnInit {\r\n\r\n articles: Array
= new Array
();\r\n constructor(\r\n private articleService: ArticleService,\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.articleService.getLastArticles().subscribe((articles: any) => {\r\n console.log(articles.resultados);\r\n this.articles = articles.resultados;\r\n // console.log(articlesArray);\r\n // console.log(this.articlesArray);\r\n });\r\n }\r\n\r\n parserDataArticle(dataArticle: string) {\r\n const data = dataArticle.split('::');\r\n return data[1];\r\n }\r\n}\r\n","\r\n\r\n","import { Component, OnInit } from '@angular/core';\r\nimport * as am4core from \"@amcharts/amcharts4/core\";\r\nimport * as am4maps from \"@amcharts/amcharts4/maps\";\r\nimport am4geofata_wordLow from \"@amcharts/amcharts4-geodata/worldLow\";\r\nimport am4themes_animated from \"@amcharts/amcharts4/themes/animated\";\r\nimport { ArticleService } from 'src/app/services/article.service';\r\nimport { Country } from 'src/app/models/Country.model';\r\nimport { environment } from '../../../environments/environment';\r\n\r\n@Component({\r\n selector: 'app-map',\r\n templateUrl: './map.component.html',\r\n styleUrls: ['./map.component.css']\r\n})\r\nexport class MapComponent implements OnInit {\r\n\r\n private chart: am4maps.MapChart;\r\n private countrys: Country[];\r\n private urlProject: string = environment.urlProject;\r\n\r\n constructor(\r\n private articlesService: ArticleService\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n this.articlesService.getCountries().subscribe((countrys) => {\r\n this.countrys = countrys;\r\n console.log(countrys);\r\n });\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.chart = am4core.create('chartdiv', am4maps.MapChart); // Create map instance\r\n this.chart.geodata = am4geofata_wordLow; // Set map definition\r\n this.chart.projection = new am4maps.projections.Miller(); // Set projection\r\n this.chart.maxZoomLevel = 1;\r\n this.chart.seriesContainer.draggable = false;\r\n this.chart.seriesContainer.resizable = false;\r\n\r\n // Creating polygon series and loadin data\r\n let polygonSeries = this.chart.series.push(new am4maps.MapPolygonSeries());\r\n polygonSeries.exclude = ['AQ'];\r\n polygonSeries.useGeodata = true;\r\n\r\n let polygonTemplate = polygonSeries.mapPolygons.template;\r\n // polygonTemplate.tooltipText = '{name}';\r\n polygonTemplate.polygon.fillOpacity = 0.6;\r\n polygonTemplate.fill = am4core.color('#b0cbd9');\r\n // let hs = polygonTemplate.states.create('hover');\r\n // hs.properties.fill = am4core.color('#74X999');\r\n\r\n let imageSeries = this.chart.series.push(new am4maps.MapImageSeries());\r\n imageSeries.dataFields.value = 'value';\r\n imageSeries.fill = am4core.color('#00689d');\r\n\r\n let imageTemplate = imageSeries.mapImages.template;\r\n imageTemplate.propertyFields.latitude = 'latitude';\r\n imageTemplate.propertyFields.longitude = 'longitude';\r\n imageTemplate.nonScaling = true;\r\n imageTemplate.fill = am4core.color('white');\r\n\r\n imageSeries.tooltip.label.interactionsEnabled = true;\r\n imageSeries.tooltip.keepTargetHover = true;\r\n\r\n let circle = imageTemplate.createChild(am4core.Circle);\r\n circle.fillOpacity = 0.7;\r\n circle.propertyFields.fill = 'color';\r\n circle.tooltipText = '{name}';\r\n circle.urlTarget = '_blank';\r\n circle.url = this.urlProject + '#/busqueda-pais/{clave}';\r\n\r\n imageSeries.dataSource.url = this.urlProject + 'assets/json/paisesPaz.json';\r\n // imageSeries.dataSource.data = this.countrys;\r\n imageSeries.dataSource.parser = new am4core.JSONParser();\r\n console.log(imageSeries.dataSource.data);\r\n imageSeries.heatRules.push({\r\n \"target\": circle,\r\n 'property': 'radius',\r\n 'min': 5,\r\n 'max': 15,\r\n 'dataField': 'value'\r\n });\r\n }\r\n\r\n ngOnDestroy(): void {\r\n if (this.chart) {\r\n this.chart.dispose();\r\n }\r\n }\r\n\r\n}\r\n","
\r\n
\r\n
","import { Component, OnInit } from '@angular/core';\r\nimport { get } from 'scriptjs';\r\nimport * as $ from 'jquery';\r\nimport { environment } from '../../../environments/environment';\r\n\r\n@Component({\r\n selector: 'app-network',\r\n templateUrl: './network.component.html',\r\n styleUrls: ['./network.component.css']\r\n})\r\nexport class NetworkComponent implements OnInit {\r\n\r\n private urlProject: string = environment.urlProject;\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n get(`${this.urlProject}assets/js/red.js`, () => {\r\n });\r\n\r\n document.getElementById('txt-url').textContent = this.urlProject;\r\n // cargarRed($);\r\n }\r\n\r\n ngAfterContentInit(){\r\n get(`${this.urlProject}assets/js/red.js`, () => {\r\n });\r\n }\r\n\r\n}\r\n","
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
0%
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \"\"\r\n

{{ 'home.cargando' | translate }}

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
","import { Component, OnInit, OnDestroy } from '@angular/core';\r\nimport { Subscription } from 'rxjs';\r\nimport { PaginationService } from '../../services/pagination.service';\r\n\r\n@Component({\r\n selector: 'app-pagination',\r\n templateUrl: './pagination.component.html',\r\n styleUrls: ['./pagination.component.css']\r\n})\r\nexport class PaginationComponent implements OnInit, OnDestroy {\r\n private finalPageSubscription$: Subscription;\r\n private initialPageSubscription$: Subscription;\r\n\r\n final: number;\r\n actualPage = 1;\r\n\r\n constructor( private paginationService: PaginationService ) { }\r\n\r\n ngOnInit(): void {\r\n this.initialPageSubscription$ = this.paginationService.initialPosition$.subscribe(\r\n (initialPage: number) => this.actualPage = initialPage\r\n );\r\n\r\n this.finalPageSubscription$ = this.paginationService.finalPosition$.subscribe(\r\n (finalPage: number) => this.final = finalPage\r\n );\r\n }\r\n\r\n ngOnDestroy(): void {\r\n console.log('Destroy component New Pagination');\r\n this.finalPageSubscription$.unsubscribe();\r\n this.initialPageSubscription$.unsubscribe();\r\n }\r\n\r\n public initialPage(): void {\r\n this.actualPage = 1;\r\n this.paginationService.changePosition(this.actualPage);\r\n }\r\n\r\n public leftArrow(): void {\r\n this.actualPage = this.actualPage - 1;\r\n this.paginationService.changePosition(this.actualPage);\r\n }\r\n\r\n public nextOrpreviousPage(page: number): void {\r\n this.actualPage = page;\r\n this.paginationService.changePosition(this.actualPage);\r\n }\r\n\r\n public rightArrowPage(): void {\r\n this.actualPage = this.actualPage + 1;\r\n this.paginationService.changePosition(this.actualPage);\r\n }\r\n\r\n public finalPage(): void {\r\n this.actualPage = this.final;\r\n this.paginationService.changePosition(this.actualPage);\r\n }\r\n\r\n}\r\n","
\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
","import { Component, OnInit, Input } from '@angular/core';\r\nimport { Article } from '../../models/Article.model';\r\n\r\n@Component({\r\n selector: 'app-table',\r\n templateUrl: './table.component.html',\r\n styleUrls: ['./table.component.css']\r\n})\r\nexport class TableComponent implements OnInit {\r\n @Input() articles: Array
= new Array
();\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
{{ 'busqueda.tabla.titulo' | translate }}{{ 'busqueda.tabla.autor' | translate }}\r\n {{ 'busqueda.tabla.revista' | translate }}\r\n \r\n \r\n {{ 'busqueda.tabla.numero' | translate }}\r\n \r\n {{ 'busqueda.tabla.texto' | translate }}
{{articulo.tituloArticulo | titleArticle }}{{articulo.tituloArticulo | titleArticle }}{{articulo.tituloArticulo | titleArticle }}{{ articulo.autores | authors }}{{ articulo.nombreRevista }}{{ articulo.anio }}, {{ articulo.volumen }} ({{ articulo.numero }})\r\n
\r\n
\r\n Visor\r\n
\r\n
\r\n PDF\r\n
\r\n
\r\n HTML-R\r\n
\r\n
\r\n ePUB-R\r\n
\r\n
\r\n MÓVIL-R\r\n
\r\n
\r\n
\r\n
\r\n
\r\n PDF\r\n
\r\n
\r\n
\r\n
","import { Component, Input, OnInit } from '@angular/core';\r\nimport { Article } from '../../models/Article.model';\r\n\r\n@Component({\r\n selector: 'app-target',\r\n templateUrl: './target.component.html',\r\n styleUrls: ['./target.component.css']\r\n})\r\nexport class TargetComponent implements OnInit {\r\n\r\n @Input() articles: Array
= new Array
();\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","
\r\n\r\n
\r\n \r\n\r\n \r\n\r\n

{{ article.autores | authors}}

\r\n\r\n

\r\n \r\n {{ article.nombreRevista }}, {{ article.anio }}, {{ article.volumen }} ({{ article.numero }})\r\n

\r\n\r\n\r\n

{{ article.contenido }}

\r\n\r\n
\r\n\r\n
\r\n
\r\n
\r\n

{{ 'busqueda.tabla.texto' | translate }}:

\r\n \r\n
\r\n\r\n
\r\n \r\n \"\"\r\n \r\n \r\n \"\"\r\n \r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n

{{ 'busqueda.tabla.texto' | translate }}:

\r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \"\"\r\n \r\n \r\n \"\"\r\n \r\n
\r\n
\r\n
\r\n
\r\n
","import { Component, NgZone, OnInit } from '@angular/core';\r\nimport am4themes_animated from '@amcharts/amcharts4/themes/animated';\r\nimport * as am4charts from '@amcharts/amcharts4/charts';\r\nimport * as am4core from '@amcharts/amcharts4/core';\r\nimport * as am4plugins_wordCloud from '@amcharts/amcharts4/plugins/wordCloud';\r\nimport { environment } from '../../../environments/environment';\r\n\r\n@Component({\r\n selector: 'app-word-cloud',\r\n templateUrl: './word-cloud.component.html',\r\n styleUrls: ['./word-cloud.component.css']\r\n})\r\nexport class WordCloudComponent implements OnInit {\r\n\r\n private chart: am4charts.XYChart;\r\n private url2: string;\r\n private url: string;\r\n private urlProject: string = environment.urlProject;\r\n\r\n constructor(\r\n private zone: NgZone,\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.zone.runOutsideAngular(() => {\r\n const chart2 = am4core.create('wordCloud', am4plugins_wordCloud.WordCloud);\r\n chart2.fontFamily = 'Courier New';\r\n const series = chart2.series.push(new am4plugins_wordCloud.WordCloudSeries());\r\n series.randomness = 0.1;\r\n series.rotationThreshold = 0.5;\r\n series.dataSource.url = 'assets/json/palabrasPaz.json';\r\n\r\n series.dataFields.word = 'word';\r\n series.dataFields.value = 'weight';\r\n\r\n series.heatRules.push({\r\n target: series.labels.template,\r\n property: 'fill',\r\n min: am4core.color('#4d4d4d'),\r\n max: am4core.color('#4d4d4d'),\r\n dataField: 'value'\r\n });\r\n\r\n series.labels.template.url = `${this.urlProject}#/busqueda-palabra-clave/{word}`;\r\n series.labels.template.urlTarget = '_self';\r\n console.log('############' + `${this.urlProject}#/busqueda-palabra-clave/{word}`);\r\n\r\n const subtitle2 = chart2.titles.create();\r\n subtitle2.text = '';\r\n\r\n const title2 = chart2.titles.create();\r\n title2.text = '';\r\n title2.fontSize = 20;\r\n title2.fontWeight = '800';\r\n\r\n });\r\n }\r\n\r\n ngOnDestroy() {\r\n this.zone.runOutsideAngular(() => {\r\n if (this.chart) {\r\n this.chart.dispose();\r\n }\r\n });\r\n }\r\n\r\n}\r\n","
\r\n","const numArticles = '15,183';\r\nconst numJournals = '1,297';\r\nconst numCountries = '27';\r\n\r\nexport const Numeraries = {\r\n numArticles,\r\n numJournals,\r\n numCountries\r\n};\r\n","\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpHandler, HttpRequest, HttpInterceptor, HttpEvent } from '@angular/common/http';\r\nimport { throwError, Observable } from 'rxjs';\r\nimport {catchError} from 'rxjs/internal/operators';\r\nimport { ErrorService } from '../services/error.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class HttpErrorInterceptor implements HttpInterceptor {\r\n\r\n constructor( private errorService: ErrorService ) { }\r\n\r\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n return next.handle(req).pipe(\r\n catchError(error => {\r\n let errorMessage = '';\r\n\r\n (error instanceof ErrorEvent)\r\n ? // client-side error\r\n errorMessage = `Client-side error: ${error.error.message}`\r\n : // backend error\r\n errorMessage = `Server-side error: ${error.status} ${error.message}`;\r\n\r\n this.errorService.showError(errorMessage);\r\n return throwError(errorMessage);\r\n })\r\n );\r\n }\r\n}\r\n","import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { finalize } from 'rxjs/operators';\r\nimport { Observable } from 'rxjs';\r\nimport { SpinnerService } from '../services/spinner.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SpinnerInterceptor implements HttpInterceptor {\r\n\r\n constructor( private spinnerService: SpinnerService ) { }\r\n\r\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n this.spinnerService.showSpinner();\r\n return next.handle(req).pipe(\r\n finalize( () => this.spinnerService.hideSpinner())\r\n );\r\n }\r\n}\r\n","export class FilterChain {\r\n yearChain?: string;\r\n disciplineChain?: string;\r\n countryChain?: string;\r\n languageChain?: string;\r\n fontChain?: string;\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-acerca-de',\r\n templateUrl: './acerca-de.component.html',\r\n styleUrls: ['./acerca-de.component.css']\r\n})\r\nexport class AcercaDeComponent implements OnInit {\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n

\r\n {{ 'estatica.titulo1' | translate }}\r\n

\r\n

\r\n {{ 'estatica.parrafo1' | translate }}\r\n

\r\n

\r\n {{ 'estatica.titulo2' | translate }}\r\n

\r\n

\r\n {{ 'estatica.parrafo2' | translate }}\r\n

\r\n

\r\n {{ 'estatica.titulo3' | translate }}\r\n

\r\n

\r\n {{ 'estatica.parrafo3' | translate }}\r\n

\r\n

\r\n {{ 'estatica.parrafo4' | translate }}\r\n

\r\n
\r\n\r\n
\r\n\r\n
\r\n \r\n
\r\n
","import { Component, OnInit, OnDestroy } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Article } from '../../models/Article.model';\r\nimport { ArticleResult } from '../../models/ArticleResult.model';\r\nimport { ArticleService } from '../../services/article.service';\r\nimport { FilterService } from '../../services/filter.service';\r\nimport { PaginationService } from '../../services/pagination.service';\r\nimport { FilterChain } from '../../models/FilterChain.model';\r\nimport { Subscription } from 'rxjs';\r\nimport { ErrorService } from '../../services/error.service';\r\n\r\n@Component({\r\n selector: 'app-busqueda-general',\r\n templateUrl: './busqueda-general.component.html',\r\n styleUrls: ['./busqueda-general.component.css']\r\n})\r\nexport class BusquedaGeneralComponent implements OnInit, OnDestroy {\r\n private finalPositionSubscription$: Subscription;\r\n private positionSubscription$: Subscription;\r\n private searchSubscription$: Subscription;\r\n private filtersChainSubscription$: Subscription;\r\n private subscriptionArray: Array = [];\r\n\r\n articles: Array
= new Array
();\r\n filtersChain: FilterChain = {\r\n yearChain: '',\r\n disciplineChain: '',\r\n countryChain: '',\r\n languageChain: '',\r\n fontChain: ''\r\n };\r\n\r\n search: string;\r\n searchCopy: string;\r\n finalPositionPage: number;\r\n totalResults: number;\r\n positionPage = 1;\r\n view = true;\r\n results = true;\r\n imgTable = 'assets/img/icons/tabla-desactivada.png';\r\n imgList = 'assets/img/icons/lista-activada.png';\r\n\r\n constructor(\r\n private articleService: ArticleService,\r\n private errorService: ErrorService,\r\n private filterService: FilterService,\r\n private paginationService: PaginationService,\r\n private routeService: ActivatedRoute\r\n ) {\r\n this.search = this.routeService.snapshot.paramMap.get('search');\r\n }\r\n\r\n ngOnInit(): void {\r\n this.finalPositionSubscription$ = this.paginationService.finalPosition$.subscribe(\r\n (finalPosition: number) => this.finalPositionPage = finalPosition\r\n );\r\n\r\n this.positionSubscription$ = this.paginationService.position$.subscribe(\r\n (position: number) => {\r\n this.positionPage = position;\r\n\r\n this.articleService.getArticles(this.search, position, this.filtersChain).subscribe(\r\n (articles: ArticleResult) => {\r\n this.articles = articles.resultados;\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n }\r\n );\r\n }\r\n );\r\n\r\n this.searchSubscription$ = this.articleService.search$.subscribe(\r\n (search: string) => {\r\n this.positionPage = 1;\r\n this.searchCopy = this.search;\r\n this.search = search;\r\n this.filtersChain = {\r\n yearChain: '',\r\n disciplineChain: '',\r\n countryChain: '',\r\n languageChain: '',\r\n fontChain: ''\r\n };\r\n\r\n this.articleService.getArticles(search, 1, this.filtersChain).subscribe(\r\n (articles: ArticleResult) => {\r\n if (this.articleService.articlesExists(articles.resultados.length)){\r\n this.articles = articles.resultados;\r\n this.totalResults = articles.totalResultados;\r\n this.results = this.articleService.articlesExists(articles.resultados.length);\r\n this.filterService.changeFilters(articles.filtros);\r\n this.paginationService.changeInitialPosition();\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n } else {\r\n this.errorService.showErrorSearchs(`No existen resultados para ${search}. Sugerencias: Prueba con una búsqueda nueva`);\r\n this.search = this.searchCopy;\r\n }\r\n }\r\n );\r\n }\r\n );\r\n\r\n this.filtersChainSubscription$ = this.filterService.filtersChain$.subscribe(\r\n (filtersChain: FilterChain) => {\r\n this.filtersChain = filtersChain;\r\n this.articleService.getArticles(\r\n this.search,\r\n 1,\r\n this.filtersChain\r\n ).subscribe(\r\n (articles: ArticleResult) => {\r\n if (this.articleService.articlesExists(articles.resultados.length)){\r\n this.positionPage = 1;\r\n this.articles = articles.resultados;\r\n this.totalResults = articles.totalResultados;\r\n this.filterService.changeFilters(articles.filtros);\r\n this.paginationService.changeInitialPosition();\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n } else {\r\n this.errorService.showErrorSearchs('No existen resultados para la combinación de filtros');\r\n this.searchArticles(this.search);\r\n }\r\n }\r\n );\r\n }\r\n );\r\n\r\n if (!this.search){\r\n this.results = false;\r\n } else {\r\n this.getArticles();\r\n }\r\n\r\n this.subscriptionArray.push(this.finalPositionSubscription$);\r\n this.subscriptionArray.push(this.positionSubscription$);\r\n this.subscriptionArray.push(this.searchSubscription$);\r\n this.subscriptionArray.push(this.filtersChainSubscription$);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n console.log('Destroy page busqueda general');\r\n this.filterService.cleanFiltersSelected();\r\n this.subscriptionArray.forEach((subscription: Subscription) => subscription.unsubscribe());\r\n }\r\n\r\n getArticles(): void {\r\n this.articleService.getArticles(this.search, 1, this.filtersChain).subscribe(\r\n (articles: ArticleResult) => {\r\n this.articles = articles.resultados;\r\n this.totalResults = articles.totalResultados;\r\n this.results = this.articleService.articlesExists(articles.resultados.length);\r\n this.filterService.changeFilters(articles.filtros);\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n }\r\n );\r\n }\r\n\r\n searchArticles(search: string): void {\r\n if (search){\r\n this.filterService.cleanFiltersSelected();\r\n this.articleService.changeSearch(search);\r\n }else{\r\n this.errorService.showErrorSearchs('Ingrese una palabra');\r\n }\r\n }\r\n\r\n changeView(state: boolean): void {\r\n this.view = state;\r\n if (state) {\r\n this.imgTable = 'assets/img/icons/tabla-desactivada.png';\r\n this.imgList = 'assets/img/icons/lista-activada.png';\r\n } else {\r\n this.imgTable = 'assets/img/icons/tabla-activada.png';\r\n this.imgList = 'assets/img/icons/lista-desactivada.png';\r\n }\r\n }\r\n\r\n goUp(): void {\r\n window.scroll({\r\n top: 0,\r\n left: 0,\r\n behavior: 'smooth',\r\n });\r\n }\r\n\r\n}\r\n","
\r\n \r\n

{{ 'general.spinner' | translate }}

\r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n \r\n

{{ 'busqueda.banner.general' | translate }}

\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n {{ 'busqueda.filtros.titulo' | translate }}\r\n
\r\n \r\n\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n {{ 'busqueda.secciones.principal' | translate }}\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
    \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n {{ 'busqueda.secciones.modo' | translate }}\r\n
\r\n
\r\n \r\n {{ 'busqueda.secciones.tabla' | translate }}\r\n
\r\n
\r\n \r\n {{ 'busqueda.secciones.lista' | translate }}\r\n
\r\n
\r\n
\r\n
\r\n {{ 'busqueda.secciones.resultados' | translate: { text: (search || '') } }}\r\n {{ 'busqueda.secciones.total' | translate: { value1: (positionPage * 10 - 9), value2: (positionPage * 10), value3: (totalResults) } }}\r\n {{ 'busqueda.secciones.total' | translate: { value1: (positionPage * 10 - 9), value2: (totalResults), value3: (totalResults) } }}\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n
","import { Component, OnInit, OnDestroy } from '@angular/core';\r\nimport { Article } from '../../models/Article.model';\r\nimport { Country } from '../../models/Country.model';\r\nimport { ArticleService } from '../../services/article.service';\r\nimport { ArticleResult } from '../../models/ArticleResult.model';\r\nimport { FilterService } from '../../services/filter.service';\r\nimport { ErrorService } from '../../services/error.service';\r\nimport { PaginationService } from '../../services/pagination.service';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Subscription } from 'rxjs';\r\nimport { FilterChain } from '../../models/FilterChain.model';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'app-busqueda-pais',\r\n templateUrl: './busqueda-pais.component.html',\r\n styleUrls: ['./busqueda-pais.component.css']\r\n})\r\nexport class BusquedaPaisComponent implements OnInit, OnDestroy {\r\n private finalPositionSubscription$: Subscription;\r\n private positionSubscription$: Subscription;\r\n private searchSubscription$: Subscription;\r\n private filtersChainSubscription$: Subscription;\r\n private subscriptionArray: Array = [];\r\n\r\n filtersChain: FilterChain = {\r\n yearChain: '',\r\n disciplineChain: '',\r\n countryChain: '',\r\n languageChain: '',\r\n fontChain: ''\r\n };\r\n\r\n listCountries: Array = new Array();\r\n articles: Array
= new Array
();\r\n country: string;\r\n countryError: string;\r\n countryId: string;\r\n countryIdCopy: string;\r\n\r\n finalPositionPage: number;\r\n totalResults: number;\r\n\r\n positionPage = 1;\r\n view = true;\r\n results = true;\r\n imgTable = 'assets/img/icons/tabla-desactivada.png';\r\n imgList = 'assets/img/icons/lista-activada.png';\r\n\r\n constructor(\r\n private articleService: ArticleService,\r\n private errorService: ErrorService,\r\n private filterService: FilterService,\r\n private paginationService: PaginationService,\r\n private routeService: ActivatedRoute\r\n ) {\r\n this.countryId = this.routeService.snapshot.paramMap.get('countryId');\r\n }\r\n\r\n ngOnInit(): void {\r\n this.finalPositionSubscription$ = this.paginationService.finalPosition$.subscribe(\r\n (finalPosition: number) => this.finalPositionPage = finalPosition\r\n );\r\n\r\n this.positionSubscription$ = this.paginationService.position$.subscribe(\r\n (position: number) => {\r\n this.positionPage = position;\r\n\r\n this.articleService.getArticlesByCountry(this.countryId, position, this.filtersChain).subscribe(\r\n (articles: ArticleResult) => {\r\n this.articles = articles.resultados;\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n }\r\n );\r\n }\r\n );\r\n\r\n this.searchSubscription$ = this.articleService.search$.subscribe(\r\n (search: string) => {\r\n this.positionPage = 1;\r\n this.countryIdCopy = this.countryId;\r\n this.countryId = search;\r\n this.filtersChain = {\r\n yearChain: '',\r\n disciplineChain: '',\r\n countryChain: '',\r\n languageChain: '',\r\n fontChain: ''\r\n };\r\n\r\n this.articleService.getArticlesByCountry(search, 1, this.filtersChain).subscribe(\r\n (articles: ArticleResult) => {\r\n if (this.articleService.articlesExists(articles.resultados.length)){\r\n this.articles = articles.resultados;\r\n this.totalResults = articles.totalResultados;\r\n this.country = articles.resultados[0].nombrePais;\r\n this.filterService.changeFilters(articles.filtros);\r\n this.paginationService.changeInitialPosition();\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n } else {\r\n this.errorService.showErrorSearchs(`No existen resultados para ${this.countryError}. Sugerencias: Prueba con una búsqueda nueva`);\r\n this.countryId = this.countryIdCopy;\r\n }\r\n }\r\n );\r\n }\r\n );\r\n\r\n this.filtersChainSubscription$ = this.filterService.filtersChain$.subscribe(\r\n (filtersChain: FilterChain) => {\r\n this.filtersChain = filtersChain;\r\n this.articleService.getArticlesByCountry(\r\n this.countryId,\r\n 1,\r\n this.filtersChain\r\n ).subscribe(\r\n (articles: ArticleResult) => {\r\n if (this.articleService.articlesExists(articles.resultados.length)){\r\n this.positionPage = 1;\r\n this.articles = articles.resultados;\r\n this.totalResults = articles.totalResultados;\r\n this.filterService.changeFilters(articles.filtros);\r\n this.paginationService.changeInitialPosition();\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n } else {\r\n this.errorService.showErrorSearchs('No existen resultados para la combinación de filtros');\r\n this.searchArticlesByCountry(this.countryId);\r\n }\r\n }\r\n );\r\n }\r\n );\r\n\r\n this.articleService.getArticlesByCountry(this.countryId, 1, this.filtersChain).pipe(\r\n finalize(\r\n () => this.articleService.getCountries().subscribe(\r\n (countries: Array) => this.listCountries = countries\r\n )\r\n )\r\n ).subscribe(\r\n (articles: ArticleResult) => {\r\n if (this.articleService.articlesExists(articles.resultados.length)){\r\n this.articles = articles.resultados;\r\n this.country = articles.resultados[0].nombrePais;\r\n this.totalResults = articles.totalResultados;\r\n this.filterService.changeFilters(articles.filtros);\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n }\r\n }\r\n );\r\n\r\n this.subscriptionArray.push(this.finalPositionSubscription$);\r\n this.subscriptionArray.push(this.positionSubscription$);\r\n this.subscriptionArray.push(this.searchSubscription$);\r\n this.subscriptionArray.push(this.filtersChainSubscription$);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n console.log('Destroy page busqueda pais');\r\n this.filterService.cleanFiltersSelected();\r\n this.subscriptionArray.forEach((subscription: Subscription) => subscription.unsubscribe());\r\n }\r\n\r\n searchArticlesByCountry(countrySelected: string): void {\r\n this.countryError = this.listCountries.find((country: Country) => country.clave === countrySelected).name;\r\n this.filterService.cleanFiltersSelected();\r\n this.articleService.changeSearch(countrySelected);\r\n }\r\n\r\n changeView(state: boolean): void {\r\n this.view = state;\r\n if (state) {\r\n this.imgTable = 'assets/img/icons/tabla-desactivada.png';\r\n this.imgList = 'assets/img/icons/lista-activada.png';\r\n } else {\r\n this.imgTable = 'assets/img/icons/tabla-activada.png';\r\n this.imgList = 'assets/img/icons/lista-desactivada.png';\r\n }\r\n }\r\n\r\n goUp(): void {\r\n window.scroll({\r\n top: 0,\r\n left: 0,\r\n behavior: 'smooth',\r\n });\r\n }\r\n\r\n}\r\n","
\r\n \r\n

{{ 'general.spinner' | translate }}

\r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n \r\n

{{country}}

\r\n
\r\n\r\n
\r\n {{ 'busqueda.banner.pais' | translate }}\r\n \r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n {{ 'busqueda.filtros.titulo' | translate }}\r\n
\r\n \r\n\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n {{ 'busqueda.secciones.principal' | translate }}\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
    \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n {{ 'busqueda.secciones.modo' | translate }}\r\n
\r\n
\r\n \r\n {{ 'busqueda.secciones.tabla' | translate }}\r\n
\r\n
\r\n \r\n {{ 'busqueda.secciones.lista' | translate }}\r\n
\r\n
\r\n
\r\n
\r\n {{ 'busqueda.secciones.resultados.pais' | translate: { value: (country || '') } }}\r\n {{ 'busqueda.secciones.total' | translate: { value1: (positionPage * 10 - 9), value2: (positionPage * 10), value3: (totalResults || '') } }}\r\n {{ 'busqueda.secciones.total' | translate: { value1: (positionPage * 10 - 9), value2: (totalResults), value3: (totalResults) } }}\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n
","import { Component, OnInit, OnDestroy } from '@angular/core';\r\nimport { Article } from '../../models/Article.model';\r\nimport { ArticleService } from '../../services/article.service';\r\nimport { FilterService } from '../../services/filter.service';\r\nimport { ArticleResult } from '../../models/ArticleResult.model';\r\nimport { ErrorService } from '../../services/error.service';\r\nimport { PaginationService } from '../../services/pagination.service';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Subscription } from 'rxjs';\r\nimport { FilterChain } from '../../models/FilterChain.model';\r\n\r\n@Component({\r\n selector: 'app-busqueda-palabras-clave',\r\n templateUrl: './busqueda-palabras-clave.component.html',\r\n styleUrls: ['./busqueda-palabras-clave.component.css']\r\n})\r\nexport class BusquedaPalabrasClaveComponent implements OnInit, OnDestroy {\r\n private finalPositionSubscription$: Subscription;\r\n private positionSubscription$: Subscription;\r\n private searchSubscription$: Subscription;\r\n private filtersChainSubscription$: Subscription;\r\n private subscriptionArray: Array = [];\r\n\r\n articles: Array
= new Array
();\r\n filtersChain: FilterChain = {\r\n yearChain: '',\r\n disciplineChain: '',\r\n countryChain: '',\r\n languageChain: '',\r\n fontChain: ''\r\n };\r\n\r\n key: string;\r\n keyCopy: string;\r\n finalPositionPage: number;\r\n totalResults: number;\r\n positionPage = 1;\r\n view = true;\r\n results = true;\r\n imgTable = 'assets/img/icons/tabla-desactivada.png';\r\n imgList = 'assets/img/icons/lista-activada.png';\r\n\r\n constructor(\r\n private articleService: ArticleService,\r\n private errorService: ErrorService,\r\n private filterService: FilterService,\r\n private paginationService: PaginationService,\r\n private routeService: ActivatedRoute,\r\n ) {\r\n this.key = this.routeService.snapshot.paramMap.get('key');\r\n }\r\n\r\n ngOnInit(): void {\r\n this.finalPositionSubscription$ = this.paginationService.finalPosition$.subscribe(\r\n (finalPosition: number) => this.finalPositionPage = finalPosition\r\n );\r\n\r\n this.positionSubscription$ = this.paginationService.position$.subscribe(\r\n (position: number) => {\r\n this.positionPage = position;\r\n\r\n this.articleService.getArticlesByKey(this.key, position, this.filtersChain).subscribe(\r\n (articles: ArticleResult) => {\r\n this.articles = articles.resultados;\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n }\r\n );\r\n }\r\n );\r\n\r\n this.searchSubscription$ = this.articleService.search$.subscribe(\r\n (search: string) => {\r\n this.positionPage = 1;\r\n this.keyCopy = this.key;\r\n this.key = search;\r\n this.filtersChain = {\r\n yearChain: '',\r\n disciplineChain: '',\r\n countryChain: '',\r\n languageChain: '',\r\n fontChain: ''\r\n };\r\n\r\n this.articleService.getArticlesByKey(search, 1, this.filtersChain).subscribe(\r\n (articles: ArticleResult) => {\r\n if (this.articleService.articlesExists(articles.resultados.length)){\r\n this.articles = articles.resultados;\r\n this.results = this.articleService.articlesExists(articles.resultados.length);\r\n this.totalResults = articles.totalResultados;\r\n this.filterService.changeFilters(articles.filtros);\r\n this.paginationService.changeInitialPosition();\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n } else {\r\n this.errorService.showErrorSearchs(`No existen resultados para ${search}. Sugerencias: Prueba con una búsqueda nueva`);\r\n this.key = this.keyCopy;\r\n }\r\n }\r\n );\r\n }\r\n );\r\n\r\n this.filtersChainSubscription$ = this.filterService.filtersChain$.subscribe(\r\n (filtersChain: FilterChain) => {\r\n this.filtersChain = filtersChain;\r\n this.articleService.getArticlesByKey(\r\n this.key,\r\n 1,\r\n this.filtersChain\r\n ).subscribe(\r\n (articles: ArticleResult) => {\r\n if (this.articleService.articlesExists(articles.resultados.length)){\r\n this.positionPage = 1;\r\n this.articles = articles.resultados;\r\n this.totalResults = articles.totalResultados;\r\n this.filterService.changeFilters(articles.filtros);\r\n this.paginationService.changeInitialPosition();\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n } else {\r\n this.errorService.showErrorSearchs('No existen resultados para la combinación de filtros');\r\n this.searchArticlesByKey(this.key);\r\n }\r\n }\r\n );\r\n }\r\n );\r\n\r\n if (!this.key){\r\n this.results = false;\r\n } else {\r\n this.geyArticlesByKey();\r\n }\r\n\r\n this.subscriptionArray.push(this.finalPositionSubscription$);\r\n this.subscriptionArray.push(this.positionSubscription$);\r\n this.subscriptionArray.push(this.searchSubscription$);\r\n this.subscriptionArray.push(this.filtersChainSubscription$);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n console.log('Destroy page busqueda general');\r\n this.filterService.cleanFiltersSelected();\r\n this.subscriptionArray.forEach((subscription: Subscription) => subscription.unsubscribe());\r\n }\r\n\r\n geyArticlesByKey(): void{\r\n this.articleService.getArticlesByKey(this.key, 1, this.filtersChain).subscribe(\r\n (articles: ArticleResult) => {\r\n this.articles = articles.resultados;\r\n this.results = this.articleService.articlesExists(articles.resultados.length);\r\n this.totalResults = articles.totalResultados;\r\n this.filterService.changeFilters(articles.filtros);\r\n this.paginationService.changeFinalPosition(articles.totalResultados, 'articles');\r\n }\r\n );\r\n }\r\n\r\n searchArticlesByKey(key: string): void {\r\n if (key){\r\n this.filterService.cleanFiltersSelected();\r\n this.articleService.changeSearch(key);\r\n }else{\r\n this.errorService.showErrorSearchs('Ingrese la palabra clave a buscar');\r\n }\r\n }\r\n changeView(state: boolean): void {\r\n this.view = state;\r\n if (state) {\r\n this.imgTable = 'assets/img/icons/tabla-desactivada.png';\r\n this.imgList = 'assets/img/icons/lista-activada.png';\r\n } else {\r\n this.imgTable = 'assets/img/icons/tabla-activada.png';\r\n this.imgList = 'assets/img/icons/lista-desactivada.png';\r\n }\r\n }\r\n\r\n goUp(): void {\r\n window.scroll({\r\n top: 0,\r\n left: 0,\r\n behavior: 'smooth',\r\n });\r\n }\r\n\r\n}\r\n","
\r\n \r\n

{{ 'general.spinner' | translate }}

\r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n \r\n

{{ 'busqueda.banner.palabras' | translate }}

\r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n {{ 'busqueda.filtros.titulo' | translate }}\r\n
\r\n \r\n\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n {{ 'busqueda.secciones.principal' | translate }}\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
    \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n {{ 'busqueda.secciones.modo' | translate }}\r\n
\r\n
\r\n \r\n {{ 'busqueda.secciones.tabla' | translate }}\r\n
\r\n
\r\n \r\n {{ 'busqueda.secciones.lista' | translate }}\r\n
\r\n
\r\n
\r\n
\r\n {{ 'busqueda.secciones.resultados' | translate: { text: (key || '') } }}\r\n {{ 'busqueda.secciones.total' | translate: { value1: (positionPage * 10 - 9), value2: (positionPage * 10), value3: (totalResults) } }}\r\n {{ 'busqueda.secciones.total' | translate: { value1: (positionPage * 10 - 9), value2: (totalResults), value3: (totalResults) } }}\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n
","import { Component, OnInit } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport * as $ from 'jquery';\r\nimport { HostListener } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { Numeraries } from '../../constants/numerary';\r\nimport { TranslationService } from '../../services/translation.service';\r\n\r\n@Component({\r\n selector: 'app-home',\r\n templateUrl: './home.component.html',\r\n styleUrls: ['./home.component.css']\r\n})\r\nexport class HomeComponent implements OnInit {\r\n\r\n // palabra: string;\r\n numArticulos: string = Numeraries.numArticles;\r\n numRevistas: string = Numeraries.numJournals;\r\n numPaises: string = Numeraries.numCountries;\r\n selection: number;\r\n section: string;\r\n lang: string = '';\r\n\r\n constructor(\r\n private router: Router,\r\n private route: ActivatedRoute,\r\n private translationService: TranslationService,\r\n ) {\r\n const section = 'section';\r\n this.route.params.subscribe((params) => {\r\n this.section = params[section];\r\n });\r\n }\r\n\r\n ngOnInit(): void {\r\n if (this.section === 'network'){\r\n this.toNetwork();\r\n }\r\n\r\n this.lang = localStorage.getItem('language');\r\n\r\n this.translationService.lang.subscribe( lang => this.lang=lang);\r\n }\r\n\r\n searchText(word: string){\r\n console.log(word);\r\n this.router.navigate(['/busqueda-general', word]);\r\n }\r\n\r\n rightScroll() {\r\n // console.log('me muevo a la derecha');\r\n const posicion = $('#contenedor-fichas').scrollLeft();\r\n $('#contenedor-fichas').scrollLeft(posicion + 500);\r\n }\r\n\r\n leftScroll() {\r\n // console.log('me muevo a la izquierda');\r\n const posicion = $('#contenedor-fichas').scrollLeft();\r\n $('#contenedor-fichas').scrollLeft(posicion - 500);\r\n }\r\n\r\n toCould() {\r\n document.getElementById('could').scrollIntoView({ behavior: 'smooth' });\r\n this.selection = 2;\r\n }\r\n toSearcher() {\r\n document.getElementById('searcher').scrollIntoView({ behavior: 'smooth' });\r\n this.selection = 1;\r\n }\r\n toNetwork() {\r\n document.getElementById('network').scrollIntoView({ behavior: 'smooth' });\r\n this.selection = 3;\r\n }\r\n toMap() {\r\n document.getElementById('map').scrollIntoView({ behavior: 'smooth' });\r\n this.selection = 4; // Set the selection explicitly\r\n }\r\n toSparql() {\r\n document.getElementById('sparql').scrollIntoView({ behavior: 'smooth' });\r\n this.selection = 5;\r\n }\r\n toAbout(){\r\n this.router.navigate(['/acerca-de']);\r\n }\r\n toRecent(){\r\n document.getElementById('last-numbers').scrollIntoView({ behavior: 'smooth' });\r\n this.selection = 6; // Set the selection explicitly\r\n }\r\n toScrollTop(){\r\n const element = document.getElementsByClassName('header');\r\n element[0].scrollIntoView({ behavior: 'smooth'});\r\n }\r\n\r\n @HostListener('window:scroll', ['$event'])\r\n onWindowScroll($event) {\r\n if ($(window).scrollTop() + 80 >= $('#menu-section').offset().top) {\r\n if ($('#menu-section').offset().top < 400) {\r\n $('#menu-section').css('position', 'inherit');\r\n $('.navigation').css('position', 'inherit');\r\n } else {\r\n $('#menu-section').css('position', 'fixed');\r\n $('#menu-section').css('top', '80px');\r\n $('#menu-section').css('width', '100%');\r\n $('#menu-section').css('z-index', 2);\r\n $('.navigation').css('z-index', 2);\r\n $('.navigation').css('position', 'fixed');\r\n $('.navigation').css('width', '100%');\r\n $('.navigation').css('justify-content', 'center');\r\n $('.navigation').css('background-color', '#37464e');\r\n }\r\n }\r\n\r\n if ($(window).scrollTop() > 0 && $(window).scrollTop() < 500) {\r\n const scrollTop = $(window).scrollTop();\r\n const sectionOffsets = {\r\n section1: $('#section1').offset().top,\r\n section2: $('#section2').offset().top,\r\n section3: $('#section3').offset().top,\r\n section4: $('#section4').offset().top,\r\n section5: $('#section5').offset().top,\r\n section6: $('#section6').offset().top,\r\n };\r\n \r\n for (const section in sectionOffsets) {\r\n const offsetTop = sectionOffsets[section];\r\n const offsetBottom = offsetTop + $('#' + section).outerHeight();\r\n if (scrollTop >= offsetTop && scrollTop < offsetBottom) {\r\n this.selection = parseInt(section.replace('section', ''), 10);\r\n return;\r\n }\r\n }\r\n this.selection = 0;\r\n }\r\n if ($(window).scrollTop() > 0 && $(window).scrollTop() < 500) {\r\n this.selection = 1;\r\n }\r\n if ($(window).scrollTop() > 500 && $(window).scrollTop() < 1200) {\r\n this.selection = 2;\r\n }\r\n if ($(window).scrollTop() > 1201 && $(window).scrollTop() < 2300) {\r\n this.selection = 3;\r\n }\r\n if ($(window).scrollTop() > 2301 && $(window).scrollTop() < 3300) {\r\n this.selection = 4;\r\n }\r\n if ($(window).scrollTop() > 3201 && $(window).scrollTop() < 3600) {\r\n this.selection = 6;\r\n }\r\n if ($(window).scrollTop() > 3601 && $(window).scrollTop() < 4000) {\r\n this.selection = 5;\r\n }\r\n }\r\n }\r\n\r\n","\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n {{'home.mensaje' | translate}}\r\n
\r\n
\r\n
{{ 'navegacion.buscador' | translate }}
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n

{{ numArticulos }} {{ 'navegacion.texto-num-articulo' | translate }} {{ 'navegacion.texto-num-articulo2' | translate }} {{ numRevistas }} {{ 'navegacion.texto-num-rev' | translate }} {{ 'navegacion.texto-num-rev2' | translate }} {{ numPaises }} {{ 'navegacion.texto-num-paises' | translate }}

\r\n \r\n
\r\n
\r\n \r\n
\r\n {{'home.mensaje1' | translate}}\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n {{ 'navegacion.clave' | translate}}\r\n
\r\n
\r\n {{ 'navegacion.conocimiento' | translate}}\r\n
\r\n
\r\n {{ 'navegacion.pais' | translate}}\r\n
\r\n
\r\n {{ 'navegacion.sparql' | translate}}\r\n
\r\n
\r\n  {{ 'navegacion.recientes' | translate}}\r\n
\r\n
\r\n {{ 'header.acerca.genero' | translate }}\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
{{'navegacion.clave' | translate}}
\r\n \r\n
\r\n
\r\n
\r\n
{{'navegacion.conocimiento' | translate}}
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
{{'navegacion.pais' | translate}}
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
{{'home.recientes' | translate}}
\r\n
\r\n
\"\"    {{ 'busqueda.secciones.principal' | translate}}
\r\n
\r\n
\"\"
\r\n
\"\"
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n

{{'navegacion.sparql' | translate}}

\r\n
\r\n

\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'authors'\r\n})\r\nexport class AuthorsPipe implements PipeTransform {\r\n\r\n transform(value: string, ...args: unknown[]): string {\r\n const authors = value.split('<<<');\r\n let authorsFormat: string;\r\n for (let i = 0 ; i < authors.length; i++) {\r\n if (i === 0){\r\n authorsFormat = authors[i];\r\n }else if (i === (authors.length - 1)){\r\n authorsFormat = authorsFormat + authors[i] + '.';\r\n }\r\n else{\r\n authorsFormat = authorsFormat + ', ' + authors[i];\r\n }\r\n }\r\n return authorsFormat;\r\n }\r\n\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'titleArticle'\r\n})\r\nexport class TitleArticlePipe implements PipeTransform {\r\n\r\n transform(value: string, ...args: unknown[]): string {\r\n const titleArticle = value.split('<<<');\r\n console.log(titleArticle)\r\n for (let i = 0; i < titleArticle.length; i++){\r\n if (titleArticle[i] === 'es') {\r\n const titulo = titleArticle[i + 1];\r\n return titulo;\r\n }\r\n if (titleArticle[i] === 'en') {\r\n const titulo = titleArticle[i + 1];\r\n return titulo;\r\n }\r\n if (titleArticle[i] === 'pt') {\r\n const titulo = titleArticle[i + 1];\r\n return titulo;\r\n }else{\r\n return titleArticle[0];\r\n }\r\n }\r\n }\r\n\r\n}\r\n","import { Routes } from '@angular/router';\r\nimport { AcercaDeComponent } from '../pages/acerca-de/acerca-de.component';\r\nimport { BusquedaGeneralComponent } from '../pages/busqueda-general/busqueda-general.component';\r\nimport { BusquedaPaisComponent } from '../pages/busqueda-pais/busqueda-pais.component';\r\nimport { BusquedaPalabrasClaveComponent } from '../pages/busqueda-palabras-clave/busqueda-palabras-clave.component';\r\nimport { HomeComponent } from '../pages/home/home.component';\r\n\r\nexport const ROUTES: Routes = [\r\n { path: 'acerca-de', component: AcercaDeComponent },\r\n { path: 'busqueda-general/:search', component: BusquedaGeneralComponent },\r\n { path: 'busqueda-general', component: BusquedaGeneralComponent },\r\n { path: 'busqueda-palabra-clave/:key', component: BusquedaPalabrasClaveComponent },\r\n { path: 'busqueda-palabra-clave', component: BusquedaPalabrasClaveComponent },\r\n { path: 'busqueda-pais/:countryId', component: BusquedaPaisComponent },\r\n { path: 'busqueda-pais', component: BusquedaPaisComponent },\r\n { path: 'home', component: HomeComponent },\r\n { path: 'home/:section', component: HomeComponent },\r\n { path: '**', pathMatch: 'full', redirectTo: 'home' },\r\n];\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { Observable, Subject } from 'rxjs';\r\nimport { ArticleResult } from '../models/ArticleResult.model';\r\nimport { environment } from '../../environments/environment';\r\nimport { FilterChain } from '../models/FilterChain.model';\r\nimport { Country } from '../models/Country.model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ArticleService {\r\n private _search$: Subject = new Subject();\r\n\r\n public url: string = environment.baseUrl;\r\n private urlProject: string = environment.urlProject;\r\n\r\n constructor( private http: HttpClient ) { }\r\n\r\n normalize = ( () => {\r\n const from = 'ÃÀÁÄÂÈÉËÊÌÍÏÎÒÓÖÔÙÚÜÛãàáäâèéëêìíïîòóöôùúüûÑñÇç';\r\n const to = 'AAAAAEEEEIIIIOOOOUUUUaaaaaeeeeiiiioooouuuunncc';\r\n const mapping = {};\r\n\r\n for (let i = 0, j = from.length; i < j; i++ ) {\r\n mapping[ from.charAt( i ) ] = to.charAt( i );\r\n }\r\n\r\n return (str: string) => {\r\n str ? str = str.replace(/ñ/gi, 'n-n') : str = '\\'\\'';\r\n const ret = [];\r\n for ( let i = 0, j = str.length; i < j; i++ ) {\r\n const c = str.charAt( i );\r\n if ( mapping.hasOwnProperty( str.charAt( i ) ) ) {\r\n ret.push( mapping[ c ] );\r\n } else {\r\n ret.push( c );\r\n }\r\n }\r\n\r\n return ret.join( '' );\r\n };\r\n })();\r\n\r\n get search$(): Observable {\r\n return this._search$;\r\n }\r\n\r\n changeSearch(search: string): void {\r\n this._search$.next(search);\r\n }\r\n\r\n addQuotes(word: string): string {\r\n const firstLetter = word.charAt(0);\r\n const lastLetter = word.charAt(word.length - 1);\r\n let wordWithQuote = '';\r\n !(firstLetter === '\\\"')\r\n ? !(lastLetter === '\\\"')\r\n ? wordWithQuote = '\\\"' + word + '\\\"'\r\n : wordWithQuote = '\\\"' + word\r\n : !(lastLetter === '\\\"')\r\n ? wordWithQuote = word + '\\\"'\r\n : wordWithQuote = word;\r\n console.log(wordWithQuote);\r\n return wordWithQuote;\r\n }\r\n\r\n getArticles(\r\n search: string,\r\n page: number,\r\n filters: FilterChain\r\n ): Observable {\r\n search = this.normalize(search);\r\n search = this.addQuotes(search);\r\n console.log('Servicio Articulos:', `${this.url}articulos/peace/${search}/${page}/10/relevancia/0/{\"anios\":\"${filters.yearChain}\",\"idiomas\":\"${filters.languageChain}\", \"paises\":\"${filters.countryChain}\",\"areas\":\"\",\"disciplinas\":\"${filters.disciplineChain}\",\"autores\":\"\",\"instituciones\":\"\",\"origen\":\"\",\"funete\":\"\",\"fb\":1}'`);\r\n return this.http.get(`${this.url}articulos/peace/${search}/${page}/10/relevancia/0/{\"anios\":\"${filters.yearChain}\",\"idiomas\":\"${filters.languageChain}\", \"paises\":\"${filters.countryChain}\",\"areas\":\"\",\"disciplinas\":\"${filters.disciplineChain}\",\"autores\":\"\",\"instituciones\":\"\",\"origen\":\"\",\"funete\":\"\",\"fb\":1}'`);\r\n }\r\n\r\n getArticlesByCountry(\r\n countryId: string,\r\n page: number,\r\n filters: FilterChain\r\n ): Observable {\r\n console.log('Servicio Articulos por Palabra Clave:', `${this.url}articulos/peace/pais/${countryId}/${page}/10/relevancia/0/{\"anios\":\"${filters.yearChain}\",\"idiomas\":\"${filters.languageChain}\", \"paises\":\"${filters.countryChain}\",\"areas\":\"\",\"disciplinas\":\"${filters.disciplineChain}\",\"autores\":\"\",\"instituciones\":\"\",\"origen\":\"\",\"funete\":\"\",\"fb\":1}'`);\r\n return this.http.get(`${this.url}articulos/peace/pais/${countryId}/${page}/10/relevancia/0/{\"anios\":\"${filters.yearChain}\",\"idiomas\":\"${filters.languageChain}\", \"paises\":\"${filters.countryChain}\",\"areas\":\"\",\"disciplinas\":\"${filters.disciplineChain}\",\"autores\":\"\",\"instituciones\":\"\",\"origen\":\"\",\"funete\":\"\",\"fb\":1}'`);\r\n }\r\n\r\n getArticlesByKey(\r\n key: string,\r\n page: number,\r\n filters: FilterChain\r\n ): Observable {\r\n key = this.normalize(key);\r\n key = this.addQuotes(key);\r\n console.log('Servicio Articulos por Palabra Clave:', `${this.url}articulos/peace/palabras/${key}/${page}/10/relevancia/0/{\"anios\":\"${filters.yearChain}\",\"idiomas\":\"${filters.languageChain}\", \"paises\":\"${filters.countryChain}\",\"areas\":\"\",\"disciplinas\":\"${filters.disciplineChain}\",\"autores\":\"\",\"instituciones\":\"\",\"origen\":\"\",\"funete\":\"\",\"fb\":1}'`);\r\n return this.http.get(`${this.url}articulos/peace/palabras/${key}/${page}/10/relevancia/0/{\"anios\":\"${filters.yearChain}\",\"idiomas\":\"${filters.languageChain}\", \"paises\":\"${filters.countryChain}\",\"areas\":\"\",\"disciplinas\":\"${filters.disciplineChain}\",\"autores\":\"\",\"instituciones\":\"\",\"origen\":\"\",\"funete\":\"\",\"fb\":1}'`);\r\n }\r\n\r\n getCountries(): Observable {\r\n return this.http.get(`${this.urlProject}assets/json/paises.json`);\r\n }\r\n\r\n articlesExists(articlesLength: number): boolean {\r\n let articlesExists: boolean;\r\n articlesLength ? articlesExists = true : articlesExists = false;\r\n return articlesExists;\r\n }\r\n getLastArticles(): any {\r\n return this.http.get(`${this.url}articulos/peace/recientes/20/fechaAltaArticuloM/1`);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport Swal from 'sweetalert2';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ErrorService {\r\n\r\n constructor() { }\r\n\r\n showError(errorMessage: string): void {\r\n console.log(errorMessage);\r\n Swal.fire(\r\n 'Ha ocurrido un error!',\r\n errorMessage,\r\n 'warning'\r\n );\r\n }\r\n\r\n showErrorSearchs(errorMessage: string): void {\r\n console.log(errorMessage);\r\n Swal.fire(\r\n 'Lo sentimos',\r\n errorMessage,\r\n 'warning'\r\n );\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Subject, Observable } from 'rxjs';\r\nimport { Filter } from '../models/Filter.model';\r\nimport { FilterChain } from '../models/FilterChain.model';\r\nimport { FilterElement } from '../models/FilterElement.model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class FilterService {\r\n private _filters$: Subject> = new Subject>();\r\n private _filtersChain$: Subject = new Subject();\r\n private _filtersSelected$: Subject> = new Subject>();\r\n\r\n filtersSelected: Array = [];\r\n filtersChain: FilterChain = new FilterChain();\r\n\r\n constructor() { }\r\n\r\n get filters$(): Observable> {\r\n return this._filters$;\r\n }\r\n\r\n get filtersChain$(): Observable {\r\n return this._filtersChain$;\r\n }\r\n\r\n get filtersSelected$(): Observable> {\r\n return this._filtersSelected$;\r\n }\r\n\r\n public changeFilters(filters: Array): void {\r\n this._filters$.next(filters);\r\n }\r\n\r\n public applyFilters(): void {\r\n this.filtersChain.yearChain = this.buildChain('Año');\r\n this.filtersChain.disciplineChain = this.buildChain('Disciplina');\r\n this.filtersChain.countryChain = this.buildChain('País');\r\n this.filtersChain.languageChain = this.buildChain('Idioma');\r\n this.filtersChain.fontChain = this.buildChain('Fuente');\r\n console.log(this.filtersChain);\r\n /* if (this.filtersChain.countryChain\r\n || this.filtersChain.disciplineChain\r\n || this.filtersChain.fontChain\r\n || this.filtersChain.languageChain\r\n || this.filtersChain.yearChain\r\n ){\r\n this.filtersChain$.emit(this.filtersChain);\r\n this.filtersSelected$.emit(this.filtersSelected);\r\n }else{\r\n this.filtersChain$.emit(this.filtersChain);\r\n this.filtersSelected$.emit(this.filtersSelected);\r\n } */\r\n this._filtersChain$.next(this.filtersChain);\r\n this._filtersSelected$.next(this.filtersSelected);\r\n }\r\n\r\n public buildChain(filter: string): string {\r\n const filters: string[] = [];\r\n let filtersChain = '';\r\n\r\n this.filtersSelected.forEach((filterSelected: FilterElement) => {\r\n if (filterSelected.filtro === filter){\r\n filters.push(filterSelected.clave);\r\n }\r\n });\r\n\r\n filtersChain = filters.join('<<<');\r\n console.log(filtersChain);\r\n return filtersChain;\r\n }\r\n\r\n public showElements(filter: Filter): void {\r\n if (!filter.hasOwnProperty('state')) {\r\n Object.defineProperty(filter, 'state', {\r\n value: false,\r\n writable: true\r\n });\r\n }\r\n\r\n filter.state\r\n ? Object.defineProperty(filter, 'state', { value: false })\r\n : Object.defineProperty(filter, 'state', { value: true });\r\n }\r\n\r\n public activateFilters(element: FilterElement): boolean {\r\n if (this.filtersSelected.find((filterSelected: FilterElement) => filterSelected.nombre === element.nombre)) {\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }\r\n\r\n public addFilter(filterElement: FilterElement, filterName: string): void {\r\n const deleteFilterActive: boolean = this.findFilterActive(filterElement.nombre, filterElement.clave);\r\n console.log(deleteFilterActive);\r\n const element: FilterElement = {\r\n clave: filterElement.clave,\r\n nombre: filterElement.nombre,\r\n filtro: filterName,\r\n state: false\r\n };\r\n\r\n console.log(element);\r\n if (!deleteFilterActive){\r\n if (this.findFilterSelected(element.nombre, false)) {\r\n const index: number = this.getIndexFilterSelected(element.clave);\r\n this.filtersSelected.splice(index, 1);\r\n } else {\r\n this.filtersSelected.push(element);\r\n }\r\n }\r\n\r\n console.log(this.filtersSelected);\r\n }\r\n\r\n public showButton(filter: Filter): boolean {\r\n if (filter.elementos.length > 5){\r\n return false;\r\n }else{\r\n return true;\r\n }\r\n }\r\n\r\n public findFilterActive(filterName: string, key: string): boolean {\r\n if (this.findFilterSelected(filterName, true)){\r\n const index: number = this.getIndexFilterSelected(key);\r\n this.filtersSelected.splice(index, 1);\r\n this.applyFilters();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }\r\n\r\n public findFilterSelected(filterName: string, state: boolean): boolean {\r\n return this.filtersSelected.find(\r\n (filterSelected: FilterElement) => filterSelected.nombre === filterName && filterSelected.state === state\r\n )\r\n ? true\r\n : false;\r\n }\r\n\r\n public getIndexFilterSelected(key: string): number {\r\n return this.filtersSelected.findIndex((filterIndexSelected: FilterElement) => filterIndexSelected.clave === key);\r\n }\r\n\r\n public changeStatefiltersSelected(filtersSelected: Array): Array {\r\n filtersSelected.forEach(\r\n (filterSelected: FilterElement) => {\r\n filterSelected.state = true;\r\n }\r\n );\r\n return filtersSelected;\r\n }\r\n\r\n public cleanFiltersSelected(): void {\r\n this.filtersSelected = [];\r\n this._filtersSelected$.next(this.filtersSelected);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Subject, Observable } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class PaginationService {\r\n private _position$: Subject = new Subject();\r\n private _initialPosition$: Subject = new Subject();\r\n private _finalPosition$: Subject = new Subject();\r\n\r\n constructor() { }\r\n\r\n get position$(): Observable {\r\n return this._position$;\r\n }\r\n\r\n get initialPosition$(): Observable {\r\n return this._initialPosition$;\r\n }\r\n\r\n get finalPosition$(): Observable {\r\n return this._finalPosition$;\r\n }\r\n\r\n changePosition(page: number): void {\r\n console.log('change position');\r\n this._position$.next(page);\r\n }\r\n\r\n changeInitialPosition(): void {\r\n console.log('change initial position');\r\n this._initialPosition$.next(1);\r\n }\r\n\r\n changeFinalPosition(totalPages: number, typeSearch: string): void {\r\n console.log('change final position');\r\n console.log(totalPages);\r\n let finalPage: number;\r\n\r\n typeSearch === 'articles'\r\n ? Number.isInteger(totalPages / 10)\r\n ? (finalPage = totalPages / 10)\r\n : (finalPage = Math.floor(totalPages / 10) + 1)\r\n : Number.isInteger(totalPages / 10)\r\n ? (finalPage = totalPages / 12)\r\n : (finalPage = Math.floor(totalPages / 12) + 1);\r\n\r\n this._finalPosition$.next(finalPage);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { NgxSpinnerService } from 'ngx-spinner';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SpinnerService {\r\n\r\n constructor( private spinnerService: NgxSpinnerService ) { }\r\n\r\n showSpinner(): void {\r\n this.spinnerService.show();\r\n }\r\n\r\n hideSpinner(): void {\r\n this.spinnerService.hide();\r\n }\r\n}\r\n","import { EventEmitter, Injectable, Output } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class TranslationService {\r\n\r\n @Output()lang = new EventEmitter();\r\n\r\n constructor(\r\n private translate: TranslateService\r\n ) { }\r\n\r\n public changeLanguage(lang: string): void {\r\n this.translate.use(lang);\r\n localStorage.setItem('language', lang);\r\n this.lang.emit(lang);\r\n }\r\n}\r\n","export const environment = {\r\n production: true,\r\n baseUrl: 'https://portal.amelica.org/ApiReaderIndex/resources/',\r\n // urlProject: 'http://206.189.224.97/pruebas/climateaction/'\r\n urlProject: 'http://semantic.redalyc.org/peace/'\r\n};\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule)\r\n .catch(err => console.error(err));\r\n"]}