diff --git a/nietzsche-beta-app/package.json b/nietzsche-beta-app/package.json index b551fce..7cddba8 100644 --- a/nietzsche-beta-app/package.json +++ b/nietzsche-beta-app/package.json @@ -1,60 +1,60 @@ { "name": "nietzsche-app-beta", - "version": "0.9.4.0", + "version": "0.9.4.1", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "compodoc": "./node_modules/.bin/compodoc -p tsconfig.app.json", "sparqljs": "./node_modules/sparqljs/sparql.js" }, "private": true, "dependencies": { "@angular/animations": "~8.2.14", "@angular/cdk": "~8.2.3", "@angular/common": "~8.2.14", "@angular/compiler": "~8.2.14", "@angular/core": "~8.2.14", "@angular/forms": "~8.2.14", "@angular/material": "^8.2.3", "@angular/platform-browser": "~8.2.14", "@angular/platform-browser-dynamic": "~8.2.14", "@angular/router": "~8.2.14", "@ctrl/ngx-codemirror": "^5.0.0", "@types/rdf-js": "^2.0.11", "codemirror": "^5.62.0", "lodash": "^4.17.20", "n3": "^1.10.0", "ngx-csv": "^0.3.2", "ngx-mat-standoff-markup": "^0.7.3", "rdfjs": "^0.0.1", "rxjs": "~6.4.0", "sparqljs": "^3.0.1", "tslib": "^1.10.0", "zone.js": "~0.9.1" }, "devDependencies": { "@angular-devkit/build-angular": "^0.803.25", "@angular/cli": "~8.3.24", "@angular/compiler-cli": "~8.2.14", "@angular/language-service": "~8.2.14", "@types/jasmine": "~3.3.8", "@types/jasminewd2": "~2.0.3", "@types/node": "~8.9.4", "codelyzer": "^5.0.0", "jasmine-core": "~3.4.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.1.0", "karma-chrome-launcher": "~2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0", "protractor": "~5.4.0", "ts-node": "~7.0.0", "tslint": "~5.15.0", "typescript": "~3.5.3" } } diff --git a/nietzsche-beta-app/src/app/tln-edition/tln-manuscript-view/tln-leaf-description.component.ts b/nietzsche-beta-app/src/app/tln-edition/tln-manuscript-view/tln-leaf-description.component.ts index e07687c..fa77977 100644 --- a/nietzsche-beta-app/src/app/tln-edition/tln-manuscript-view/tln-leaf-description.component.ts +++ b/nietzsche-beta-app/src/app/tln-edition/tln-manuscript-view/tln-leaf-description.component.ts @@ -1,48 +1,47 @@ import { Component, OnInit, Input } from '@angular/core'; import { Router, ActivatedRoute, Params} from '@angular/router'; import { DataHandler } from '../data_handler'; import { TLN_VIEWER_ROUTE, TLN_PAGE_PARAM, TLN_CONTEXT_VIEW_PARAM, TLN_VIEW_OPTION_PARAM, VIEW_OPTIONS } from '../constants'; import { ReconstructedKonvolut, TlnExtManuscript, ManuscriptEarlierDescription, ManuscriptDescription, ManuscriptLeaf } from '../datatypes/manuscript'; import { TlnPageWithFaksimile } from '../datatypes/page'; import { TlnCacheQueryService } from '../services'; import { Mapping } from '../route-reader'; import { RouteUpdater } from '../route-updater'; @Component({ selector: 'tln-leaf-description', templateUrl: './tln-leaf-description.component.html', styleUrls: ['./tln-leaf-description.component.css'] }) export class TlnLeafDescriptionComponent extends RouteUpdater implements OnInit { @Input() current_manuscript: TlnExtManuscript; @Input() manuscriptLeaf: ManuscriptLeaf; dataHandler: DataHandler = new DataHandler(this); pages: TlnPageWithFaksimile[] = []; current_page_iri: string; contextView: string; viewMode: string; protected currentRoute: string = TLN_VIEWER_ROUTE; protected mapping: Mapping = { contextView: { param: TLN_CONTEXT_VIEW_PARAM, type: "string" }, current_page_iri: { param: TLN_PAGE_PARAM, type: "string" }, viewMode: { param: TLN_VIEW_OPTION_PARAM, type: "string" }, } constructor(private tlnQueryService: TlnCacheQueryService, protected activatedRoute: ActivatedRoute, protected router: Router ) { super(router, activatedRoute); } ngOnInit() { this.dataHandler.addHandler('pages', { 'handler': TlnPageWithFaksimile }); this.dataHandler.setQueryService(this.tlnQueryService); if (this.manuscriptLeaf != undefined && this.manuscriptLeaf != null){ this.dataHandler.getData('pages', this.manuscriptLeaf.id); } } private navigate(pageIri: string){ this.current_page_iri = pageIri; this.contextView = TLN_PAGE_PARAM; - this.viewMode = VIEW_OPTIONS.FAKSIMILE; this.updateParams(); } }