Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F62826717
constants.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, May 15, 22:32
Size
1 KB
Mime Type
text/x-java
Expires
Fri, May 17, 22:32 (2 d)
Engine
blob
Format
Raw Data
Handle
17694766
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
constants.ts
View Options
import {NavTreeDef} from './models/models';
export const CONTENT_VIEW_ROUTE: string = 'contentView';
export const DOCUMENTATION_ROUTE: string = 'doku';
export const HOME_ROUTE: string = 'home';
export const IMPRESSUM_ROUTE: string = 'impressum';
export const PROJECT_ROUTE: string = 'project';
export const NAVTREE_DEFS: NavTreeDef[] = [
{ id: 'manuscript',
idx: 0,
isActive: true,
label: 'Manuskripte',
itemQParam: 'manuscript',
entries: [],
apiDef: {
type: 0, // rdf
baseUrl: 'https://nietzsche.fuseki.services.dasch.swiss/nietzsche',//'http://fuseki.nie-ine.ch/nietzsche-rw/query',
dataArray: 'results.bindings',
query: 'manuscripts.rq',
mapping: { // maps the properties of the reponse to tha NavTabDef properties, which are displayed
id: 'manuscript.value', // Short id, iri in most cases
iri: 'manuscript.value', // iri
type: 'type.value',
label: 'title.value',
description: 'gsaSignature.value',
avatar: 'thumbImage.value'
}
}
}, {
id: 'page',
idx: 1,
isActive: false,
label: 'Seiten',
itemQParam: 'page',
entries: [],
apiDef: {
type: 0, // rdf
baseUrl: 'https://nietzsche.fuseki.services.dasch.swiss/nietzsche',//'http://fuseki.nie-ine.ch/nietzsche-rw/query',
dataArray: 'results.bindings',
query: 'getPageData.rq',
mapping: {
id: 'page.value', // Short id, iri in most cases
iri: 'page.value', // iri
label: 'pageNumber.value',
thumb: 'thumb.value',
idx: 'pageNumber.value',
svg: 'svgUrl.value',
}
}
}
];
Event Timeline
Log In to Comment