forked from nrabinowitz/gapvis
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
146 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<h2 class="book-title"><%= title %></h2> | ||
<p><em>By <%= author %></em></p> | ||
<p> | ||
Published <%= printed %><!--, <%= pages.length %> pages --> · | ||
<a href="<%= viewonlink %>" target="_blank">View on <%= viewon %></a> | ||
<!-- Published <%= printed %>, <%= pages.length %> pages · --> | ||
<a href="<%= viewonlink %>" target="_blank"><%= viewon %></a> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// development settings | ||
API_ROOT = 'tests/api'; | ||
REPORT_URL = 'tests/api/flags/'; | ||
// API_DATA_TYPE = 'json'; | ||
// DEBUG = true; | ||
// disableChangeLink = true; | ||
// //if present and not null, makes a direct link isntead of a form. Looks for {token-id} | ||
// REPORT_BAD_TOKEN_URL = null; | ||
// //if present and not null, makes a direct link isntead of a form. Looks for {place-id} | ||
//REPORT_PROBLEM_PLACE_URL = 'http://gap2.alexandriaarchive.org/report/place-issues/{place-id}'; | ||
API_ROOT = 'http://gap2.alexandriaarchive.org'; | ||
REPORT_URL = 'http://gap2.alexandriaarchive.org/flags/'; | ||
API_DATA_TYPE = 'json'; | ||
DEBUG = false; | ||
// if present and not null, makes a direct link isntead of a form. Looks for {token-id} | ||
//REPORT_BAD_TOKEN_URL = "http://gap2.alexandriaarchive.org/report/token-issues/{token-id}"; | ||
VIEW_ON = "Search or download the full text via the Perseus Classical Library" | ||
VIEW_ON_LINK = function(uri, page){ | ||
// uri is the link to the book page on the origin repository | ||
// page is the page number (eg, 1, 3, -13) or reference (eg. 1.1, 4.5) | ||
// Implement here how to build a more detailed link | ||
|
||
// XXX This is the default (do nothing) | ||
//return uri; | ||
|
||
// XXX This is an example for Perseus repository | ||
// uri is something like http://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext%3A1999.01.0126 | ||
if(page.indexOf('.')!=-1){ | ||
page = page.split('.'); | ||
return uri + '%3Abook%3D' + page[0] + '%3Achapter%3D' + page[1] + '%3A'; | ||
}else{ | ||
return uri; | ||
} | ||
}; | ||
PLACE_THEME = "frequency"; // Supported values are 'frequency' and 'feature'. If the value is set to 'feature' then places should have a 'type' property set to one of the following values: "REGION", "SETTLEMENT", "NATURAL_FEATURE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<!doctype html> | ||
<html class="no-js" lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>HestiaVis: Visual Interface for Reading Herodotous' Histories</title> | ||
<meta name="description" content="HestiaVis: Visual Interface for Reading Herodotus' Histories."> | ||
<meta name="author" content="Hestia Project / Google Ancient Places Project"> | ||
|
||
<!--[if lt IE 9]> | ||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
|
||
<!-- STYLES --> | ||
|
||
<!-- SCRIPTS --> | ||
|
||
<!-- ANALYTICS --> | ||
|
||
<style> | ||
#logo-container a { | ||
background: url('http://hestia.open.ac.uk/wp-content/uploads/2013/09/Hestia_logo_180px.png') no-repeat; | ||
background-size: 100%; | ||
display:inline-block; | ||
width: 70px; | ||
margin: 0px 10px 0px 10px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="container"> | ||
<header> | ||
<!-- h1><a href="#">HestiaVis</a> <span class="beta">BETA</span></h1 --> | ||
<h1><div id="logo-container"><a href="http://hestia.open.ac.uk" target="_blank"> </a></div></h1> | ||
<nav> | ||
<a href="index.html">Home</a> · <a href="http://hestia.open.ac.uk/">About</a> · <a href="http://hestia.open.ac.uk/blog/">Blog</a> | ||
</nav> | ||
</header> | ||
<div id="app-view" role="main" class="clearfix"></div> | ||
<footer> | ||
GapVis (c) 2011 <a href="http://www.nickrabinowitz.com">Nick Rabinowitz</a> / <a href="http://googleancientplaces.wordpress.com/">Google Ancient Places</a>. Hosting by <a href="http://alexandriaarchive.org/">AlexandriaArchive.org</a>. Funding by <img src="images/google_logo.png" alt="Google">. | ||
</footer> | ||
</div> | ||
|
||
<div id="message-view"> | ||
<div class="alert"> | ||
<button class="close">×</button> | ||
<span></span> | ||
</div> | ||
</div> | ||
|
||
<div id="change-this-link"> | ||
<button class="btn" title="Report an Issue"><i class="glyphicon glyphicon-edit"></i></button> | ||
</div> | ||
|
||
<div id="change-this-form" class="modal"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<button class="close cancel">×</button> | ||
<h3>Report an Issue</h3> | ||
</div> | ||
<div class="modal-body"> | ||
<p>Is something wrong with this place reference? Let us know, so we can fix it!</p> | ||
<p> | ||
Reference: <span class="ref">"<span id="ctf-place-name"></span>" (<span id="ctf-book-title"></span><span class="pagenum">, | ||
p. <span id="ctf-page-id"></span></span>)</span> | ||
</p> | ||
<form> | ||
<label for="ctf-problem">What's wrong here?</label> | ||
<div> | ||
<textarea id="ctf-problem" name="note" rows="5"></textarea> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="modal-footer"> | ||
<button class="btn cancel">Cancel</button> | ||
<button class="btn btn-primary submit">Submit</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- TEMPLATES --> | ||
|
||
</body> | ||
</html> |