Extension:OfflineImportLexicon

The OfflineImportLexicon is an extension for Semantic MediaWiki developed within the research project SMW-CorA and funded by the DFG that allows you to add book-like structure to your wiki. Entities are: It requires Semantic MediaWiki to work.
 * Book (Lexicon)
 * Volume
 * Article (Lemma)
 * Page as images.

Download
You can download the extension directly from the MediaWiki source code repository. You can get:


 * One of the extensions tags (click the tag number and then "snapshot"). Tags tend to be stable.
 * A snapshot of the latest code. This might be unstable.

After you've got the code, save it into the extensions/OfflineImportLexicon directory of your wiki.

If you are familiar with git and have shell access to your server, you can obtain the extension, with all its tags and branches, as follows: cd extensions git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/OfflineImportLexicon.git

Installation

 * 1) The downloaded file will contain a folder called something like OfflineImportLexicon-master-80755c2. Rename it to OfflineImportLexicon and put it into your wikis extension (/wiki/extensions/) folder.
 * 2) Include the following line in your LocalSettings.php :

Setup
After the installation, you have to create Templates as follows: For book (lexicon):

For volume:

For Article, table of contents (TOC), Preface, Lemma:

For authors:

For physical pages:

Usage
This is a brief introduction on how to use the OfflineImportlexicon. A more detailed guide will appear on this page in the near future.

Creating book structure
After Successful installation, in your wiki will be created under Semantic MediaWiki Group the Special page OfflineImportLexicon. Clicking this link, the special page launches and an initial form allows user to enter new books (lexicons). Clicking the Add New lexicon button will start the "New Lexicon Form". You are then able insert information about a book. For each of which book, you can add volumes, or, for a collected edition, articles directly connected to book (lexicon). In this form, you can specify the details of your currently created entity. Volumes and Articles can be easily added and after each of them, a wiki page will be created using corresponding template mentioned above. In addition, for Articles, you can choose to generate also media file. In a subsequent session, you can add a scanned image of the physical book page.

Known issues
If you find a bug, please report it on the discussion page.