openlibrary/bookreader — pull request #23 by demery (2012-06-27 19:50:16+00:00)
Title: Demo BookReaderJSSimple.js change to return correct pages sides for RTL books

The demo script `BookReaderDemo/BookReaderJSSimple.js` has code to handle 2-up index spreads for RTL books, but 2-up pages display incorrectly because `getPageSide()` always returns `L` for odd pages and `R` for odd pages. This commit corrects this, reversing the behavior when `br.pageProgression == 'rl'`.