# Macroniser Macron-Restoration Greenstone3 Interface

A Greenstone 3 interface for the Atea Project, providing a refreshed and greenstone-integrated interface for the [Māori Macron Restoration service](https://trac.greenstone.org/browser/other-projects/the-macronizer/trunk).

This is a standalone interface. If you would like the macroniser along with other atea tools, please use the atea interface instead (https://trac.greenstone.org/browser/gs3-installations/atea/trunk/interfaces/atea)

## Greenstone3 setup

1. Checkout and install a Greenstone3, if you don't already have one.

2. Ensure that [node.js](https://nodejs.org) is on your path. You can check this with the following:

    ```sh
    > command -v node
    ```
If its not there, in Greenstone3's ext-cli folder, run:

   ```sh
   > ./get-selfcontained-nodejs.sh
   > source ./SETUP-CLI.sh
   ```

3. Edit resources/web/servlets.xml.in. You need to add a new servlet which uses the macroniser interface. Notes below assume you have used macroniser for the
servlet name.

## Project setup - macroniser interface

1. The macroniser interface should be checked out into the web/interfaces folder.

   ```sh
   > cd web/interfaces
   > svn co https://svn.greenstone.org/gs3-installations/atea/trunk/interfaces/macroniser
   ```
   
2. Follow the instructions in macron-restoration/README.md for setting up the
macroniser interface part


## Project setup - the actual macroniser

1. svn checkout the macroniser:

   ```sh
   > svn co https://svn.greenstone.org/other-projects/the-macronizer/trunk macron-restoration
   ```

2. Follow the instructions in the README.md for setup instructions. This is installed outside of Greenstone, but you need to have run 'source ./gs3-setup.sh' in your Greenstone for it to know where to install the Tomcat webapp.



