diff --git a/app/getannot.py b/app/getannot.py
index 78fd698..c24b522 100644
--- a/app/getannot.py
+++ b/app/getannot.py
@@ -2,28 +2,37 @@
import requests
import json
-
-
-# This script demonstrates how to query annotations for a particular URL using the hypothes.is API. An API key is required.
-# The end result of this script is a Python dictionary with annotation data in it. Top save to csv or other format, further parsing would be required
def get_annotations():
- KEY = "6879-GqSSbtmCoLUb8u9f6Gxh6DuScIkFKj321HSYzYZnjxc"
- # here is the viewer pdf from each pdf
- URL = "https://monoskop.org/Monoskop"
+ KEY = "6879-rwfbfodYqhBn2OK2ODnNGkzlWUa4bPCoJi2U8pgTYHg"
- #a dictionary containing necessary http headers
headers = {
- "Host": "hypothes.is",
+ "Host": "xppl",
"Accept": "application/json",
+ "Content-Type": "application/json",
"Authorization": "Bearer %s" % KEY
}
- base_url = "https://hypothes.is/api/search"
-
- search_url = "".join([base_url, "?uri=", URL])
+ search_url = "".join("http://localhost:5000/api/search")
r = requests.get(search_url, headers=headers)
- #data is a python dictionary
- return json.loads(r.text)
+ data = json.loads(r.text)
+ return data
+
+ # extract=[]
+ # for item in data['rows']:
+ # # if 'exact' in item['target'][0]['selector'][2]:
+ # if 'selector' in item['target'][0]:
+ # if len(item['target'][0]['selector']) > 2:
+ # extract.append('extract:' + (item['target'][0]['selector'][2]['exact']))
+ # extract.append('annotation:' + item['text'])
+ # extract.append ('-----------')
+ # else:
+ # extract.append('annotation:' + item['text'])
+ # extract.append ('-----------')
+ # return extract
+
+
+
+
diff --git a/app/static/img/xppl-logo.svg b/app/static/img/xppl-logo.svg
new file mode 100755
index 0000000..0286d62
--- /dev/null
+++ b/app/static/img/xppl-logo.svg
@@ -0,0 +1,70 @@
+
+
+
+
diff --git a/app/static/viewer/web/viewer.css b/app/static/viewer/web/viewer.css
index 153c93b..3a4212d 100755
--- a/app/static/viewer/web/viewer.css
+++ b/app/static/viewer/web/viewer.css
@@ -178,7 +178,7 @@
html {
height: 100%;
/* Font size is needed to make the activity bar the correct size. */
- font-size: 10px;
+ font-size: 18px;
}
body {
@@ -1613,15 +1613,15 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * {
background: none repeat scroll 0 0 yellow;
}
#PDFBug .stats {
- font-family: courier;
- font-size: 10px;
+ font-family: Archivo Narrow;
+ font-size: 18px;
white-space: pre;
}
#PDFBug .stats .title {
font-weight: bold;
}
#PDFBug table {
- font-size: 10px;
+ font-size: 18px;
}
#viewer.textLayer-visible .textLayer > div,
diff --git a/app/static/viewer/web/viewer.html b/app/static/viewer/web/viewer.html
index 28f3a0b..9d75574 100755
--- a/app/static/viewer/web/viewer.html
+++ b/app/static/viewer/web/viewer.html
@@ -413,14 +413,103 @@ http://sourceforge.net/adobe/cmap/wiki/License/
-
-
-
+ } -->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+