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, the special page OfflineImportLexicon will be created in your wiki under Semantic MediaWiki Group. Clicking this link, the special page launches and an initial form allows user to enter new books (lexicons). Clicking the Add New lexicon button starts the "New Lexicon Form". This offers to insert bibliographic information about a book. For each book, you can add volumes, and, for a collected edition, articles related to the book (lexicon). In these forms, you can specify the details of your currently created entity. After finishing the description process 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.