[greenstone-users] Putting ebooks in a Greenstone Library

From Greenstone Team
DateThu Sep 1 15:32:14 2011
Subject [greenstone-users] Putting ebooks in a Greenstone Library
In-Reply-To (1314737185-85926-YahooMailNeo-web113804-mail-gq1-yahoo-com)
Hi Andrew,

While there aren't any *custom* plugins for these ebook formats, there
is a *generic* plugin that will allow you to include these files in your
library. It is called the UnknownPlugin and its use is demonstrated in
the Greenstone tutorial at
http://wiki.greenstone.org/wiki/gsdoc/tutorial/en/multimedia_collection_build.htm

Go down to the section "Using UnknownPlugin". It shows how Greenstone
can work with MIDI files without a specialised MIDIPlugin. You will want
to do something similar to include your ebook files in the collection.


In that part of the tutorial it speaks of MIME-types. You may wish to
specify MIME type information for your ebook formats too. It's my
understanding that the MIME type indicates what type of file (content) a
datastream is, which information I think is used to help in transfer
(downloading) of files over the web.

To discover the "MIME type" of the particular types of files you are
working with, I suggest searching Google.

1. epub files:
http://webdesign.about.com/od/epub/a/what-is-the-epub-mimetype-file.htm
says that "application/epub+zip" is the MIME type for .epub files, while
http://en.wikipedia.org/wiki/EPUB mentions the mimetypes of various
components in an epub file.

2. mobipocket files:

- for mobipocket files with the extension .mobi, the MIME type is:
application/x-mobipocket-ebook
as per http://oldbugs.calibre-ebook.com/ticket/3869

- for .prc mobipocket files, the MIME type is mentioned as:
application/x-mobipocket
at http://www.filesuffix.com/extension/prc.html

Once you've finished building your collection with .epub and .mobi
files, test out that the downloads of the original files work. You
should be able to save these files and open them up again in your usual
reader.

Regards,
Anupama

Andrew Watson wrote:
> Hello,
> I was wanting to include some ebooks (.mobi and .epub files) in a
> Greenstone Library. It didn't let me and I couldn't find any related
> plugins. Is there a way to put ebooks in the library that I missed?
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>