EPrints Training Course Southampton, May 3-4 th 2007 Repository Customisation: Configuring EPrints.

Slides:



Advertisements
Similar presentations
EPrints Web Configuratio n Management. SQL database Web server Scripts to configure repository activities Configuration files EPrints - the Administrator's.
Advertisements

EPrints 3 Technical Overview EPrints 3 Briefing 8 th December 2006, London.
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
© 2012 Entrinsik, Inc. Informer Administration Exploring the system menu and functions PRESENTER: Jason Vorenkamp| Informer Software Engineer| March 2012.
MMDE5011 – INTERACTIVE MEDIA PRACTICE 1 WEEK 1: INTRODUCTION TO HTML5
Customizing the MOSS 2007 Search Results November 2007 Rafael Perez.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Technical Tips and Tricks for User Support Mike Gardner
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Create a Web Site with Frames
The easy way to a nice looking website design By a total non-designer (Me!)
1 Agenda Overview Review Roles Lists Libraries Columns.
Jean Phillips Schwerdtfeger Library Space Science and Engineering Center University of Wisconsin-Madison November 2005.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Creating a Web Page HTML, FrontPage, Word, Composer.
Drupal Workshop Introduction to Drupal Part 1: Web Content Management, Advantages/Disadvantages of Drupal, Drupal terminology, Drupal technology, directories.
Linux Operations and Administration
Website Tutorial. Administration  Log on by clicking Login on the footer of almost any page  Your Username is.
Getting Started with Dreamweaver
Create a Website Session I Key Components Hands-on HTML.
Cascade Server for Developers Vince Ruppert College of Liberal Arts BoilerWeb 2011.
Computer Science : Information Systems Design and Development Unit Web Sites - National 4 / 5 St Andrew’s High School-Revised January 2013 Slide 1 St Andrew’s.
© 2012 Boise State University1 WordPress Training February 14, 2013.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Session 5: Working with MySQL iNET Academy Open Source Web Development.
INTRODUCTION TO DREAMWEAVER 8. What we already know…  Design basics  Contrast  Repetition  Alignment  Repetition  HTML.
The SAU Website Workshop. Using the site Website Management The Campus Directory Form Manager Other available resources.
Electronic Commerce BBA (Hons) ( ) (Website Designing and Publishing) By: Farhan Mir.
Creating Web Pages Overview. Design – Start with a Purpose Before you start any web page, you need to design the website. The first question that should.
HTML II. Factors to consider in designing a website. Organizing your files. HTML Tables. Unordered Lists. Ordered Lists. HTML Forms. Learning Objectives.
Introducing Dreamweaver MX 2004
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
© 2012 Boise State University1 WordPress Training February 14, 2013.
WB_FrontPage_How To CS3505. Front Page 4 Microsoft Web Page Authoring tool 4 Available to students at no charge see helpdesk 4 Provides support for building.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
National Center for Supercomputing Applications NCSA OPIE Presentation November 2000.
Configuring EPrints EPrints can generate publication lists for online CVs & homepages.
Chapter 3 – Part 1 Word Processing Writer for Linux CMPF 112 : COMPUTING SKILLS.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Core Publisher: Station Administrator Tools. Training 1: Site Administration Training 2: Programs Training 3: Content Tagging Training 4: Creating Posts.
Solutions using Microsoft Content Management Server 2002 Connector for SharePoint Technologies Sue Corke Mark Harrison Microsoft UK.
1 EndNote X2 Your Bibliographic Management Tool 29 September 2009 Humanities and Social Sciences Resource Teams.
Table of Contents TopicSlide Administrator Login 2 Administrator Navigations 3 Managing AlternativeDr.com Blogs 4 Managing Dr. Lloyd May Blogs 5 Managing.
Introduction to Morpho RCN Workshop Samantha Romanello Long Term Ecological Research University of New Mexico.
Introduction to KE EMu
October RefWorks Basics Creating accounts and folders Adding references (manually & electronically) Sorting, editing and linking Creating a bibliography.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Introduction to KE EMu Unit objectives: Introduction to Windows Use the keyboard and mouse Use the desktop Open, move and resize a.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
Here are some things you can do while you wait 1.Open your omeka.net site in your browser (e.g. 2.Open.
Your current Moodle 1.9 Minimum Requirements Ability to do a TEST RUN! Upgrading Moodle to Version 2 By Ramzan Jabbar Doncaster College for the Deaf By.
MESA A Simple Microarray Data Management Server. General MESA is a prototype web-based database solution for the massive amounts of initial data generated.
XP Creating Web Pages with Microsoft Office
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
GNU EPrints 2 Overview Christopher Gutteridge 19 th October 2002 CERN. Geneva, Switzerland.
Made with OpenOffice.org 1 Beyond the Single Page Steve Oualline OpenOffice Writer.
Getting Started with Dreamweaver
Intro to WordPress (Using XAMPP)
Weebly Elements, Continued
CARA 3.10 Major New Features
Configuring Internet-related services
SiteBuilder 2 Introduction.
Getting Started with Dreamweaver
Consult America Technology Consulting Services
EPrints Web Configuration Management
Wells Fargo Toolkit – CreativeBuilder Reference Guide
Web Application Development Using PHP
Presentation transcript:

EPrints Training Course Southampton, May 3-4 th 2007 Repository Customisation: Configuring EPrints

 EPrints successfully runs on  Linux  Solaris  Mac OS-X  Installation process is standardised  Grant from Microsoft for Windows version  evaluation release available on files.eprints.org  One site installation can run many separate repositories  mixing and matching EPrints and other Web-based services on the same host is possible EPrints Installation

Installation: Run epadmin Tool  Walks you through creating an EPrints 3 repository  core configuration  hostname, repository name  database configuration  creates database  creates tables in database  creates an initial user account  username, user type, password  creates repository Web pages  Open repository homepage in browser & log in

 SQL database  Web server  Scripts to configure repository activities  Configuration files EPrints - the Administrator's View

Orientation  Where are the configuration files?

EPrints Home Directory

EPrints Home Directory: Configuration Global configuration for all repositories Repository-specific configuration for each repository

Global vs. Local Configuration  Single EPrints installation can run multiple repositories  each may be very different in style in functionality  EPrints configuration files divided into  global configuration  least likely to be changed  shared by all repositories  considered read only but can be overridden at the local level  repository-specific (local) configuration  often changed  each repository has its own set

EPrints Home Directory: Programs Directories for storing programs

EPrints Home Directory: Perl Modules Holds all the modules required by Perl scripting language

EPrints Home Directory: Test Data Test data for populating a repository

EPrints Home Directory: Apache Apache configuration

EPrints Home Directory: Temp Files Temporary files

EPrints Home Directory: Where Next?

Contents of archives Directory A subdirectory for every active repository

Contents of archives Directory: Where Next?

Contents of individual archive directory The configuration files for this repository

Contents of individual archive directory PDFs etc.

Contents of individual archive directory Processed static webpages This is where static content gets served from

Contents of individual archive directory Temporary files

Contents of individual archive directory

Contents of individual cfg directory Configuration files...

Contents of individual cfg directory...citation definitions...

Contents of individual cfg directory...language- specific content...

...there are LOTS of configuration files!  Rather than examine each individually, consider two common configuration tasks  Branding  Adding a new metadata field  One step at a time  examining cause and effect  not how you would normally do things! Contents of individual cfg directory (2)

Aside: EPrints 3 for EPrints 2 administrators  EPrints 2 had many large config files  now split into several smaller files  with filenames that make finding specific configuration options much easier!  cfg directory reshuffled to organise files more logically  on_orientation_for_EPrints_2_administrators

Task 1: Branding  The first thing most institutions do is brand their repository and fit it in with their existing look and feel

Branding: Which Configuration Files? cfg.d/branding.pl Branding shortcuts

Branding: Which Configuration Files? lang/en/templates/default.xml Site-wide HTML template

Branding: Which Configuration Files? lang/en/static/*.xpage fixed content pages e.g. homepage, about page, help page

Branding: Which Configuration Files? static images and stylesheets

Branding: cfg.d/branding.pl  Perl syntax, but very easy to change  Provides a couple of handy branding shortcuts  change the site logo  apply a theme to the site  Very quickly change the appearance of your repository  useful for building a demo

Branding: Change the Logo  Add the University of Southampton logo  first copy dolphin_logo.gif into the static/images directory  then change branding.pl to point to the file $c->{site_logo} = “/images/dolphin_logo.gif”;

Branding: Check the Homepage  Check the homepage... logo hasn’t changed!

Branding: epadmin reload Command  For best performance, EPrints loads all configuration files at startup  Whenever we change a configuration file we need to tell EPrints to reload its configuration  run epadmin reload or restart the Web server

Branding: Check the Homepage  After running epadmin reload  logo image not being found

Branding: generate_static command  We need to run the generate_static command  This takes the fixed content files in the static configuration directory and moves them into the live content area  the repository’s html directory  soton/cfg/static/images/dolphin_logo.gif  gets copied to  soton/html/en/images/dolphin_logo.gif

Branding: Check the Homepage  After running generate_static

Branding Fast Track: Summary  Copy new logo to static content directory  Change branding.pl to point to new logo  Run epadmin reload to load the updated branding configuration  Run generate_static to copy the logo to the live content area

Branding: lang/en/templates/default.xml  The branding configuration file provides some shortcuts  handy for demos  not so handy for seamlessly integrating your repository into your institutional Web presence!  need complete control of page layout  EPrints lets you define an HTML template (outline) which is used to build every Web page  Customise the look and feel of the whole site  page layout  header  title, logo, navigation menu  footer

Template: Things to Look Out For  phrases  e.g.  include some text in the page that is defined elsewhere  archive_name is defined in lang/en/phrases/archive_name.xml  if the archive name changes, you don’t have to update every page!  the archive name can be defined in multiple languages.  pins  e.g.  page, title, login_status  tell EPrints how to combine the template with content to build each page on the repository  incorporate the pins into your new layout  configuration strings  e.g....  frontpage, base_url, perl_url  include configuration values  e.g. if the repository URL changes, you don’t have to update every link!

Aside: What is XML?  Quick answer: it's a bit like HTML  HTML is for making pages for people to read  XML is for making data for computers to use  The syntax is very similar, just stricter  All tags must have a matching closing tag  All attributes must be quoted  It doesn't know anything about Web pages  or anything else, come to that!

Branding: Change Page Layout  Add some links to key pages on the University of Southampton website  We’ve changed a configuration file so have to reload

Check the Homepage  After running epadmin reload

Changing the Layout: Summary  Define new layout in lang/en/templates/default.xml  copy any required images or stylesheets to static content directory  use pins to tell EPrints where to insert content in the layout  Run epadmin reload  if you have used any additional images/stylesheets, move them to the live area of the site by running generate_static

Aside: Dynamic Pages in EPrints 3  EPrints 2 administrators will be used to re- generating static pages, browse view pages and abstract pages when the template is changed  EPrints 3 builds pages on demand  generate_static puts static content into html directory  html/en/index.body, html/en/index.title  same for generate_views, generate_abstracts  when page is requested, EPrints combines template with these pieces of static content to build the page

Aside: Dynamic Pages in EPrints 3 (2)  Why?  can introduce dynamic elements into the page  user login status is good example of this  trade off between server performance and functionality  Google will crawl repository at least once a day  static parts of static, views and abstract pages pre- generated

Branding: lang/en/static directory  You can also define fixed content for:  homepage, “about” page, help pages, “error” page...  the static content that appears on the front page of the repository is in  lang/en/static/index.xpage  These configuration files are stored in the lang/en/static directory  one subdirectory per language  e.g. english files go in lang/en/static

Branding: Remove Warning from Homepage

 Remove the warning and replace with a paragraph describing the repository  We’ve changed some static content, so need to run generate_static to move it into the live content area

Branding: Remove Warning from Homepage  After running generate_static

Aside: Creating New Static Pages  You may want to add additional static pages  frequently asked questions  repository policies  Just create a new.xpage file in lang/en/static directory  copy an existing one and use it as a template  run generate_static  link to the new page from your site template  e.g. if you created faq.xpage, create a link to faq.html

Task 2: Add a New Metadata Field  Imagine an archive of photographs where the location at which the image was taken is important.

New Metadata Field: Which Config Files? eprint_fields.pl Contains all fields an eprint could have

New Metadata Field: Which Config Files? eprint_fields.xml Phrases for names and helptext of eprint fields.

New Metadata Field: Which Config Files? default.xml workflow, defines the input fields for each eprint type.

Task 3: Add a New Metadata Field  Add the new field to the workflow default.xml file.  Workflows are a little different in EPrints 3

New Metadata Field  Restart the web server.  Everything looks fine.  But try to create a new image and:

New Metadata Field  EPrints knows that a picture needs coordinates but….  EPrints doesn’t know what coordinates are yet.

New Metadata Field: eprint_fields.pl  Contains all possible metadata fields for an eprint.  A Perl file (but don’t worry too much)

New Metadata Field: Add Definition  Add a definition for the coordinates field to eprint_fields.pm

New Metadata Field  Restart the web server.  Everything looks fine.  But try to create a new image and:

New Metadata Field: Why it Failed  EPrints uses the metadata configuration in eprint_fields.pm to:  construct its database tables  generate queries for selecting data from the database  EPrints expects to find a coordinates column in the database

New Metadata Field: Update Database  We need to either  rebuild the EPrints database tables for the new metadata configuration  will lose all data and uploaded files  use epadmin erase_eprints  don't do this on a live repository!  useful development technique  add the field to the database by hand  won't lose any data  instructions for doing this on the EPrints wiki 

 Field now appears in deposit workflow  Now just need to add some phrases!  field title and help text New Metadata Field: Check Workflow

New Metadata: Phrases  Phrases contain text that is displayed on pages generated by EPrints  In a multi-language repository, there would be a set of phrases for each language  Defined in XML  Eprints loads all phrases in all files in the cfg/lang/en/phrases directory.

New Metadata: Add a Phrase  Add phrases to eprint_field.xml  Reload the archive

 Define type and properties of new field in eprint_fields.pl  Add field to deposit workflow in workflows/eprint/default.xml  Add display name and help text to eprint_field.xml  epadmin erase_eprints  or manually add new field  epadmin reload New Metadata Field: Summary

Briefly: Autocompletion  Drop a simple text file or a more complex xml file into the autocomplete directory.  Edit the workflow:

Briefly: Plugins  Add functionality to your repository  Most Common – Import, Export, Screen  Just drop the plugin into the right plugin directory  Perl intensive (plugins are little programs), but very powerful.  Download plugins from files.eprints.org

Other Config Files: subjects  Plain text file that defines the subject tree for the classification system  By default contains the top 2 levels of the US Library of Congress classification  Also include a ‘place-holder’ organisational structure that you should remove/replace  ‘subjects’ is a misnomer. It can contain any number of trees/hierarchies.

Other Config Files: oai.pl  Tells EPrints which export plugins to use to map your metadata to any format a plugin exists for.  Edit to make your data, metadata and submission policies available.

Other Config Files: eprint_render.pl  Methods for generating the abstract pages for each eprint  Perl intensive, but we can do almost anything!  e.g. embed an music player applet on each Composition page

Other Config Files: *_validate.pm  Methods for checking the metadata fields that a depositor is submitting  individual fields  a whole page (i.e. combination of fields)  a document (e.g. has the user submitted a format safe for preservation purposes?)  a complete eprint record  a user  Perl intensive

Other Config Files: indexing.pm  Methods for supporting free text indexing  definitions of lexical token separators  list of stop words  filter that translates a text into a bag of words  Unlikely to be changed

 auto-apache.conf is the main workhorse  defines where the archive files are, how to handle script requests and errors etc.  Not User editable  Add directives to apache.conf  some tweaks may be necessary if you are hosting other Web-based services on the same server Web Server Config Files

 Look back at the issues you raised for configuring EPrints  can you see where you would need to start working in the EPrints setup?  can you find some repositories which do things in the same way?  i.e. can you find someone to give you advice? Reflection: What do you need to do?