[ipac] Font size in HIP 3 in Firefox

Steven K. Bowers sbowers at wayne.edu
Fri Feb 22 08:22:42 EST 2008


Thanks for this work around Ed!

-S

Steven K. Bowers
sbowers at wayne.edu

Detroit Area Library Network
www.dalnet.lib.mi.us

phone 313-577-6789
fax 313-577-1231


-----Original Message-----
From: ipac-bounces at lists.tblc.org [mailto:ipac-bounces at lists.tblc.org] On
Behalf Of Ed Moeller
Sent: Thursday, February 21, 2008 5:39 PM
To: ipac at lists.tblc.org
Subject: [ipac] Font size in HIP 3 in Firefox

Fellow HIP sufferers,

I've been setting up HIP 3.09 in anticipation of the glorious day when I
can lay HIP 4 to rest. In the process of relearning old tricks, I think
I've stumbled on a fix to one long standing gripe I've had with HIP 3 - the
small size of the font. Outside of the tabs, the font in Firefox was one
size too small for this old dog.

This section of code in searchresponse.xsl controls which cascading style
sheet is used:
<xsl:choose>
<xsl:when test="/searchresponse/browser/type = 'NN' and
/searchresponse/browser/majorversion = '4'">
<xsl:attribute name = "href">/hipres/css/ipacNN.css</xsl:attribute>
</xsl:when>
<xsl:when test="/searchresponse/browser/type = 'NN' and
/searchresponse/browser/majorversion = '5'">
<xsl:attribute name = "href">/hipres/css/ipac.css</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name = "href">/hipres/css/ipac.css</xsl:attribute>
</xsl:otherwise>
</xsl:choose>

For those that aren't native XSL speakers, this says:  "If Netscape
Navigator 4, use the Netscape style sheet(ipacNN.css). If Netscape 5 or any
other browser, use the base ipac.css stylesheet." Firefox and Netscape 7
identify as version 5, and while they don't handle style sheets like
Netscape 4 (fixed point sizes rather than relative sizes), they don't
handle the base font like IE, Opera, Safari, etc.

For the fix, I made one change to ipac.css and saved it as ipacMz.css. The
font for the body was changed from:
body, td {
	font-size: small;
	font-family: arial unicode MS, lucida sans unicode, helvetica,
arial,
sans-serif;
}
to
body, td {
	font-size: medium;
	font-family: arial unicode MS, lucida sans unicode, helvetica,
arial,
sans-serif;
}
In the section of code above after majorversion = '5', I changed the line
to read:
<xsl:attribute name = "href">/hipres/css/ipacMz.css</xsl:attribute>

After saving the files to the server, and restarting the XSL processor and
JBoss, the fonts in Firefox are the same size as IE. 

Of course this isn't supported by SD, backup your changed files first,
comment all changes, your mileage may vary, don't shoot me I'm too close to
retirement...

Ed Moeller, Library Systems Analyst                        
DeKalb County Public Library       
3560 Kensington Rd.               
Decatur, GA  30032
Voice:  (404) 508-7190x24  Fax:  (404) 508-7184
INTERNET: mailto://moellere@dekalblibrary.org
          http://www.dekalblibrary.org
...and if you take cranberries and stew them like apple sauce, 
it tastes much more like prunes than rhubarb does.-- G. Marx


_______________________________________________
ipac mailing list
ipac at lists.tblc.org
http://lists.tblc.org/mailman/listinfo/ipac




More information about the ipac mailing list