DDBC logo

Pop-up Annotation Service

Introduction

The Pop-up Annotation Service is one of the core DDBC Authority Web Services. It provides web applications with a small embedded pop-up box which displays content retrieved from the DDBC Authority Database.

Below is an example of the Pop-up Annotation Service in action. Clicking on the text below will display a pop-up box containing the DDBC Authority Database information pertaining to the name given [攝摩騰]:

攝摩騰

Usage

In order to use the Pop-up Annotation Service, the following two steps are required.

Step 1: embed the JavaScript file at http://authority.dila.edu.tw/webwidget/popup.js into the html page (this can be either a static html file or a page dynamically generated from a web application). For example:

<html>
    <head>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
        <title>Authority Test</title>
        <script type="text/javascript" src="http://authority.dila.edu.tw/webwidget/popup.js"></script>
    </head>
    <body></body>
</html>

Step 2: Mark up time, person and place entities in the html page with DDBC Authority Tag Set. See examples below.


DDBC Authority Tag Set

The DDBC Authority Tag Set has been created based on the standard (x)html <span> tag and standard (w3c valid) attributes, for which a set of DDBC Authority values are specified.

The basic format of a DDBC Authority Tag is:

<span class="EntityClassName" title="id"></span>
Attribute Value(s) Description
class "iba:ddbc:authDate"
"iba:ddbc:authPerson"
"iba:ddbc:authPlace"

The type of the authority entity

Note: if you wish to style <span> elements using this class, you can do so provided you escape the colons (':') in the class name. e.g.