Glossary Application

Version 37.17 by Clément Aubin on 2022/06/14 16:23

cogGlossary feature for XWiki
TypeXAR
CategoryApplication
Developed by

Sarthak Gupta, Vincent Massol, slauriere, Clément Aubin

Active Installs68
Rating
2 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

The Glossary application has the following features:

  • Add a new Glossary entry (Currently supports only single word entries emoticon_smile, except when using the glossaryReference macro)
  • View and filter all existing Glossary entries
  • Search for Glossary entries
  • Glossary Transformation for the ability to create links if a glossary entry appears on a wiki page.
  • Glossary 1.1+ Glossary Reference Macro to link to a glossary entry
  • Glossary 1.1+ Automatically modify page content to add Glossary Reference Macros on save
  • Glossary 1.3+ Glossary Entries Macro display every entry of a glossary in a document

Glossary 1.1+ It is possible to create glossary entries and then translate these entries in the different languages configured on the wiki. When using the glossary transformation, only glossary entries that exist with the locale of the page will be transformed.

Main view:
Glossary.png

Usage

Adding a new Glossary entry

Enter the glossary entry, that you want to add in the text box and click the "Add Glossary Item" button

addglossary1.png

On the next page add a description to the glossary entry. After that Save the page.

addglossary2.png

Viewing existing Glossary entries

Existing glossary entries are shown in the live table as shown below:

viewglossary1.png

On clicking a glossary entry, you will be directed to the page associated with it.

viewglossary2.png

Searching Glossary entries

Enter the entry you want to search in the search box as shown and click the "Search" button.

searchglossary1.png

You will be directed to the search page where you will see the matching entry resuts.

searchglossary2.png

Exporting the Glossary

Glossary 1.4+ 

It is possible to export every Glossary entry in a CSV file, containing the following columns :

  • The first column is the ID of the Glossary entry in XWiki
  • The second column is the title of the entry in the default wiki language
  • The third column is the content of the entry for the default wiki language
  • The next columns are respectively the title of the entry and then the content of the entry for each supported language in the wiki.

Update documents to add glossary entries automatically

Glossary 1.1+ 

You can enable the application to automatically update documents at save time to look for glossary entries. With this strategy, if a word corresponds to a glossary entry when saving a document, it will be replaced by a glossaryReference macro with the adequate parameters.

Similarly, if a glossaryReference macro exists in a document being saved, and if the corresponding glossary entry does not exist anymore, the macro will be removed.

In order to enable this feature, check the option Update documents on save in the wiki administration, in the section "Content" > "Glossary".

Glossary 1.4+ It is also possible to define a list of XWiki Classes that will automatically exclude pages from the transformation when an XObject of these classes is found on one of the pages.

Glossary Reference Macro

The Glossary Reference macro makes it possible to link explicitely a label to a glossary entry in a given glossary, using the following syntax:

{{glossaryReference glossaryId="MyGlossary" entryId="lorem"}}lorem{{/glossaryReference}}

The glossaryId parameter is optional, defaulting to "Glossary", while the entryId one is mandatory.

Glossary Entries Macro

Glossary 1.3+ 

The glossary entries macro will display every entry of a glossary as a list, ready to be embedded inside of a wiki document.

{{glossaryEntries glossaryId="MyGlossary" entryNameHeaderLevel="5"/}}

The glossaryId parameter is optional, defaulting to "Glossary". The entryNameHeaderLevel is also optional, defaulting to 2. It will define the heading level used when displaying the name of each glossary entry.

When a macro glossaryEntries macro is included in a page, all glossaryReference macros which are referencing to the glossary ID used for the glossaryEntries macro will be displayed as anchor links, pointing to the entries on the document instead of the entry pages on the wiki.

Glossary in action

As we have the word "LOL" as a glossary entry, it will appear as a link on any page in which it appears as shown below:

glossarytransformation1.png

On clicking that link, you will be directed to that glossary page.

Configuration

There are 2 modes that you can use:

  • "Transformation" mode: In this mode, the page content is parsed every time the page is viewed and links to glossary entries are generated on the fly. Advantage: no impact on the page content
    • Since this can cause performance issues, it's not recommended to use it on wikis have large page content.
    • To activate it, edit WEB-INF/xwiki.properties, look for a property named rendering.transformations and make sure it's uncommented and contains the value glossary.

      For example:

      rendering.transformations = macro, icon, glossary

      Make sure you restart your XWiki instance for the change to take effect.

  • "Update on save" mode: In this mode, when the page is saved, the content is parsed to recognize glossary entries and the content is modified to add Glossary Reference macros. Advantage: much better performances

Release Notes

All release notes

1.4.7

The following translations have been updated with this release:

1.4.6

1.4.5

1.4.4

The following translations have been updated with this release:

1.4.3

1.4.2

1.4.1

1.4

1.3

1.2.1

1.2

This version requires XWiki 13.10+.

1.1.5

1.1.4

1.1.3

1.1.2

1.1.1

1.1

1.0.4

1.0.3

1.0.2

1.0.1

1.0

0.3

0.2

No issue.

0.1

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:

  1. Log in the wiki with a user having Administration rights
  2. Go to the Administration page and select the Import category
  3. Follow the on-screen instructions to upload the downloaded XAR
  4. Click on the uploaded XAR and follow the instructions
  5. You'll also need to install all dependent Extensions that are not already installed in your wiki

Dependencies

Dependencies for this extension (org.xwiki.contrib.glossary:application-glossary-ui 1.4):

Tags:
    

Get Connected