New DSpace theme for Scholarly Commons


Miami University Libraries launched a new website in August 2009 –and as part of the “web-design consistency” idea, we recently adapted the new look-and-feel to the Scholarly Commons project.  After all, consistency “makes sense” and it makes sites easier to use …in part because visitors don’t have to learn new tricks as they move around.

SC before-now

Anyway, the real work required some extra hours of -fun- editing/testing.  The power of CSS for web presentation was evident; I’d say that about 90% of the new look is purely based on CSS rules.  Getting the right DIV dimensions, font attributes was part of the challenge too, and that’s where 2 FireFox add-ons became extremely useful. ColorZilla is great color picker tool and Firebug is the perfect search/find tool for those unique DSpace DIV elements.

Of course, there were a couple of XSLT tricks as well.  For instance, DSpace -by default- displays 2 search boxes on the front page –not sure why?  But we only needed one, the challenge was how to remove/hide the search box on the <div id=”ds-body”> section …this was one required some extra searching/reading.  To make a long story short, the trick was to add a line of code in the theme.xsl file, restart tomcat and done!

<xsl:template match="dri:div[@n='front-page-search']">&#160;</xsl:template>

The last part of the work was the easiest one, just zip the new theme folder and send to OhioLINK, they replaced the old theme folder and bingo!

…now, in order to be -really- consistent, we should probably start thinking about another “re-design” …this time, for the Digital Collections website –oh well, that’s part of the to-do list already.

Quick note:

To give users the option of either password or LDPA login, add this line to the dspace.cfg file (look for Stackable Authentication Methods around line 294)

org.dspace.authenticate.LDAPAuthentication