Giter Club home page Giter Club logo

neatlinewebservice's Introduction

Neatline Web Service

Neatline Web Service provides a public-facing facade for the Neatline plugin that makes it possible for public users to create accounts and use Neatline as a hosted web application.

Installation and Configuration

Neatline is a plugin for Omeka, an open-source web publishing platform that makes it possible to create, curate, and display archival collections based on Dublin Core or EAD metadata. While the web service is designed to make it easy to experiment with Neatline and build exhibits based on real-geography base layers, using Neatline directly, inside of the Omeka, makes it possible to base Neatline exhibits on an underlying archive of Omeka items that conforms to rigorous and portable metadata standards.

Installing Omeka + Neatline is a two-step process: Omeka first, then the Neatline plugin. Omeka is a PHP/MySQL application that will run on almost any commercial hosting provider. Before you start, you'll need:

  1. A hosting environment that supports PHP and MySQL;
  2. A way to transfer files onto your server space and make simple text edits. In most cases, a simple FTP client like FileZilla works well.
  3. Credentials for a MySQL database user on your server and the name of a fresh, production database for the Omeka installation. If you don't already have a database user account, most commercial hosting providers provide access to a point-and-click database administration tool like phpMyAdmin where you can create databases and users.

Install Omeka

For detailed instructions on installing Omeka, refer to Omeka's official documentation.

Install Neatline

  1. Go to the Neatline download page and download the Neatline plugin.
  2. Once the file is finished downloading, uncompress the .zip file and place the "Neatline" directory in the plugins/ folder in your Omeka installation.
  3. Open the "plugin.ini" file in the Neatline directory and change the line 'saas="false"' to 'saas="true"'.
  4. Open a web browser and go to your-omeka-site.org/admin, enter your administrative credentials, and click on the "Settings" button at the top right of the screen.
  5. Click on the "Plugins" tab in the vertical column on the left and find the listing for the Neatline plugin.
  6. Click the "Install" button.

Install Neatline Web Service

  1. Go to the Neatline Web Service download page and download the plugin.
  2. Once the file is finished downloading, uncompress the .zip file and place the "NeatlineWebService" directory in the plugins/ folder in your Omeka installation.
  3. Open a web browser and go to your-omeka-site.org/admin, enter your administrative credentials, and click on the "Settings" button at the top right of the screen.
  4. Click on the "Plugins" tab in the vertical column on the left and find the listing for the Neatline Web Service plugin.
  5. Click the "Install" button.

By default, the webservice application is accessed off of the /webservice route slug. So, if your Omeka site is installed at www.yoursite.org, the webservice would be served off of www.yoursite.org/webservice. To change this top-level slug, edit the value of the "saas_slug" parameter in the "plugin.ini" file.

Creating and Editing Exhibits

Create a User Account

To create a webservice user account, go to www.yoursite.org/webservice/login. Enter a username, email, and password, and click "Sign Up."

Create a New Exhibit

  1. Click the "New Exhibit" button.
  2. Enter a title for the exhibit. The title will be displayed in large text at the top of the public display page for the exhibit.
  3. As you type, the form will automatically generate a "URL Slug" in the box below. The slug is a string of hyphenated text that the webservice will use to form the public URL for the exhibit. Below the URL Slug input, the form automatically populates a preview of the final URL for the exhibit. If you want to use a custom URL slug that's different from the title text, just manually edit the form field for the slug and it will stop mirroring the title text.
  4. Finally, check the "Public" checkbox if you want the exhibit to be publicly accessible. As long as this box is left unchecked, visitors to the public URL for the exhibit will see a "Coming Soon" placeholder. You can come back to this page at any time and toggle this option on and off.
  5. Click the "Create" button. You'll be redirected to your "Browse Exhibits" page, where you'll see a listing for the new exhibit.

Edit Exhibit Information

After creating an exhibit, you may want to go back and change some of the options that you set at the beginning.

  1. Find the listing for the exhibit that you want to edit and click the "edit details" link below the exhibit title.
  2. You'll get an edit form that's identical to the one that you used to create the exhibit. Edit the Title, URL Slug, or Public options, and click "Save" to commit the changes.

View the Public Display Page for an Exhibit

Neatline generates a full-screen page for each of your exhibits that serves as the primary publicly-facing "home" for the exhibit. When you share the exhibit with other people, you'll want to point them to this page.

  1. In the browse exhibits view, click the "public" link under the exhibit title to go to the full-screen view.

If you do not want the exhibit to be publicly-visible, uncheck the "Public" checkbox in the "edit details" form.

Embed An Exhibit

In addition to providing the full-screen view for an exhibit, Neatline also makes it possible to embed exhibits in any context where HTML markup is allowed. For example, you might want to include a small version of an exhibit in a Wordpress blog post. Neatline includes a dynamic application that lets you configure the dimensions of the embedded exhibit and auto-generates the HTML markup.

  1. Find the listing for the exhibit that you want to embed on the "Browse Exhibits" page and click the "embed" link below the title.
  2. Use the Width and Height inputs to set the dimensions for the embedded exhibit. To increase or decrease the values in the inputs, click on the field and drag the cursor up and down on the page. The value in the input will go up and down, and the preview of the exhibit at the bottom of the page will automaticaly update. If you already know the dimensions that you want for the exhibit, you can also just type directly into the fields.
  3. Once you've set the dimensions, just copy the contents of the "Embed Code" field and paste the HTML into the destination context - a different website, a blog post, a forum, etc.

Delete An Exhibit

  1. Find the listing for the exhibit that you want to delete on the "Browse Exhibits" page and click the "delete" link below the title.
  2. You'll be taken to a confirmation page. Deleting an exhibit permanently removes the exhibit and all record data associated with it. A deleted exhibit cannot be restored.
  3. Click "Yes, delete." You'll be taken back to the "Browse Exhibits" page.

neatlinewebservice's People

Contributors

davidmcclure avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

neatlinewebservice's Issues

Exhibits view should display and sort by a "modified on __" column

Right now, exhibits just stack up vertically, with the most recently created exhibit at the bottom. NL updated a "modified" column on the Neatline native exhibits table every time a change is made to the exhibit or one of its records. The webservice browse view should:

  • Display the modified date in a readable format;
  • Automatically sort by that column, so that recently updated exhibits are always at the top of the stack.

Implement public/private checking for public views

In the admin interface, it is possible to set whether an exhibit is public or not. Right now, though, this isn't actually wired up with the public show views - everything is visible, regardless of whether public is flipped on or not.

The show controller actions in the PublicController should check to see if the requested exhibit is public.

URI issue

This was emailed by Trip Kirkpatrick...

In playing around with the Neatline sandbox site, I encountered the
attached error.

I was hopping around pretty heedlessly, but steps to reproduce seem to be
simply using the Preview URL from the Edit Exhibit screen as the target
for a web browser request. That URI is inaccurate for my sandbox. The
displayed preview is
http://sandbox.neatline.org/triplingual/uva-campus-map, but the working
URI is http://sandbox.neatline.org/webservice/triplingual/uva-campus-map.

I'm on Firefox 14 and Mac Lion, though I don't expect they are important
environmental factors. Since many of you are at DH2012, I don't imagine
you'll be able to look into this for a while.

This looks like the URI on the editAction is incorrect...

Merge slug and public data off of NLWS exhibit model

The slug and public columns on the NeatlineWebExhibit table are now represented natively on the parent NL exhibit model, and are thus redundant on the NLWS table. Now, the only remaining role for the NWLS table is to establish the user-exhibit relationship, which is not implemented in NL and likely won't be in a way that fits for the webservice.

Make slug previews on exhibit create form accurate

Right now, the URL-previewed in the /add form tries to interpolate the final URL based on the current web root of the installation, etc. This doesn't work, though, since we're going to be doing funky route rewriting to get the service hooked into neatline.org in a certain way.

The slugBuilder widget that controls the preview should be modified such that we can just pass in an arbitrary base URL for the previews.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.