![]()
They located in the top-level BookReader directory in the git repository. The static files, such as BookReader.js and BookReader.css, are served from a web node. However, it is easy to run the BookReader on a single machine, serving both roles. #Internet archive bookreader codeThe BookReader code is designed to be split onto two kinds of different cluster nodes, web nodes and data nodes. scandata.zip – older variant of bookid_scandata.xml.scandata.xml – older variant of bookid_scandata.xml.bookid_scandata.xml – contains image size and page number information.bookid_meta.xml – contains bibliographic metadata about the book.bookid_jp2.zip – contains processed JPEG2000 images, these are scaled and displayed by the bookreader.bookid_abbyy.gz – contains OCR data XML format, used by full-text search.Here is a breakdown of how the files in an item would look for an item with the identifier bookid, which is located in the directory /1/items/bookid: An item has an identifier that is unique within the IA cluster. #Internet archive bookreader archiveThere are various other files that describe a book, and these files are grouped together in an Internet Archive item. #Internet archive bookreader zipThe Internet Archive stores book images in JPEG 2000 format, and the individual images are sequentially-numbered and stored in a ZIP file. #Internet archive bookreader how toHowever, what if your images are stored in a zip file, similar to how stores book images? We’ll walk you through how to set up your webserver (or cluster) to serve images using IA-style book data. Most likely, your book images are either static images in a directory, or they are served by an image server. These two scenarios should cover most use cases. Others have modified the IA BookReader to read image files from an image server, such as the Djatoka JPEG 2000 Image Server, instead of using static files on disk. You can change the location of the images to anywhere on your webserver, and you should be up and running! Once you download the BookReader source code to your webserver, you can load the BookReaderDemo, which will run the bookreader code with static images. The Internet Archive BookReader is designed so that you can run it on your own server. In an alma-proxy.js file, we first create an instance of the http-proxy package with some configuration options: var apiProxy = httpProxy.How to serve IA-style books from your own cluster It then proxies the response back to the client. The proxy intercepts any request made to a certain path and sends the request to Alma. Instead of a heavy web application which implements a controller for each API method, we’ve created a simply proxy in Node.js. We need a server side component which will retrieve the information from Alma and provide it to the book reader. The client side application cannot call the Alma APIs directly due to restrictions on cross origin web requests. The Alma book reader uses data retrieved from Alma REST API calls to populate the reader. The book reader is a client side JavaScript application which can operate entirely in the browser. ![]() This implementation utilizes support for client side population of the book details. The book reader was initially developed to support the rendering of images stored on the server. The IA Book Reader for Alma is an adaptation of the demo code available in the Book Reader Github repository. Examples of deployments of the book reader are available on their home page. Its basic features include single and two page views, zoom, and page progression. ![]() The Book Reader was developed by the Internet Archive to provide online access to scanned and digitized books. #Internet archive bookreader fullFor more information on the Alma Book Reader Viewer, see the online help or this blog post on using full text in Alma. You can still use this post to learn about how to set up custom viewers in Alma. The Book Reader Viewer is now included in Alma out-of-the box, so you don’t need to set it up as a custom viewer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |