bookreader.git
11 years agoremove double parent directory
Dobrica Pavlinusic [Sun, 24 Jun 2012 11:26:57 +0000 (13:26 +0200)]
remove double parent directory

11 years agouse .. for link to return to parent directory
Dobrica Pavlinusic [Sun, 24 Jun 2012 11:26:07 +0000 (13:26 +0200)]
use .. for link to return to parent directory

11 years agoadded etag
Dobrica Pavlinusic [Sun, 24 Jun 2012 10:16:09 +0000 (12:16 +0200)]
added etag

11 years agoadded share
Dobrica Pavlinusic [Sat, 23 Jun 2012 23:19:21 +0000 (01:19 +0200)]
added share

11 years agobook url and Read button
Dobrica Pavlinusic [Sat, 23 Jun 2012 23:19:12 +0000 (01:19 +0200)]
book url and Read button

11 years agoshow git scans
Dobrica Pavlinusic [Sat, 23 Jun 2012 23:18:45 +0000 (01:18 +0200)]
show git scans

11 years agotweaks for missing pages
Dobrica Pavlinusic [Sat, 23 Jun 2012 22:56:29 +0000 (00:56 +0200)]
tweaks for missing pages

11 years agoadded BookReader html and javascript
Dobrica Pavlinusic [Sat, 23 Jun 2012 22:47:44 +0000 (00:47 +0200)]
added BookReader html and javascript

11 years agorename variables dir -> path
Dobrica Pavlinusic [Sat, 23 Jun 2012 21:07:17 +0000 (23:07 +0200)]
rename variables dir -> path

11 years agoresize images using Graphics::Magick
Dobrica Pavlinusic [Sat, 23 Jun 2012 21:06:27 +0000 (23:06 +0200)]
resize images using Graphics::Magick

11 years agosimple Plack::App::Bookreader based on Directory
Dobrica Pavlinusic [Sat, 23 Jun 2012 18:36:45 +0000 (20:36 +0200)]
simple Plack::App::Bookreader based on Directory

11 years agosimple plack server to show BookReaderDemo
Dobrica Pavlinusic [Sat, 23 Jun 2012 14:09:08 +0000 (16:09 +0200)]
simple plack server to show BookReaderDemo

12 years agoAdd ppi (pixels per inch) to BookReader metadata API
Michael Ang [Tue, 10 Jan 2012 00:48:00 +0000 (00:48 +0000)]
Add ppi (pixels per inch) to BookReader metadata API

12 years ago"preview" uses marked cover for books >= 1923. "cover0" returns first marked cover...
Michael Ang [Mon, 5 Dec 2011 20:01:30 +0000 (20:01 +0000)]
"preview" uses marked cover for books >= 1923. "cover0" returns first marked cover or 404

12 years agoCloses #14, closes #15. Fix recovery path used when jp2 is requested at less than...
Michael Ang [Mon, 7 Nov 2011 21:53:46 +0000 (21:53 +0000)]
Closes #14, closes #15.  Fix recovery path used when jp2 is requested at less than the mininum reduction level.

12 years agoIA-specific: Patch from Tracey for new way to get item metadata
Michael Ang [Wed, 26 Oct 2011 19:15:32 +0000 (19:15 +0000)]
IA-specific: Patch from Tracey for new way to get item metadata

12 years agoTmp file cleanup code
Michael Ang [Wed, 26 Oct 2011 18:44:13 +0000 (18:44 +0000)]
Tmp file cleanup code

12 years agoIA-specific. Make sure temporary files are unlinked on exit, e.g. if client drops...
Michael Ang [Wed, 19 Oct 2011 23:18:14 +0000 (23:18 +0000)]
IA-specific. Make sure temporary files are unlinked on exit, e.g. if client drops connection.

12 years agoWrite to fast tmp file instead of overly clever "stream if successful" code path
Michael Ang [Thu, 13 Oct 2011 23:27:59 +0000 (23:27 +0000)]
Write to fast tmp file instead of overly clever "stream if successful" code path

12 years agoSuppress warnings from 'convert'. Was confusing streaming output (deadlock since...
Michael Ang [Wed, 12 Oct 2011 19:13:51 +0000 (19:13 +0000)]
Suppress warnings from 'convert'.  Was confusing streaming output (deadlock since we assume output on stderr means there will be no output on stdout).

12 years agoAdd files related to Internet Archive's implementation of fulltext search
Michael Ang [Fri, 16 Sep 2011 00:53:52 +0000 (00:53 +0000)]
Add files related to Internet Archive's implementation of fulltext search

12 years agoBump version number
Michael Ang [Wed, 7 Sep 2011 23:06:06 +0000 (23:06 +0000)]
Bump version number

12 years agoInstead of defaulting Android devices to embedded UI (phone was assumed) give them...
Michael Ang [Tue, 6 Sep 2011 23:48:38 +0000 (23:48 +0000)]
Instead of defaulting Android devices to embedded UI (phone was assumed) give them default full UI.  See https://bugs.launchpad.net/bookreader/+bug/782301

12 years agoFix tyPo
Michael Ang [Tue, 6 Sep 2011 23:44:51 +0000 (23:44 +0000)]
Fix tyPo

12 years agoRemove CVS revision number (since we're using git as authoritative). Fixes https...
Michael Ang [Thu, 1 Sep 2011 00:02:37 +0000 (00:02 +0000)]
Remove CVS revision number (since we're using git as authoritative). Fixes https://bugs.launchpad.net/bookreader/+bug/513465

12 years agoNavigation slider now shows e.g. 1/32 instead of 0/32. Fixes https://bugs.launchpad...
Michael Ang [Wed, 31 Aug 2011 22:12:48 +0000 (22:12 +0000)]
Navigation slider now shows e.g. 1/32 instead of 0/32.  Fixes https://bugs.launchpad.net/bookreader/+bug/831515

12 years agoMerge commit '614f54b' into cleanup
Michael Ang [Wed, 31 Aug 2011 22:03:33 +0000 (22:03 +0000)]
Merge commit '614f54b' into cleanup

12 years agoChange dragscrollable.js to add option to scroll window rather than the element....
Michael Ang [Wed, 31 Aug 2011 21:52:48 +0000 (21:52 +0000)]
Change dragscrollable.js to add option to scroll window rather than the element. Used to work around browser weirdness on FF with html5 doctype.

12 years agoTreat jpx files as jp2.
Michael Ang [Wed, 31 Aug 2011 21:51:25 +0000 (21:51 +0000)]
Treat jpx files as jp2.

12 years agofix bugs
shenzhuxi [Wed, 17 Aug 2011 10:43:28 +0000 (18:43 +0800)]
fix bugs
https://bugs.launchpad.net/bookreader/+bug/768698
https://bugs.launchpad.net/bookreader/+bug/743655

12 years agoDon't set ol-host cookie if value not passed in
Michael Ang [Fri, 1 Jul 2011 17:33:01 +0000 (17:33 +0000)]
Don't set ol-host cookie if value not passed in

12 years agoBump version number
Michael Ang [Fri, 1 Jul 2011 17:17:05 +0000 (17:17 +0000)]
Bump version number

12 years agoProxy pass through
Michael Ang [Wed, 29 Jun 2011 22:20:09 +0000 (22:20 +0000)]
Proxy pass through

12 years agobump version number
rajbot [Wed, 22 Jun 2011 22:52:48 +0000 (22:52 +0000)]
bump version number

12 years agoworkaround buggy soundManger2 callbacks on FF5 and IE9
rajbot [Wed, 22 Jun 2011 22:50:06 +0000 (22:50 +0000)]
workaround buggy soundManger2 callbacks on FF5 and IE9

12 years agoFix for images being returned overly large
Michael Ang [Fri, 27 May 2011 20:52:10 +0000 (20:52 +0000)]
Fix for images being returned overly large

13 years agoBump version number
Michael Ang [Fri, 27 May 2011 20:34:43 +0000 (20:34 +0000)]
Bump version number

13 years agoUpdate tests
Michael Ang [Thu, 26 May 2011 00:06:55 +0000 (00:06 +0000)]
Update tests

13 years agoSupport decimal percentage values for width/height in all cases. If the scale has...
Michael Ang [Thu, 26 May 2011 00:01:53 +0000 (00:01 +0000)]
Support decimal percentage values for width/height in all cases. If the scale has an exact match for pow2 reduce, use that pow2 reduce (instead of the next larger one)

13 years agoUnit tests for proportional "within width/height" scaling
Michael Ang [Wed, 25 May 2011 23:36:31 +0000 (23:36 +0000)]
Unit tests for proportional "within width/height" scaling

13 years agoIf both width and height are specified (but no x or y) then we take the full image...
Michael Ang [Wed, 25 May 2011 23:20:23 +0000 (23:20 +0000)]
If both width and height are specified (but no x or y) then we take the full image and scale it proportionally within the requested width/height box

13 years agoMerge branch 'leaf_url' into image_region
Michael Ang [Wed, 25 May 2011 01:30:38 +0000 (01:30 +0000)]
Merge branch 'leaf_url' into image_region

13 years agoMore tests
Michael Ang [Wed, 25 May 2011 01:29:59 +0000 (01:29 +0000)]
More tests

13 years agoAnother image test
Michael Ang [Wed, 25 May 2011 00:26:09 +0000 (00:26 +0000)]
Another image test

13 years agoAdd rotation support for non-jp2 images
Michael Ang [Mon, 23 May 2011 23:18:06 +0000 (23:18 +0000)]
Add rotation support for non-jp2 images

13 years agoUpdate unit tests
Michael Ang [Mon, 23 May 2011 17:14:14 +0000 (17:14 +0000)]
Update unit tests

13 years agoUnit test for getting page region. Fix bug in br.getPageRegionURI
Michael Ang [Fri, 20 May 2011 22:57:41 +0000 (22:57 +0000)]
Unit test for getting page region. Fix bug in br.getPageRegionURI

13 years agoNew function getRegionURI to retrieve partial page images
Michael Ang [Thu, 19 May 2011 21:35:05 +0000 (21:35 +0000)]
New function getRegionURI to retrieve partial page images

13 years agoHandling of non-jp2 image formats using ImageMagick's convert
Michael Ang [Wed, 18 May 2011 01:41:11 +0000 (01:41 +0000)]
Handling of non-jp2 image formats using ImageMagick's convert

13 years agoCan now access by leaf number in URL, e.g. http://www.archive.org/stream/itemid#page...
Michael Ang [Thu, 12 May 2011 23:16:55 +0000 (23:16 +0000)]
Can now access by leaf number in URL, e.g. archive.org/stream/itemid#page/leaf5.  See https://bugs.launchpad.net/bookreader/+bug/781945

13 years agoProgress on image region support
Michael Ang [Thu, 12 May 2011 23:14:50 +0000 (23:14 +0000)]
Progress on image region support

13 years agoFunction to get region params as float
Michael Ang [Thu, 5 May 2011 00:09:39 +0000 (00:09 +0000)]
Function to get region params as float

13 years agoCalculate region in source image
Michael Ang [Mon, 2 May 2011 23:35:18 +0000 (23:35 +0000)]
Calculate region in source image

13 years agoPatch from Tracey
Michael Ang [Thu, 21 Apr 2011 18:04:31 +0000 (18:04 +0000)]
Patch from Tracey

r33689 | tracey | 2011-03-01 03:56:53 +0000 (Tue, 01 Mar 2011) | 1 line

split() is going away in lucid+

13 years agoBump version number
Michael Ang [Thu, 21 Apr 2011 17:49:20 +0000 (17:49 +0000)]
Bump version number

13 years agoRead default values out of bookreader-defaults in meta.xml
Michael Ang [Mon, 18 Apr 2011 21:38:45 +0000 (21:38 +0000)]
Read default values out of bookreader-defaults in meta.xml

13 years agoBump version number to 3.0.4
rajbot [Tue, 8 Mar 2011 00:16:44 +0000 (00:16 +0000)]
Bump version number to 3.0.4

13 years agoFix dev typo
Michael Ang [Tue, 1 Mar 2011 01:27:08 +0000 (01:27 +0000)]
Fix dev typo

13 years agoFix incorrect display of thumbnails. Patch contributed by Edu Hackenitz (thanks!)
Michael Ang [Tue, 1 Mar 2011 01:23:23 +0000 (01:23 +0000)]
Fix incorrect display of thumbnails.  Patch contributed by Edu Hackenitz (thanks!)

13 years agoBump version number to 3.0.3
rajbot [Tue, 15 Feb 2011 21:34:22 +0000 (21:34 +0000)]
Bump version number to 3.0.3

13 years agoMerge branch 'master' of git@github.com:openlibrary/bookreader into browserlending
rajbot [Tue, 15 Feb 2011 21:23:08 +0000 (21:23 +0000)]
Merge branch 'master' of git@github.com:openlibrary/bookreader into browserlending

13 years agouse brConfig isAdmin flag to trigger QA mode.
rajbot [Tue, 8 Feb 2011 23:50:40 +0000 (23:50 +0000)]
use brConfig isAdmin flag to trigger QA mode.

13 years agoMerge branch 'browserlending' of git@github.com:openlibrary/bookreader into browserle...
rajbot [Tue, 8 Feb 2011 22:49:33 +0000 (22:49 +0000)]
Merge branch 'browserlending' of git@github.com:openlibrary/bookreader into browserlending

13 years agoallow admins to QA in-browser loans
rajbot [Tue, 8 Feb 2011 22:49:06 +0000 (22:49 +0000)]
allow admins to QA in-browser loans

13 years agoBump version number
Michael Ang [Mon, 7 Feb 2011 22:55:12 +0000 (22:55 +0000)]
Bump version number

13 years agoRemove use of global br object in Open Library record callbacks. Fix issue on IE8...
Michael Ang [Mon, 7 Feb 2011 22:46:40 +0000 (22:46 +0000)]
Remove use of global br object in Open Library record callbacks.  Fix issue on IE8 with bad 'this'.

13 years agoUse empty string instead of null to unset display: block that is added to image eleme...
Michael Ang [Fri, 4 Feb 2011 20:04:52 +0000 (20:04 +0000)]
Use empty string instead of null to unset display: block that is added to image elements as part of animation.  null was causing IE8 to barf.

13 years agoA little more style
Michael Ang [Wed, 2 Feb 2011 23:19:55 +0000 (23:19 +0000)]
A little more style

13 years agoAfter page flip, clear display:block from element style.
rajbot [Tue, 1 Feb 2011 22:15:38 +0000 (22:15 +0000)]
After page flip, clear display:block from element style.
This is automatically added by jquery, but interferes with our print css
for in-browser loans.

13 years agoSuggest user refresh the BookReader if we lost the network connection.
Michael Ang [Tue, 1 Feb 2011 01:41:50 +0000 (01:41 +0000)]
Suggest user refresh the BookReader if we lost the network connection.

13 years agoDisable drag/drop of images of protected books on IE
Michael Ang [Tue, 1 Feb 2011 00:53:58 +0000 (00:53 +0000)]
Disable drag/drop of images of protected books on IE

13 years agoSend archive.org backed access token to openlibrary when polling for loan authorization.
Michael Ang [Tue, 1 Feb 2011 00:53:19 +0000 (00:53 +0000)]
Send archive.org backed access token to openlibrary when polling for loan authorization.

13 years agoDisable image right-click for protected books
Michael Ang [Tue, 1 Feb 2011 00:03:23 +0000 (00:03 +0000)]
Disable image right-click for protected books

13 years agoFor protected books, disable printing of pages.
Michael Ang [Mon, 31 Jan 2011 23:22:42 +0000 (23:22 +0000)]
For protected books, disable printing of pages.

13 years agodelete loan cookies when book is returned from within the browser
rajbot [Sat, 29 Jan 2011 00:28:10 +0000 (00:28 +0000)]
delete loan cookies when book is returned from within the browser

13 years agoUse live site, not dev host
Michael Ang [Fri, 28 Jan 2011 23:00:08 +0000 (23:00 +0000)]
Use live site, not dev host

13 years agoFix typo in CSS
Michael Ang [Fri, 28 Jan 2011 22:54:26 +0000 (22:54 +0000)]
Fix typo in CSS

13 years agoFor old loans, the uuid is actually a text string, not a uuid.
rajbot [Fri, 28 Jan 2011 21:26:35 +0000 (21:26 +0000)]
For old loans, the uuid is actually a text string, not a uuid.

13 years agoAdd loan token when polling
Michael Ang [Fri, 28 Jan 2011 02:54:46 +0000 (02:54 +0000)]
Add loan token when polling

13 years agoAllow GET or POST
Michael Ang [Fri, 28 Jan 2011 02:52:38 +0000 (02:52 +0000)]
Allow GET or POST

13 years agosanitize inputs
rajbot [Fri, 28 Jan 2011 01:53:17 +0000 (01:53 +0000)]
sanitize inputs

13 years agoBookReaderAuth.php, which sets loan related cookies from values passed from OL, so...
Michael Ang [Thu, 27 Jan 2011 23:33:15 +0000 (23:33 +0000)]
BookReaderAuth.php, which sets loan related cookies from values passed from OL, so that they can be passed back to OL/ia_auth for loan validation

13 years agoSend item access cookie to OL for validation
Michael Ang [Thu, 27 Jan 2011 23:31:56 +0000 (23:31 +0000)]
Send item access cookie to OL for validation

13 years agoUse 10 minute expiry in OLAuth cookies, refresh br-loan cookie if needed.
rajbot [Wed, 26 Jan 2011 23:40:06 +0000 (23:40 +0000)]
Use 10 minute expiry in OLAuth cookies, refresh br-loan cookie if needed.

13 years agoif loanUUID is set, add it to OLAuth authUrl
rajbot [Tue, 25 Jan 2011 01:01:15 +0000 (01:01 +0000)]
if loanUUID is set, add it to OLAuth authUrl

13 years agoShow return button even when title is long. Add link "On openlibrary.org" when the...
Michael Ang [Sat, 15 Jan 2011 00:42:39 +0000 (00:42 +0000)]
Show return button even when title is long.  Add link "On openlibrary.org" when the book has an OL record.

13 years agoMore styling for error messages.
Michael Ang [Sat, 15 Jan 2011 00:19:07 +0000 (00:19 +0000)]
More styling for error messages.

13 years agoBetter error handling messages for loan auth.
Michael Ang [Fri, 14 Jan 2011 21:51:43 +0000 (21:51 +0000)]
Better error handling messages for loan auth.

13 years agoAdd "Return this book" under the book's title if it's a borrowed book
Michael Ang [Fri, 14 Jan 2011 00:49:25 +0000 (00:49 +0000)]
Add "Return this book" under the book's title if it's a borrowed book

13 years agoUpdate message if book has not been indexed yet. IA-specific.
Michael Ang [Fri, 7 Jan 2011 19:11:57 +0000 (19:11 +0000)]
Update message if book has not been indexed yet.  IA-specific.

13 years agoMerge branch 'newui' of git@github.com:rajbot/bookreader into newui
rajbot [Fri, 10 Dec 2010 00:17:33 +0000 (00:17 +0000)]
Merge branch 'newui' of git@github.com:rajbot/bookreader into newui

13 years agoupdate standalone demo with newui changes
rajbot [Fri, 10 Dec 2010 00:15:42 +0000 (00:15 +0000)]
update standalone demo with newui changes

13 years agoBookReader 3.0! Flippy -> GnuBook -> BookReader
Michael Ang [Wed, 8 Dec 2010 23:30:55 +0000 (23:30 +0000)]
BookReader 3.0!  Flippy -> GnuBook -> BookReader

13 years agoMerge commit 'rajbot/newui' into newui
Michael Ang [Wed, 8 Dec 2010 23:17:50 +0000 (23:17 +0000)]
Merge commit 'rajbot/newui' into newui

13 years agoDisable info and share buttons on iPad with Safari version <= 531. Works around...
Michael Ang [Wed, 8 Dec 2010 23:16:52 +0000 (23:16 +0000)]
Disable info and share buttons on iPad with Safari version <= 531.  Works around bug with colorbox locking up that browser.  See https://bugs.launchpad.net/bookreader/+bug/686220

13 years agofix mouse handlers on IE8.
rajbot [Wed, 8 Dec 2010 20:53:55 +0000 (20:53 +0000)]
fix mouse handlers on IE8.

13 years agoUpdate supported browser message
Michael Ang [Tue, 7 Dec 2010 00:25:16 +0000 (00:25 +0000)]
Update supported browser message

13 years agoRemove "Back to" text in title bar since "where we came from" detection not yet imple...
Michael Ang [Mon, 6 Dec 2010 21:28:58 +0000 (21:28 +0000)]
Remove "Back to" text in title bar since "where we came from" detection not yet implemented.

13 years agoServe old version of the BookReader for IE7 on archive.org. Sorry, can't carry you...
Michael Ang [Sat, 4 Dec 2010 01:02:07 +0000 (01:02 +0000)]
Serve old version of the BookReader for IE7 on archive.org.  Sorry, can't carry you any further!

13 years agoMake embed frame width/height more easily adjustable
Michael Ang [Fri, 3 Dec 2010 19:45:49 +0000 (19:45 +0000)]
Make embed frame width/height more easily adjustable