SlideShare a Scribd company logo
1 of 60
Download to read offline
OPAC Customizations in Single
and Multi-Library Sites
Jane Wagner
Senior Project Manager
LibLime
Prepared for:
KUDOS Conference, May 2-3, 2011
Things to Cover
• How to customize the OPAC
• How to configure for multiple libraries
• Various resources
2KUDOS Conference, May 2-3, 2011
What Can Be Customized
• Add the library name in the browser’s top bar
• Insert an image or text into the header area
• Change the masthead color to match the header
image
• Change or hide the masthead image
• Add text/links/images into the lefthand sidebar
3KUDOS Conference, May 2-3, 2011
What Can Be Customized
• Add text/links/images into the main part of the front
page
• Add a customized footer
• Make various stylesheet changes (color, font, size,
etc.)
• Use jquery to change wording or hide certain areas
4KUDOS Conference, May 2-3, 2011
The Library Name
• The browser header (syspref LibraryName). The
system adds “Catalog” after your entry.
5KUDOS Conference, May 2-3, 2011
The OPAC Header
• The OPAC header area (syspref opacheader). Use for
logo or text.
6KUDOS Conference, May 2-3, 2011
The OPAC header (con’t)
• Use OPACUserCSS syspref to change the default Koha blue
masthead (to match the image/logo color or the site’s
preferred color – need the hex code for the color):
7KUDOS Conference, May 2-3, 2011
The OPAC Header (con’t)
• This example’s combination looks like:
8KUDOS Conference, May 2-3, 2011
The OPAC Header (con’t)
• You can also add menus or other HTML code into the
header, and control their appearance with stylesheet
entries:
9KUDOS Conference, May 2-3, 2011
The OPAC Header (con’t)
• Entry in OPACUserCSS for these menu links:
#navcontainer ul { padding-left: 0; margin-left: 0; background-
color:transparent; color: White; float: left; width: 100%; font-family:
arial, helvetica, sans-serif; } #navcontainer ul li { display: inline; }
#navcontainer ul li a { padding: .2em 1em; background-color: #036;
color: White; text-decoration: none; float: left; margin: 0 5px 0 0;
border-right: 1px solid #778; border-top: 1px solid #778; border-
left: 1px solid #778; border-bottom: 1px solid #778; }
#navcontainer ul li a:hover { background-color: #369; color: #fff; }
10KUDOS Conference, May 2-3, 2011
The OPAC Header (con’t)
11KUDOS Conference, May 2-3, 2011
Masthead Image
• You can blank out the default Koha image in the
masthead by setting the opacsmallimage syspref to a
file that doesn’t exist, like this:
/opac-tmpl/prog/images/NoImage.png
• Or you can use an image of your own (recommended
size is 120 wide x 40 tall pixels) and enter the path in
the syspref:
http://cdn.kohalibrary.com/c/wtls/TRUCAT.JPG
12KUDOS Conference, May 2-3, 2011
Custom Masthead Images
13KUDOS Conference, May 2-3, 2011
Left Sidebar (OpacNav)
• You can put HTML formatted text or links in the
OpacNav syspref. This will show at the lefthand side
of most pages in the OPAC.
• On patron account pages it will show above or below
the sidebar links for those pages.
• I recommend adding target= “_blank” or target =
“_new” into all URLs, to make links open in a new
window.
14KUDOS Conference, May 2-3, 2011
Left Sidebar (con’t)
15KUDOS Conference, May 2-3, 2011
Left Sidebar (con’t)
16KUDOS Conference, May 2-3, 2011
Left Sidebar (con’t)
• Another example, using the sidebar for library hours:
17KUDOS Conference, May 2-3, 2011
Left Sidebar (con’t)
• There was also an OPACUserCSS entry to change the
font and color:
18KUDOS Conference, May 2-3, 2011
Main Page Text
• Use the OpacMainUserBlock for text/images/links
that will display only on the main page of the OPAC.
• This can be a simple “Welcome to the library” or a
more complex page with forms and gadgets –
whatever you can do in HTML.
19KUDOS Conference, May 2-3, 2011
Main Page Text (con’t)
20KUDOS Conference, May 2-3, 2011
Syspref Code for Previous Page
<b>Welcome to the <a href="http://cbclibref.blogspot.com/2010/12/catalog-goes-koha.html" target="_blank">new</a> Columbia Basin College Library
Catalog</b>
<table><tr><td valign="top"><br /><b>Quick Links </b><p />
<ul><li><a href="http://bit.ly/newbooksbydate">New Books by Date</a> | <a href="http://bit.ly/newbooksbysubject">New Books by Subject</a></li>
<li><a href="http://bit.ly/bksondisplay">Books on Display</a></li>
<li><a href="http://bit.ly/fqdQJR">Videos for Loan</a> | <a href="
http://bit.ly/i4bq6S">New Videos</a> (published after 2007)</li>
<li><a href="http://bit.ly/journalfinder" target="blank">CBC Journal Finder</a></li></ul><hr />
<b>Search Tips & Tutorials</b><ul><li>Type what words you know from the title, author and subject.</li>
<li>You can limit your results by using the search drop-down list.</li>
<li>Use the Advanced Search to further limit your results. </li>
<li><a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-quick-tour.html" target="blank">Tutorial 1: Quick Tour (4:26 minutes) </a></li>
<li><a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-simple-keyword-search.html" target="blank">Tutorial 2: Simple Keyword Search
(4:39 minutes)</a></li>
<li><a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-my-account.html" target="blank">Tutorial 3: My Account</a> ( 5 min) and <a
href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-place-hold.html" target="blank">Place Hold</a> (2 min)</li>
<li><a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-subject-search-1.html" target="blank">Tutorial 4: Subject Search </a> ( 4 min) and
<a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-browse-shelf.html" target="blank">Browse Shelf </a>(1.5 min) </li></ul></td>
<td VALIGN="top"><!-- Beginning of QuestionPoint qwidget code. --> <div id="qpchatwidget" ></div> <script id="qp.bootstrap" type="text/javascript"
src="http://www.questionpoint.org/crs/js/qwidget/qp.bootstrap.js?langcode=1&instid=13192&skin=gray&size=standard" charset="utf-
8">//<noscript>Please enable javascript to chat with librarians online</noscript></script></td></tr></table>
21KUDOS Conference, May 2-3, 2011
Main Page Text (con’t)
• Another (simpler) example:
22KUDOS Conference, May 2-3, 2011
Main Page Text (con’t)
23KUDOS Conference, May 2-3, 2011
Footer Area
• The opaccredits syspref can be used for text that
should show at the bottom of every page.
• This is an ideal location for library address and
contact information, or information about the library
system.
24KUDOS Conference, May 2-3, 2011
Footer Area (con’t)
25KUDOS Conference, May 2-3, 2011
Footer Area (con’t)
26KUDOS Conference, May 2-3, 2011
Stylesheet entry of: #ft {font-size : 88%; text-align :center; font-style : italic; }
Style Changes --
Identifying What to Change
• Firefox plugin Firebug lets you look at a section of the
page and identify the label and style settings.
• Right-click the area, choose Inspect Element, and
look at the bottom part of the screen.
• You can make temporary changes in the Firebug
screen (altering color, height, font, etc.) to see how it
looks.
• Example Firebug screen on next slide.
27KUDOS Conference, May 2-3, 2011
Firebug – Masthead Highlighted
28KUDOS Conference, May 2-3, 2011
Look for <div> IDs or Labels
• The HTML code for the masthead area is
<div id="opac-main-search">
• The default stylesheet entry in the controlling
opac.css file is
#opac-main-search { background-image : url( ../../images/menu-
background.gif); background-repeat : repeat-x; background-color :
#739ACF; background-position : -10px top; border-top : 1px solid #335599;
border-bottom : 1px solid #335599; margin-left : -10px; margin-right : -
10px; padding : .7em 0 .4em .5em; font-size : 108%; line-height : 116%; }
29KUDOS Conference, May 2-3, 2011
Changing the Masthead Style
• To change color and remove the top border line, but
leave the rest of the default settings alone, you could
add this style change in OPACUserCSS:
#opac-main-search { background: #bdbdbd; border-top:none }
30KUDOS Conference, May 2-3, 2011
Style Changes – Single Site
• If you only have a few simple changes, you can make
them in the OPACUserCSS syspref, as shown in
previous examples.
• If you want to make a lot of stylesheet changes, you
can copy the delivered opac.css file and adapt it.
• You can either revise it completely, or strip it down to
just the settings you want to change.
31KUDOS Conference, May 2-3, 2011
Single Site (con’t)
• To completely replace the delivered opac.css, enter
the location for the new stylesheet in the
opacstylesheet syspref.
• To make only specified changes but otherwise use
default settings, enter the location for your auxiliary
stylesheet in the opaccolorstylesheet syspref.
• Both sysprefs can take a complete URL, for a
stylesheet stored on another server.
32KUDOS Conference, May 2-3, 2011
Stylesheet Precedence
• The system first applies the settings in the opac.css
file (or in the file you’ve specified in the
opacstylesheet syspref).
• If you’ve specified an auxiliary stylesheet in the
opaccolorstylesheet syspref, that overrides the
opac.css settings.
• If you’ve entered changes in the OPACUserCSS
syspref, that overrides everything.
33KUDOS Conference, May 2-3, 2011
Customizations for Multiple URL Sites
• Multiple URLs are configured in the apache virtual
hosts file. This entry can specify a stylesheet and a
default search setting (usually one or more
branchcodes; other settings are possible like shelving
locations):
SetEnvIf Host "salpublib.kohalibrary.com"
OPAC_SEARCH_LIMIT=branch:SPL OPAC_LIMIT_OVERRIDE
OPAC_CSS_OVERRIDE=opac-salina.css
SetEnvIf Host "kwu.kohalibrary.com" OPAC_SEARCH_LIMIT=branch:KWU
OPAC_LIMIT_OVERRIDE OPAC_CSS_OVERRIDE=opac-kw.css
34KUDOS Conference, May 2-3, 2011
35KUDOS Conference, May 2-3, 2011
36KUDOS Conference, May 2-3, 2011
Multiple URL Sites (con’t)
• In current code, the stylesheet must live on the Koha
server (under kohaclone/koha-tmpl/opac-
tmpl/prog/en/css).
• Do not use opacstylesheet or opaccolorstylesheet
sysprefs for external stylesheets – handle in apache.
• Multiple URL sites must use an auxiliary stylesheet –
no settings in OPACUserCSS syspref unless they’re
meant to apply to all interfaces.
37KUDOS Conference, May 2-3, 2011
Multiple URL Sites (con’t)
• LibLime’s newer code allows for stylesheets to be
stored remotely with this syntax:
SetEnvIf Host "grandisland.pioneer.kohalibrary.com"
OPAC_SEARCH_LIMIT=branch:EA
OPAC_CSS_EXTERNAL=http://cdn.kohalibrary.com/c/pioneer/
opac-pioneer-grandisland.css
• We are developing code to remove stylesheet
settings from the apache setup and let it be handled
through the Koha configuration.
38KUDOS Conference, May 2-3, 2011
Multiple URL Sites (con’t)
• Entries in all the text sysprefs must use unique <div>
identifiers:
39KUDOS Conference, May 2-3, 2011
Multiple URL Sites (con’t)
• Use a controlling stylesheet for the entire site that
hides all of the <div> entries, and has any settings
common to all.
• Use individual stylesheets that import the controlling
stylesheet and then turn on display for only that
site’s <div> entries.
• The individual stylesheets can also changes colors,
fonts, etc. as desired.
40KUDOS Conference, May 2-3, 2011
Beginning of Controlling Stylesheet
#navcommon { font-size:85%; }
#parindent { text-indent: 1em; }
#ft {font-size : 88%; text-align :center; font-style : italic; }
#logo_leftkendrick { display: none; }
#opacheaderkendrick { display: none; }
#navkendrick { display: none; }
#kendrickmain { display: none; }
#logo_leftHC-bigspring { display: none; }
#opacheaderHC-bigspring { display: none; }
#navHC-bigspring { display: none; }
#HC-bigspringmain { display: none; }
(continues with entries for all branches)
41KUDOS Conference, May 2-3, 2011
Site-Specific Stylesheet
@import url("http://cdn.kohalibrary.com/c/wtls/opac-wtls-blank.css");
#logo_leftkendrick { display: block; FLOAT: left; POSITION: relative; PADDING-
LEFT: 5px; PADDING-TOP: 0px; }
#opacheaderkendrick { display: block; height: 140px; margin-bottom: 0px;
margin-left: -10px; margin-right: -10px; }
#navkendrick { display: block; font-size:85%; }
#kendrickmain { display: block;}
#opac-main-search { background: #428F4B none; }
42KUDOS Conference, May 2-3, 2011
43KUDOS Conference, May 2-3, 2011
44KUDOS Conference, May 2-3, 2011
Multiple URL Sites (con’t)
• What can be done by really good web developers:
45KUDOS Conference, May 2-3, 2011
Multiple URL Sites (con’t)
• Enter <div> IDs and site-specific text in any/all of the
text sysprefs as desired; control display with
stylesheet settings (display: none or display: block)
• Usually you’ll want to change at least opacheader,
OpacNav, and OpacMainUserBlock.
• You can keep a similar theme/look across sites, or go
with very different looks.
• You can have a common block of text on all sites.
46KUDOS Conference, May 2-3, 2011
Jquery Changes
• Jquery is a JavaScript library that allows some
customization of OPAC and staff interfaces.
• You can change wording or hide sections if desired.
• It depends on how the underlying page is coded.
• Changes are system-wide; you can’t restrict to one
interface of a multiple-URL system.
47KUDOS Conference, May 2-3, 2011
Jquery Changes (con’t)
• OPAC changes are done in the opacuserjs syspref;
staff changes are done in the intranetuserjs syspref.
• Use Firebug to identify labels or identifiers
• Use jquery code to rename or hide the area.
• If the underlying template doesn’t have a unique
identifier, it can be difficult or impossible to affect
that area of the page with jquery.
48KUDOS Conference, May 2-3, 2011
49KUDOS Conference, May 2-3, 2011
Jquery Changes (con’t)
• To hide Street number label and field in staff patron
edit screen, enter this in the intranetuserjs syspref:
$(document).ready(function(){
$("#entryform #streetnumber").parent().remove();
});
50KUDOS Conference, May 2-3, 2011
Jquery Changes (con’t)
• The syspref entries must start with
$(document).ready(function(){
• And end with
});
• You can have multiple commands between those
lines.
51KUDOS Conference, May 2-3, 2011
Jquery Changes (con’t)
52KUDOS Conference, May 2-3, 2011
Jquery Changes (con’t)
• In opacuserjs syspref, this code will hide the login box
on the main OPAC screen:
$(document).ready(function(){
$('#login').hide();
});
53KUDOS Conference, May 2-3, 2011
Resources: Jquery
 http://jquery.com -- the main jquery site (resources, tutorials,
documentation).
 http://www.noupe.com/jquery/50-amazing-jquery-examples-part1.html --
jquery examples.
 http://webdesignerwall.com/tutorials/jquery-tutorials-for-designers --
jquery tutorials.
 http://www.learningjquery.com/2006/11/documentation-and-support-
resources-for-jquery -- documentation and resources for jquery.
 http://wiki.koha-community.org/wiki/JQuery_Library -- community library
of useful jquery statements.
54KUDOS Conference, May 2-3, 2011
Resources: HTML and CSS
 http://www.ampsoft.net/webdesign-
l/WindowsMacFonts.html -- list of all fonts common to
Windows and Macs (browser-safe fonts).
 http://web.mit.edu/jmorzins/www/fonts.html -- a writeup
describing the safest fonts to use in web sites.
 http://www.w3schools.com/html/default.asp -- HTML tutorial
site.
 http://webdesign.about.com/od/xhtml/u/htmlcssxml.htm --
Learn HTML / CSS / XML reference site.
 http://xhtml.com/en/css/reference/ -- CSS reference site.
55KUDOS Conference, May 2-3, 2011
Resources: Matching Colors
 http://www.colr.org/ -- either upload an image file or point to
a URL for an image, then click on an area in the image to get
the exact hex code used.
 http://www.degraeve.com/color-palette/ -- point to a URL for
an image; shows the hex codes for all the colors in that image.
 http://w3schools.com/tags/ref_colorpicker.asp -- click on
various colors in the scale and get the hex code.
 http://www.hextractor.com/ -- paste a .css fragment (or read
a complete stylesheet) and see all the color settings in it.
56KUDOS Conference, May 2-3, 2011
Resources: Firefox Plugins
 https://addons.mozilla.org/en-US/firefox/addon/firebug --
Firebug allows you to inspect HTML and style settings for any
part of a web page.
 https://addons.mozilla.org/en-US/firefox/addon/html-
validator -- HTML Validator checks for errors in HTML on any
web page.
 https://addons.mozilla.org/en-US/firefox/addon/colorzilla --
ColorZilla can select a point in a page or image and give you
the hex code for the color.
57KUDOS Conference, May 2-3, 2011
Resources: Koha-Specific
 http://www.myacpl.org/koha/?p=160 -- Owen Leonard's
KohaCon 2009 presentation on OPAC customizations.
 http://www.myacpl.org/koha -- Owen Leonard's blog with
multiple posts on customizating OPAC and staff interfaces.
 http://wiki.koha-
community.org/wiki/Support_for_multiple_PAC_interfaces_b
y_URL_RFC -- RFC on configuring apache for multiple URLs
(our implementation has gone beyond this in many ways).
58KUDOS Conference, May 2-3, 2011
Resources: Koha-Specific (con’t)
 http://bugs.koha-
community.org/bugzilla3/show_bug.cgi?id=3244 -- Bug 3244
initial support for multiple OPACs for libraries sharing a single
Koha database (original Koha patch; usage examples)
 http://bugs.koha-
community.org/bugzilla3/show_bug.cgi?id=4394 -- Bug 4394
opaccolorstylesheet syspref won't allow an external URL
(Koha patch to allow remote storage of auxiliary stylesheet)
59KUDOS Conference, May 2-3, 2011
Questions?
Jane Wagner
Senior Project Manager
LibLime A Division of PTFS, Inc.
jwagner@liblime.com
60KUDOS Conference, May 2-3, 2011

More Related Content

What's hot

LIS 653, Session 10: Controlled Vocabulary
LIS 653, Session 10: Controlled VocabularyLIS 653, Session 10: Controlled Vocabulary
LIS 653, Session 10: Controlled VocabularyDr. Starr Hoffman
 
ASTINFO & APINESS
ASTINFO & APINESS ASTINFO & APINESS
ASTINFO & APINESS Manish Aarya
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Ata Rehman
 
Current trends in library science research
Current trends in library science researchCurrent trends in library science research
Current trends in library science researchVISHNUMAYA R S
 
Library of congress subject heading
Library of congress subject headingLibrary of congress subject heading
Library of congress subject headingMahendraAdhikari7
 
Retroconversion of documents
Retroconversion of documentsRetroconversion of documents
Retroconversion of documentskmusthu1
 
Source of finance in library
Source of finance in librarySource of finance in library
Source of finance in libraryJawad Khan
 
Functional Requirements For Bibliographic Records - FRBR
Functional Requirements For Bibliographic Records - FRBRFunctional Requirements For Bibliographic Records - FRBR
Functional Requirements For Bibliographic Records - FRBRIslamic University of Lebanon
 
Metadata an overview
Metadata an overviewMetadata an overview
Metadata an overviewrobin fay
 
Taxonomy, ontology, folksonomies & SKOS.
Taxonomy, ontology, folksonomies & SKOS.Taxonomy, ontology, folksonomies & SKOS.
Taxonomy, ontology, folksonomies & SKOS.Janet Leu
 
Green library _ A desideratum feature of libraries
Green library _ A desideratum feature of librariesGreen library _ A desideratum feature of libraries
Green library _ A desideratum feature of librariesGeeta Gadhavi
 

What's hot (20)

LIS 653, Session 10: Controlled Vocabulary
LIS 653, Session 10: Controlled VocabularyLIS 653, Session 10: Controlled Vocabulary
LIS 653, Session 10: Controlled Vocabulary
 
Koha
KohaKoha
Koha
 
Libsys 7 to koha
Libsys 7 to kohaLibsys 7 to koha
Libsys 7 to koha
 
ASTINFO & APINESS
ASTINFO & APINESS ASTINFO & APINESS
ASTINFO & APINESS
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 
Classified Catalogue Code (ccc)
Classified Catalogue Code (ccc)Classified Catalogue Code (ccc)
Classified Catalogue Code (ccc)
 
International Digital Library Initiatives
International Digital Library InitiativesInternational Digital Library Initiatives
International Digital Library Initiatives
 
Current trends in library science research
Current trends in library science researchCurrent trends in library science research
Current trends in library science research
 
collection development ppt
collection development pptcollection development ppt
collection development ppt
 
Library of congress subject heading
Library of congress subject headingLibrary of congress subject heading
Library of congress subject heading
 
Marc format
Marc formatMarc format
Marc format
 
S.R. Ranganathan:Three Planes of Work.
S.R. Ranganathan:Three Planes of Work.S.R. Ranganathan:Three Planes of Work.
S.R. Ranganathan:Three Planes of Work.
 
Koha 2.9 Windows Staff Client and Opac
Koha 2.9 Windows Staff Client and OpacKoha 2.9 Windows Staff Client and Opac
Koha 2.9 Windows Staff Client and Opac
 
Koha presentation2010
Koha presentation2010Koha presentation2010
Koha presentation2010
 
Retroconversion of documents
Retroconversion of documentsRetroconversion of documents
Retroconversion of documents
 
Source of finance in library
Source of finance in librarySource of finance in library
Source of finance in library
 
Functional Requirements For Bibliographic Records - FRBR
Functional Requirements For Bibliographic Records - FRBRFunctional Requirements For Bibliographic Records - FRBR
Functional Requirements For Bibliographic Records - FRBR
 
Metadata an overview
Metadata an overviewMetadata an overview
Metadata an overview
 
Taxonomy, ontology, folksonomies & SKOS.
Taxonomy, ontology, folksonomies & SKOS.Taxonomy, ontology, folksonomies & SKOS.
Taxonomy, ontology, folksonomies & SKOS.
 
Green library _ A desideratum feature of libraries
Green library _ A desideratum feature of librariesGreen library _ A desideratum feature of libraries
Green library _ A desideratum feature of libraries
 

Viewers also liked (7)

Koha presentation
Koha presentationKoha presentation
Koha presentation
 
Butler - Security Lessons Learned from an Ezproxy Admin
Butler - Security Lessons Learned from an Ezproxy AdminButler - Security Lessons Learned from an Ezproxy Admin
Butler - Security Lessons Learned from an Ezproxy Admin
 
Carver IT Security for Librarians
Carver IT Security for LibrariansCarver IT Security for Librarians
Carver IT Security for Librarians
 
Training on Koha
Training on KohaTraining on Koha
Training on Koha
 
The State of Library Management Systems 2016
The State of Library Management Systems 2016The State of Library Management Systems 2016
The State of Library Management Systems 2016
 
Koha Integration: LDAP
Koha Integration: LDAPKoha Integration: LDAP
Koha Integration: LDAP
 
Koha Cronjobs
Koha CronjobsKoha Cronjobs
Koha Cronjobs
 

Similar to Opac customization

Calyx presentation Pasifika Koha workshop koha customisations (1)
Calyx presentation Pasifika Koha workshop   koha customisations (1)Calyx presentation Pasifika Koha workshop   koha customisations (1)
Calyx presentation Pasifika Koha workshop koha customisations (1)CALYX information essentials
 
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreCreating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreSuzanne Dergacheva
 
Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Aslam Najeebdeen
 
Calyx-presentation-Pacifika-Koha-Workshop-September 10,2012 USP- Koha Customi...
Calyx-presentation-Pacifika-Koha-Workshop-September 10,2012 USP- Koha Customi...Calyx-presentation-Pacifika-Koha-Workshop-September 10,2012 USP- Koha Customi...
Calyx-presentation-Pacifika-Koha-Workshop-September 10,2012 USP- Koha Customi...CALYX information essentials
 
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...Patrick Lauke
 
Creating websites with SXA in 15 minutes
Creating websites with SXA in 15 minutesCreating websites with SXA in 15 minutes
Creating websites with SXA in 15 minutesGert Gullentops
 
[Worskhop Summits] CSS3 Workshop
[Worskhop Summits] CSS3 Workshop[Worskhop Summits] CSS3 Workshop
[Worskhop Summits] CSS3 WorkshopChristopher Schmitt
 
web technologiesUnit 1
web technologiesUnit 1web technologiesUnit 1
web technologiesUnit 1Pathi Radhika
 
Html and css easy steps
Html and css easy stepsHtml and css easy steps
Html and css easy stepsBiswa Ranjan
 
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5Akshay Katyal
 
ITECH2106-6106 Lab01-HTML CSS Intro and Needs Analysis.pdf.docx
ITECH2106-6106 Lab01-HTML CSS Intro and Needs Analysis.pdf.docxITECH2106-6106 Lab01-HTML CSS Intro and Needs Analysis.pdf.docx
ITECH2106-6106 Lab01-HTML CSS Intro and Needs Analysis.pdf.docxchristiandean12115
 
Basic html training national
Basic html training nationalBasic html training national
Basic html training nationalNeedanuts
 

Similar to Opac customization (20)

Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
 
Calyx presentation Pasifika Koha workshop koha customisations (1)
Calyx presentation Pasifika Koha workshop   koha customisations (1)Calyx presentation Pasifika Koha workshop   koha customisations (1)
Calyx presentation Pasifika Koha workshop koha customisations (1)
 
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon BaltimoreCreating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
Creating Landing Pages and Layouts for Drupal 8 - DrupalCon Baltimore
 
Web Design Bootcamp - Day1
Web Design Bootcamp - Day1Web Design Bootcamp - Day1
Web Design Bootcamp - Day1
 
Html Css
Html CssHtml Css
Html Css
 
Calyx-presentation-Pacifika-Koha-Workshop-September 10,2012 USP- Koha Customi...
Calyx-presentation-Pacifika-Koha-Workshop-September 10,2012 USP- Koha Customi...Calyx-presentation-Pacifika-Koha-Workshop-September 10,2012 USP- Koha Customi...
Calyx-presentation-Pacifika-Koha-Workshop-September 10,2012 USP- Koha Customi...
 
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
 
03html Css
03html Css03html Css
03html Css
 
Html css
Html cssHtml css
Html css
 
Creating websites with SXA in 15 minutes
Creating websites with SXA in 15 minutesCreating websites with SXA in 15 minutes
Creating websites with SXA in 15 minutes
 
Oenology
OenologyOenology
Oenology
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
 
[Worskhop Summits] CSS3 Workshop
[Worskhop Summits] CSS3 Workshop[Worskhop Summits] CSS3 Workshop
[Worskhop Summits] CSS3 Workshop
 
xhtml_css.ppt
xhtml_css.pptxhtml_css.ppt
xhtml_css.ppt
 
web technologiesUnit 1
web technologiesUnit 1web technologiesUnit 1
web technologiesUnit 1
 
Html css
Html cssHtml css
Html css
 
Html and css easy steps
Html and css easy stepsHtml and css easy steps
Html and css easy steps
 
Introduction to html5
Introduction to html5Introduction to html5
Introduction to html5
 
ITECH2106-6106 Lab01-HTML CSS Intro and Needs Analysis.pdf.docx
ITECH2106-6106 Lab01-HTML CSS Intro and Needs Analysis.pdf.docxITECH2106-6106 Lab01-HTML CSS Intro and Needs Analysis.pdf.docx
ITECH2106-6106 Lab01-HTML CSS Intro and Needs Analysis.pdf.docx
 
Basic html training national
Basic html training nationalBasic html training national
Basic html training national
 

Recently uploaded

Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Natan Silnitsky
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Hr365.us smith
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfLivetecs LLC
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfIdiosysTechnologies1
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based projectAnoyGreter
 

Recently uploaded (20)

Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)Recruitment Management Software Benefits (Infographic)
Recruitment Management Software Benefits (Infographic)
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdf
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdf
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
MYjobs Presentation Django-based project
MYjobs Presentation Django-based projectMYjobs Presentation Django-based project
MYjobs Presentation Django-based project
 

Opac customization

  • 1. OPAC Customizations in Single and Multi-Library Sites Jane Wagner Senior Project Manager LibLime Prepared for: KUDOS Conference, May 2-3, 2011
  • 2. Things to Cover • How to customize the OPAC • How to configure for multiple libraries • Various resources 2KUDOS Conference, May 2-3, 2011
  • 3. What Can Be Customized • Add the library name in the browser’s top bar • Insert an image or text into the header area • Change the masthead color to match the header image • Change or hide the masthead image • Add text/links/images into the lefthand sidebar 3KUDOS Conference, May 2-3, 2011
  • 4. What Can Be Customized • Add text/links/images into the main part of the front page • Add a customized footer • Make various stylesheet changes (color, font, size, etc.) • Use jquery to change wording or hide certain areas 4KUDOS Conference, May 2-3, 2011
  • 5. The Library Name • The browser header (syspref LibraryName). The system adds “Catalog” after your entry. 5KUDOS Conference, May 2-3, 2011
  • 6. The OPAC Header • The OPAC header area (syspref opacheader). Use for logo or text. 6KUDOS Conference, May 2-3, 2011
  • 7. The OPAC header (con’t) • Use OPACUserCSS syspref to change the default Koha blue masthead (to match the image/logo color or the site’s preferred color – need the hex code for the color): 7KUDOS Conference, May 2-3, 2011
  • 8. The OPAC Header (con’t) • This example’s combination looks like: 8KUDOS Conference, May 2-3, 2011
  • 9. The OPAC Header (con’t) • You can also add menus or other HTML code into the header, and control their appearance with stylesheet entries: 9KUDOS Conference, May 2-3, 2011
  • 10. The OPAC Header (con’t) • Entry in OPACUserCSS for these menu links: #navcontainer ul { padding-left: 0; margin-left: 0; background- color:transparent; color: White; float: left; width: 100%; font-family: arial, helvetica, sans-serif; } #navcontainer ul li { display: inline; } #navcontainer ul li a { padding: .2em 1em; background-color: #036; color: White; text-decoration: none; float: left; margin: 0 5px 0 0; border-right: 1px solid #778; border-top: 1px solid #778; border- left: 1px solid #778; border-bottom: 1px solid #778; } #navcontainer ul li a:hover { background-color: #369; color: #fff; } 10KUDOS Conference, May 2-3, 2011
  • 11. The OPAC Header (con’t) 11KUDOS Conference, May 2-3, 2011
  • 12. Masthead Image • You can blank out the default Koha image in the masthead by setting the opacsmallimage syspref to a file that doesn’t exist, like this: /opac-tmpl/prog/images/NoImage.png • Or you can use an image of your own (recommended size is 120 wide x 40 tall pixels) and enter the path in the syspref: http://cdn.kohalibrary.com/c/wtls/TRUCAT.JPG 12KUDOS Conference, May 2-3, 2011
  • 13. Custom Masthead Images 13KUDOS Conference, May 2-3, 2011
  • 14. Left Sidebar (OpacNav) • You can put HTML formatted text or links in the OpacNav syspref. This will show at the lefthand side of most pages in the OPAC. • On patron account pages it will show above or below the sidebar links for those pages. • I recommend adding target= “_blank” or target = “_new” into all URLs, to make links open in a new window. 14KUDOS Conference, May 2-3, 2011
  • 15. Left Sidebar (con’t) 15KUDOS Conference, May 2-3, 2011
  • 16. Left Sidebar (con’t) 16KUDOS Conference, May 2-3, 2011
  • 17. Left Sidebar (con’t) • Another example, using the sidebar for library hours: 17KUDOS Conference, May 2-3, 2011
  • 18. Left Sidebar (con’t) • There was also an OPACUserCSS entry to change the font and color: 18KUDOS Conference, May 2-3, 2011
  • 19. Main Page Text • Use the OpacMainUserBlock for text/images/links that will display only on the main page of the OPAC. • This can be a simple “Welcome to the library” or a more complex page with forms and gadgets – whatever you can do in HTML. 19KUDOS Conference, May 2-3, 2011
  • 20. Main Page Text (con’t) 20KUDOS Conference, May 2-3, 2011
  • 21. Syspref Code for Previous Page <b>Welcome to the <a href="http://cbclibref.blogspot.com/2010/12/catalog-goes-koha.html" target="_blank">new</a> Columbia Basin College Library Catalog</b> <table><tr><td valign="top"><br /><b>Quick Links </b><p /> <ul><li><a href="http://bit.ly/newbooksbydate">New Books by Date</a> | <a href="http://bit.ly/newbooksbysubject">New Books by Subject</a></li> <li><a href="http://bit.ly/bksondisplay">Books on Display</a></li> <li><a href="http://bit.ly/fqdQJR">Videos for Loan</a> | <a href=" http://bit.ly/i4bq6S">New Videos</a> (published after 2007)</li> <li><a href="http://bit.ly/journalfinder" target="blank">CBC Journal Finder</a></li></ul><hr /> <b>Search Tips & Tutorials</b><ul><li>Type what words you know from the title, author and subject.</li> <li>You can limit your results by using the search drop-down list.</li> <li>Use the Advanced Search to further limit your results. </li> <li><a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-quick-tour.html" target="blank">Tutorial 1: Quick Tour (4:26 minutes) </a></li> <li><a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-simple-keyword-search.html" target="blank">Tutorial 2: Simple Keyword Search (4:39 minutes)</a></li> <li><a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-my-account.html" target="blank">Tutorial 3: My Account</a> ( 5 min) and <a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-place-hold.html" target="blank">Place Hold</a> (2 min)</li> <li><a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-subject-search-1.html" target="blank">Tutorial 4: Subject Search </a> ( 4 min) and <a href="http://cbclibtopic.blogspot.com/2011/01/catalog-tutorial-browse-shelf.html" target="blank">Browse Shelf </a>(1.5 min) </li></ul></td> <td VALIGN="top"><!-- Beginning of QuestionPoint qwidget code. --> <div id="qpchatwidget" ></div> <script id="qp.bootstrap" type="text/javascript" src="http://www.questionpoint.org/crs/js/qwidget/qp.bootstrap.js?langcode=1&instid=13192&skin=gray&size=standard" charset="utf- 8">//<noscript>Please enable javascript to chat with librarians online</noscript></script></td></tr></table> 21KUDOS Conference, May 2-3, 2011
  • 22. Main Page Text (con’t) • Another (simpler) example: 22KUDOS Conference, May 2-3, 2011
  • 23. Main Page Text (con’t) 23KUDOS Conference, May 2-3, 2011
  • 24. Footer Area • The opaccredits syspref can be used for text that should show at the bottom of every page. • This is an ideal location for library address and contact information, or information about the library system. 24KUDOS Conference, May 2-3, 2011
  • 25. Footer Area (con’t) 25KUDOS Conference, May 2-3, 2011
  • 26. Footer Area (con’t) 26KUDOS Conference, May 2-3, 2011 Stylesheet entry of: #ft {font-size : 88%; text-align :center; font-style : italic; }
  • 27. Style Changes -- Identifying What to Change • Firefox plugin Firebug lets you look at a section of the page and identify the label and style settings. • Right-click the area, choose Inspect Element, and look at the bottom part of the screen. • You can make temporary changes in the Firebug screen (altering color, height, font, etc.) to see how it looks. • Example Firebug screen on next slide. 27KUDOS Conference, May 2-3, 2011
  • 28. Firebug – Masthead Highlighted 28KUDOS Conference, May 2-3, 2011
  • 29. Look for <div> IDs or Labels • The HTML code for the masthead area is <div id="opac-main-search"> • The default stylesheet entry in the controlling opac.css file is #opac-main-search { background-image : url( ../../images/menu- background.gif); background-repeat : repeat-x; background-color : #739ACF; background-position : -10px top; border-top : 1px solid #335599; border-bottom : 1px solid #335599; margin-left : -10px; margin-right : - 10px; padding : .7em 0 .4em .5em; font-size : 108%; line-height : 116%; } 29KUDOS Conference, May 2-3, 2011
  • 30. Changing the Masthead Style • To change color and remove the top border line, but leave the rest of the default settings alone, you could add this style change in OPACUserCSS: #opac-main-search { background: #bdbdbd; border-top:none } 30KUDOS Conference, May 2-3, 2011
  • 31. Style Changes – Single Site • If you only have a few simple changes, you can make them in the OPACUserCSS syspref, as shown in previous examples. • If you want to make a lot of stylesheet changes, you can copy the delivered opac.css file and adapt it. • You can either revise it completely, or strip it down to just the settings you want to change. 31KUDOS Conference, May 2-3, 2011
  • 32. Single Site (con’t) • To completely replace the delivered opac.css, enter the location for the new stylesheet in the opacstylesheet syspref. • To make only specified changes but otherwise use default settings, enter the location for your auxiliary stylesheet in the opaccolorstylesheet syspref. • Both sysprefs can take a complete URL, for a stylesheet stored on another server. 32KUDOS Conference, May 2-3, 2011
  • 33. Stylesheet Precedence • The system first applies the settings in the opac.css file (or in the file you’ve specified in the opacstylesheet syspref). • If you’ve specified an auxiliary stylesheet in the opaccolorstylesheet syspref, that overrides the opac.css settings. • If you’ve entered changes in the OPACUserCSS syspref, that overrides everything. 33KUDOS Conference, May 2-3, 2011
  • 34. Customizations for Multiple URL Sites • Multiple URLs are configured in the apache virtual hosts file. This entry can specify a stylesheet and a default search setting (usually one or more branchcodes; other settings are possible like shelving locations): SetEnvIf Host "salpublib.kohalibrary.com" OPAC_SEARCH_LIMIT=branch:SPL OPAC_LIMIT_OVERRIDE OPAC_CSS_OVERRIDE=opac-salina.css SetEnvIf Host "kwu.kohalibrary.com" OPAC_SEARCH_LIMIT=branch:KWU OPAC_LIMIT_OVERRIDE OPAC_CSS_OVERRIDE=opac-kw.css 34KUDOS Conference, May 2-3, 2011
  • 37. Multiple URL Sites (con’t) • In current code, the stylesheet must live on the Koha server (under kohaclone/koha-tmpl/opac- tmpl/prog/en/css). • Do not use opacstylesheet or opaccolorstylesheet sysprefs for external stylesheets – handle in apache. • Multiple URL sites must use an auxiliary stylesheet – no settings in OPACUserCSS syspref unless they’re meant to apply to all interfaces. 37KUDOS Conference, May 2-3, 2011
  • 38. Multiple URL Sites (con’t) • LibLime’s newer code allows for stylesheets to be stored remotely with this syntax: SetEnvIf Host "grandisland.pioneer.kohalibrary.com" OPAC_SEARCH_LIMIT=branch:EA OPAC_CSS_EXTERNAL=http://cdn.kohalibrary.com/c/pioneer/ opac-pioneer-grandisland.css • We are developing code to remove stylesheet settings from the apache setup and let it be handled through the Koha configuration. 38KUDOS Conference, May 2-3, 2011
  • 39. Multiple URL Sites (con’t) • Entries in all the text sysprefs must use unique <div> identifiers: 39KUDOS Conference, May 2-3, 2011
  • 40. Multiple URL Sites (con’t) • Use a controlling stylesheet for the entire site that hides all of the <div> entries, and has any settings common to all. • Use individual stylesheets that import the controlling stylesheet and then turn on display for only that site’s <div> entries. • The individual stylesheets can also changes colors, fonts, etc. as desired. 40KUDOS Conference, May 2-3, 2011
  • 41. Beginning of Controlling Stylesheet #navcommon { font-size:85%; } #parindent { text-indent: 1em; } #ft {font-size : 88%; text-align :center; font-style : italic; } #logo_leftkendrick { display: none; } #opacheaderkendrick { display: none; } #navkendrick { display: none; } #kendrickmain { display: none; } #logo_leftHC-bigspring { display: none; } #opacheaderHC-bigspring { display: none; } #navHC-bigspring { display: none; } #HC-bigspringmain { display: none; } (continues with entries for all branches) 41KUDOS Conference, May 2-3, 2011
  • 42. Site-Specific Stylesheet @import url("http://cdn.kohalibrary.com/c/wtls/opac-wtls-blank.css"); #logo_leftkendrick { display: block; FLOAT: left; POSITION: relative; PADDING- LEFT: 5px; PADDING-TOP: 0px; } #opacheaderkendrick { display: block; height: 140px; margin-bottom: 0px; margin-left: -10px; margin-right: -10px; } #navkendrick { display: block; font-size:85%; } #kendrickmain { display: block;} #opac-main-search { background: #428F4B none; } 42KUDOS Conference, May 2-3, 2011
  • 45. Multiple URL Sites (con’t) • What can be done by really good web developers: 45KUDOS Conference, May 2-3, 2011
  • 46. Multiple URL Sites (con’t) • Enter <div> IDs and site-specific text in any/all of the text sysprefs as desired; control display with stylesheet settings (display: none or display: block) • Usually you’ll want to change at least opacheader, OpacNav, and OpacMainUserBlock. • You can keep a similar theme/look across sites, or go with very different looks. • You can have a common block of text on all sites. 46KUDOS Conference, May 2-3, 2011
  • 47. Jquery Changes • Jquery is a JavaScript library that allows some customization of OPAC and staff interfaces. • You can change wording or hide sections if desired. • It depends on how the underlying page is coded. • Changes are system-wide; you can’t restrict to one interface of a multiple-URL system. 47KUDOS Conference, May 2-3, 2011
  • 48. Jquery Changes (con’t) • OPAC changes are done in the opacuserjs syspref; staff changes are done in the intranetuserjs syspref. • Use Firebug to identify labels or identifiers • Use jquery code to rename or hide the area. • If the underlying template doesn’t have a unique identifier, it can be difficult or impossible to affect that area of the page with jquery. 48KUDOS Conference, May 2-3, 2011
  • 50. Jquery Changes (con’t) • To hide Street number label and field in staff patron edit screen, enter this in the intranetuserjs syspref: $(document).ready(function(){ $("#entryform #streetnumber").parent().remove(); }); 50KUDOS Conference, May 2-3, 2011
  • 51. Jquery Changes (con’t) • The syspref entries must start with $(document).ready(function(){ • And end with }); • You can have multiple commands between those lines. 51KUDOS Conference, May 2-3, 2011
  • 52. Jquery Changes (con’t) 52KUDOS Conference, May 2-3, 2011
  • 53. Jquery Changes (con’t) • In opacuserjs syspref, this code will hide the login box on the main OPAC screen: $(document).ready(function(){ $('#login').hide(); }); 53KUDOS Conference, May 2-3, 2011
  • 54. Resources: Jquery  http://jquery.com -- the main jquery site (resources, tutorials, documentation).  http://www.noupe.com/jquery/50-amazing-jquery-examples-part1.html -- jquery examples.  http://webdesignerwall.com/tutorials/jquery-tutorials-for-designers -- jquery tutorials.  http://www.learningjquery.com/2006/11/documentation-and-support- resources-for-jquery -- documentation and resources for jquery.  http://wiki.koha-community.org/wiki/JQuery_Library -- community library of useful jquery statements. 54KUDOS Conference, May 2-3, 2011
  • 55. Resources: HTML and CSS  http://www.ampsoft.net/webdesign- l/WindowsMacFonts.html -- list of all fonts common to Windows and Macs (browser-safe fonts).  http://web.mit.edu/jmorzins/www/fonts.html -- a writeup describing the safest fonts to use in web sites.  http://www.w3schools.com/html/default.asp -- HTML tutorial site.  http://webdesign.about.com/od/xhtml/u/htmlcssxml.htm -- Learn HTML / CSS / XML reference site.  http://xhtml.com/en/css/reference/ -- CSS reference site. 55KUDOS Conference, May 2-3, 2011
  • 56. Resources: Matching Colors  http://www.colr.org/ -- either upload an image file or point to a URL for an image, then click on an area in the image to get the exact hex code used.  http://www.degraeve.com/color-palette/ -- point to a URL for an image; shows the hex codes for all the colors in that image.  http://w3schools.com/tags/ref_colorpicker.asp -- click on various colors in the scale and get the hex code.  http://www.hextractor.com/ -- paste a .css fragment (or read a complete stylesheet) and see all the color settings in it. 56KUDOS Conference, May 2-3, 2011
  • 57. Resources: Firefox Plugins  https://addons.mozilla.org/en-US/firefox/addon/firebug -- Firebug allows you to inspect HTML and style settings for any part of a web page.  https://addons.mozilla.org/en-US/firefox/addon/html- validator -- HTML Validator checks for errors in HTML on any web page.  https://addons.mozilla.org/en-US/firefox/addon/colorzilla -- ColorZilla can select a point in a page or image and give you the hex code for the color. 57KUDOS Conference, May 2-3, 2011
  • 58. Resources: Koha-Specific  http://www.myacpl.org/koha/?p=160 -- Owen Leonard's KohaCon 2009 presentation on OPAC customizations.  http://www.myacpl.org/koha -- Owen Leonard's blog with multiple posts on customizating OPAC and staff interfaces.  http://wiki.koha- community.org/wiki/Support_for_multiple_PAC_interfaces_b y_URL_RFC -- RFC on configuring apache for multiple URLs (our implementation has gone beyond this in many ways). 58KUDOS Conference, May 2-3, 2011
  • 59. Resources: Koha-Specific (con’t)  http://bugs.koha- community.org/bugzilla3/show_bug.cgi?id=3244 -- Bug 3244 initial support for multiple OPACs for libraries sharing a single Koha database (original Koha patch; usage examples)  http://bugs.koha- community.org/bugzilla3/show_bug.cgi?id=4394 -- Bug 4394 opaccolorstylesheet syspref won't allow an external URL (Koha patch to allow remote storage of auxiliary stylesheet) 59KUDOS Conference, May 2-3, 2011
  • 60. Questions? Jane Wagner Senior Project Manager LibLime A Division of PTFS, Inc. jwagner@liblime.com 60KUDOS Conference, May 2-3, 2011