Greenstone tutorial exercise

Back to wiki
Back to index
Devised for Greenstone version: 2.88|3.11
Modified for Greenstone version: 2.87|3.11

Using WebSwing GLI (Web GLI)

When a librarian or other collection designer wants to create/edit a collection on a Greenstone installation that's running on a remote server machine (such as on a cloud), there are several options to connect to the remote machine.

There is the new WebSwing GLI, which allows you to use the remote Greenstone installation's GLI through your local web browser, the specifics of which are described in this tutorial.

There is also client-gli, which requires you to first set up the remotely running Greenstone server to support client-GLI applications connecting to it. It also requires you to have a Greenstone installed in order to run a client-GLI.

(In the past, there was also the GLI applet, but support for Java applets has been deprecated by browsers over the past years.)

WebSwing GLI is the easiest route, as it is already set up and ready to use once you have your Greenstone server up and running. For this reason, going forward, WebSwing GLI will be maintained as the most up-to-date version of GLI that allows creating and editing collections on a remotely running Greenstone 3.

The following assumes you have a Greenstone 3 server that's already running, whether on a cloud or locally such as at the default location of http://localhost:8383/greenstone3/library.

Creating a user account

To connect with GLI to you need a user account that has collection-editing permissions or you can use the default "admin" user account that is already set up with the permissions of all-collections-editor. Refer to the tutorial Customization: Themes as to the password for the admin user, unless you've already changed its default password.

To create a new user account that is allowed to create collections and edit the ones it creates:

  1. Visit your running Greenstone server's home page in the browser. Scroll down to the link labelled Administration Page and click it. As it says, it "Allows you to manage users". Before proceeding, you'll be asked to log in as the admin user (or as any custom users you created with administration privileges) in order to add new users.

  1. Press the button Add a New User.

  1. Fill out the fields. As a bare minimum, you will need to enter a username for the new user, enter a password for the account twice and assign what Groups the new user belongs to. Groups controls both access permissions and content creation permissions: whether the new user is in the right group to view restricted Greenstone collections and documents, and whether the user is in the right group to edit certain (or any) collection.

  1. If you wish to give your new user the all-mighty rights of an administrator, you can add "administrator" to their Groups field. Usually, you will not want to go around giving every new user administrator rights. There are 3 kinds of pre-existing Groups that determine a user's content creation permissions: if they belong to all-collections-editor (like the default admin user does), they can create any Greenstone collection and edit any collection. If their Groups field contains personal-collections-editor, they have the right to create any collection they want, but only to edit the collections they created and not those created by others. Setting a user's Groups field to COLLNAME-collection-editor, where you have to edit COLLNAME to a specific collection's shortname, will allow the user to edit that collection. For instance, if a user has lucene-jdbm-demo-collection-editor in its list of groups, they have the right to edit the default Greenstone 3 collection "lucene-jdbm-demo".

  1. For now, you could add "personal-collections-editor" to your new user's group to give them the right to create any collection and edit those. This will be sufficient to cover most Greenstone 3 tutorials. But for your user to have the additionally ability to edit the default "lucene-jdbm-demo" demonstration collection, you can append lucene-jdbm-demo-collection-editor to the groups field (separated by comma). Alternatively, you can just set the user's Groups field to all-collections-editor, if you're going to go through all the tutorials with WebSwing GLI using this new user account.

Accessing WebSwing GLI: a Greenstone Librarian Interface (GLI) application accessible over your browser

  1. First run the Greenstone server:

    You need the GS3 server to be running in order to access WebSwing GLI. To launch the GS3 server, on Windows you can select the Greenstone 3 shortcut or double-click your GS3 installation's top-level gs3-server.bat script to launch the Greenstone Server Application dialogue. A small dialog should appear where you can click the central Enter Library button. Then wait for this application to open a browser and display the Greenstone server home page for you. Note that if you're on linux or a Mac, you can use the equivalent ./gs3-server.sh script to launch the same server application. For Mac binaries, you also have the option of double-clicking the gs3-server shortcut to launch this application.

    Alternatively, if you choose to run the Greenstone server from the command line, then first run gs3-setup.bat to set up the Greenstone environment needed for WebSwing GLI to properly function, before running ant start. The linux and Mac equivalent is to run source ./gs3-setup.sh before similarly running ant start to start up the GS3 server.

  1. Start the WebSwing Greenstone Librarian Interface:

    Visit your running Greenstone server's home page in the browser. By default, for a locally running Greenstone, this would be at http://localhost:8383/greenstone3/library.

  1. Scroll down to the link Greenstone Librarian Interface (GLI) and click it.

  1. After some time a popup dialog will request a username and password. Enter the details for either the default admin account, or any user created earlier.

  1. WebSwing GLI will load in your browser. Once it's finished loading up, you can start using GLI almost as usual.

WebSwing GLI is mostly the same as regular GLI except for a few notable differences:

For the rest, WebSwing GLI will work like regular GLI in the tutorials. So you are now set to, for instance, go through the A simple image collection tutorial using WebSwing GLI this time, bearing in mind the above differences. Try it out to familiarise yourself with WebSwing GLI.


Copyright © 2005-2019 by the New Zealand Digital Library Project at the University of Waikato, New Zealand
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License.”