Skip to content

xtai-umd/mirador-static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mirador-static

Current Mirador version: v2.1.2-umd-1.0.

Running this version

To prevent cross-origin requests, please clone this repo to a local web server and run via HTTP.

A simple local web server: https://www.browsersync.io/.

If using browsersync, run browser-sync start --server and visit: http://localhost:3000/mirador.html.

Testing dynamic manifest:

Configure annotation styles

annotationTypeStyles now supports customizable annotation styles, hovering styles, and ability to show or hide annotation tooltips.

Annotation with @type: umd:Hits, umd:Article, umd:ArticleSelected, umd:Line will have different appearance according to the seetings of 'annotationTypeStyles' in site.js:

'annotationTypeStyles': {
  'umd:Article': {
    'strokeColor': 'rgba(255, 255, 255, 0)',
    'fillColor': 'green',
    'fillColorAlpha': 0.08,
    'hoverColor': 'rgba(255, 255, 255, 0.2)',
    'hoverFillColor': 'green',
    'hoverFillColorAlpha': 0.4,
    'hideTooltip': true
  },
  ...
}

An example oa:annotation:

{
  "@id": "P1_TL00160",
  "@type": [
    "oa:Annotation",
    "umd:Hits"
  ],
  "resource": [
    {
      "@type": "cnt:ContentAsText",
      "format": "text/plain",
      "chars": "College Park"
    }
  ],
  "on": {
    "@type": "oa:SpecificResource",
    "selector": {
      "@type": "oa:FragmentSelector",
      "value": "xywh=1536,5408,260,33"
    },
    "full": "0002.xml"
  },
  "motivation": "sc:painting"
},

License

See the LICENSE file for license rights and limitations (Apache 2.0).