Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
41875e6f
Commit
41875e6f
authored
Nov 26, 2014
by
Gergely Ujvari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Annotator Pdf plugin to typed-packaging@95b7a09dd87be2fa637973d0b0cad55a4b345af3
Fix #1661
parent
02ca6c59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
annotator.pdf.js
h/static/scripts/vendor/annotator.pdf.js
+13
-5
No files found.
h/static/scripts/vendor/annotator.pdf.js
View file @
41875e6f
// Generated by CoffeeScript 1.6.3
/*
** Annotator 1.2.6-dev-
fcdf1ea
** Annotator 1.2.6-dev-
95b7a09
** https://github.com/okfn/annotator/
**
** Copyright 2012 Aron Carroll, Rufus Pollock, and Nick Stenning.
** Dual licensed under the MIT and GPLv3 licenses.
** https://github.com/okfn/annotator/blob/master/LICENSE
**
** Built at: 2014-1
0-25 11:58:09
Z
** Built at: 2014-1
1-26 22:32:31
Z
*/
...
...
@@ -261,16 +261,24 @@
};
PDF
.
prototype
.
_metadata
=
function
()
{
return
{
var
documentURI
,
metadata
;
metadata
=
{
link
:
[
{
href
:
this
.
_getDocumentURI
()
},
{
href
:
this
.
_getFingerPrintURI
()
}
],
title
:
this
.
_getTitle
()
};
documentURI
=
this
.
_getDocumentURI
();
if
(
documentURI
.
toLowerCase
().
indexOf
(
'file://'
)
===
0
)
{
metadata
.
filename
=
new
URL
(
documentURI
).
pathname
.
split
(
'/'
).
pop
();
}
else
{
metadata
.
link
.
push
({
href
:
documentURI
});
}
return
metadata
;
};
PDF
.
prototype
.
getMetaData
=
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment