Jump to content
MediaWiki

Extension:OfflineImportLexicon

From mediawiki.org
Revision as of 22:30, 26 December 2020 by Baris6161TURK (talk | contribs)
MediaWiki extensions manual
OfflineImportLexicon
Release status: beta
Implementation User interface, Special page
Description Provides a user interface that allows to create wiki pages following hierarchical book's structure: book, volume, article, physical representation of book page as image.
Author(s) Lia Veja (LiaVeja talk )
Latest version 2.0.0 (2012年12月29日)
MediaWiki 1.17+
Database changes No
offlineimportlexicon
Licence MIT License
Download
Translate the OfflineImportLexicon extension if it is available at translatewiki.net

The OfflineImportLexicon extension is an extension for Semantic MediaWiki that provides a user interface that allows to create wiki pages following hierarchical book's structure: book, volume, article, physical representation of book page as image. Entities are:

  • Book (Lexicon)
  • Volume
  • Article (Lemma)
  • Page as images.

It was developed within the research project SMW-CorA and funded by the DFG.

Download

The extension can be retrieved directly from Git [?]:

  • Browse code
  • Some extensions have tags for stable releases.
  • Each branch is associated with a past MediaWiki release. There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).

Extract the snapshot and place it in the extensions/OfflineImportLexicon/ directory of your MediaWiki installation.

If you are familiar with Git and have shell access to your server, you can also obtain the extension as follows:

cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/OfflineImportLexicon.git

Installation

Note Note: This extension requires Semantic MediaWiki to be installed first.

  • Download and move the extracted OfflineImportLexicon folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cdextensions/
    gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/OfflineImportLexicon
    
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/extensions/OfflineImportLexicon/OfflineImportLexicon.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Setup

After the installation, you have to create Templates as follows:

For books (lexicon)
{{Cora Lexicon Data
| Title =
| Subtitle = 
| Place of Publication =
| Editor = 
| Coordinator =
| Author = 
| Publisher = 
| Language = 
| Edition =
| URN = 
| Year of Publication = 
| IDBBF = 
| Has Volume = 
}}
For volumes
{{Cora Volume Data
| Title =
| Subtitle = 
| Volume Number =
| Place of Publication = 
| Publisher = 
| Editor =
| Language = 
| URN = 
| Year of Publication = 
| IDBBF = 
| Physical Description = 
| Part of Lexicon = 
}}
For articles, tables of contents (TOC), prefaces, lemmas
{{Cora Lemmata Data
| Title =
| Subtitle = 
| Part of Lexicon = 
| Part of Volume = 
| Language = 
| URN = 
| IDBBF = 
| Original Person =
| First Page = 
| Last Page = 
| Has Digitized =
| Category = 
}}
For authors
{{Authors Data
|Author =
}}
For physical pages
{{Cora Image Data
| Original URI = 
| Rights Holder = 
| URN = 
| Page Number = 
| Page Numbering = 
| Part of Article = 
| Part of TitlePage =
| Part of TOC = 
| Part of Preface =
}}

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.

AltStyle によって変換されたページ (->オリジナル) /