<img src="../i/r_14.png" />

43
Content Outside of CONTENTdm: Part 1: Exhibit Creation Tool using Prototype and Script.aculo.us Phil Sager Ohio Historical Society [email protected]

description

 

Transcript of <img src="../i/r_14.png" />

Page 1: <img src="../i/r_14.png" />

Content Outside of CONTENTdm: Part 1: Exhibit Creation Tool using

Prototype and Script.aculo.us

Phil Sager Ohio Historical Society

[email protected]

Page 2: <img src="../i/r_14.png" />

Old Ohio Memory with scrapbook

Page 3: <img src="../i/r_14.png" />

New CONTENTdm-based Ohio Memory with exhibit creator tool: http://www.ohiomemory.org/

Page 4: <img src="../i/r_14.png" />

Exhibit creation tool http://www.ohiomemory.org/custom/exhibits/

Page 5: <img src="../i/r_14.png" />

Example Search on “Grant”

Page 6: <img src="../i/r_14.png" />

Mouseover titles

Page 7: <img src="../i/r_14.png" />

Drag and Drop

Page 8: <img src="../i/r_14.png" />

Example of dropped item plus extra information from CDM description field by

clicking on question mark

Page 9: <img src="../i/r_14.png" />

Selections with annotations and title

Page 10: <img src="../i/r_14.png" />

After clicking on “Create Exhibit”

Page 11: <img src="../i/r_14.png" />

Exhibit is created

Page 12: <img src="../i/r_14.png" />

Different backgrounds available

Page 13: <img src="../i/r_14.png" />

Different background

Page 14: <img src="../i/r_14.png" />

“Add This” Button

Page 15: <img src="../i/r_14.png" />

Exhibit with annotation and CDM link

Page 16: <img src="../i/r_14.png" />

CONTENTdm Record

Page 17: <img src="../i/r_14.png" />

Prototype

•   “Prototype is a JavaScript framework that aims to ease development of dynamic web applications. It offers a familiar class-style OO framework, extensive Ajax support, higher-order programming constructs, and easy DOM manipulation.”

Page 18: <img src="../i/r_14.png" />
Page 19: <img src="../i/r_14.png" />
Page 20: <img src="../i/r_14.png" />
Page 21: <img src="../i/r_14.png" />

Script.aculo.us •   “script.aculo.us is a set of JavaScript

libraries to enhance the user interface of web sites. It provides a visual effects engine, a drag and drop library (including sortable lists), a couple of controls (Ajax-based autocompletion, in-place editing, sliders) and more.”

•   “It's an add-on to the fantastic Prototype framework.”

Page 22: <img src="../i/r_14.png" />
Page 23: <img src="../i/r_14.png" />
Page 24: <img src="../i/r_14.png" />
Page 25: <img src="../i/r_14.png" />

Other Popular Libraries •   jQuery, jQuery UI

–   http://jquery.com/ •   MooTools

–   http://mootools.net/ •   Dojo

–   http://www.dojotoolkit.org/ •   Yahoo! User Interface Library (YUI)

–   http://developer.yahoo.com/yui/ •   Ext Core

–   http://www.extjs.com/products/extcore/

Page 26: <img src="../i/r_14.png" />

Google AJAX Libraries API

Page 27: <img src="../i/r_14.png" />
Page 28: <img src="../i/r_14.png" />
Page 29: <img src="../i/r_14.png" />

Search form

Page 30: <img src="../i/r_14.png" />

Prototype DOM methods

Page 31: <img src="../i/r_14.png" />

Prototype AJAX Request

Page 32: <img src="../i/r_14.png" />

Server-side

Page 33: <img src="../i/r_14.png" />

JSON •   “JSON (JavaScript Object Notation) is a

lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of JavaScript.”

•   “The Fat-Free Alternative to XML” •   http://json.org

Page 34: <img src="../i/r_14.png" />

JSON Example

Page 35: <img src="../i/r_14.png" />

Prototype decodes JSON

Page 36: <img src="../i/r_14.png" />

Use Script.aculo.us to build results

Page 37: <img src="../i/r_14.png" />

Script.aculo.us “Draggable”

Page 38: <img src="../i/r_14.png" />

Scriptaculous “Droppables”

Page 39: <img src="../i/r_14.png" />

Create Exhibit

Page 40: <img src="../i/r_14.png" />

Exhibit uses Lightview http://www.nickstakenburg.com/projects/lightview/

Page 41: <img src="../i/r_14.png" />

Online Resources •   Prototype: http://www.prototypejs.org

–   Tips and Tutorials: http://www.prototypejs.org/learn –   Prototype Framework Tutorial:

http://www.tutorialspoint.com/prototype •   Script.aculo.us: http://script.aculo.us

–   script.aculo.us Tutorial: http://www.tutorialspoint.com/script.aculo.us

–   10 Useful tutorials to learn Scriptaculous: http://woork.blogspot.com/2008/10/10-useful-tutorials-to-learn.html

•   Google AJAX Libraries API: http://code.google.com/apis/ajaxlibs –   Sign up for a Google API key:

http://code.google.com/apis/ajaxsearch/signup.html •   Lightview: http://www.nickstakenburg.com/projects/lightview

Page 42: <img src="../i/r_14.png" />

Books •   Crane, Dave, Bear Bibeault, Tom Locke, and

Thomas Fuchs. Prototype and Scriptaculous in Action. Manning Publications, 2007.

•   Dupont, Andrew. Practical Prototype and Script.aculo.us. Apress, 2008

•   Porteneuve, Christophe. Prototype and script.aculo.us: You Never Knew JavaScript Could Do This! Pragmatic Bookshelf, 2007.

•   Rao, Sridhar. PHP and script.aculo.us Web 2.0 Application Interfaces. Packt Publishing, 2009.

Page 43: <img src="../i/r_14.png" />

Phil Sager Ohio Historical Society [email protected]