Well, shoot, I got bit by the ol' cocoon cache. Darn me. Manually cleared the
cache, and there was my ie7 stylesheet. {sheepish grin} nevermind.
--Hardy
> -----Original Message-----
> From: Pottinger, Hardy J. [mailto:[email protected]]
> Sent: Friday, January 21, 2011 2:13 PM
> To: [email protected]
> Subject: [Dspace-tech] help with browser-specific stylesheets in xmlui
>
> Hi, I am working with XMLUI, and am trying to set up a browser-specific
> stylesheet for IE7, without this same stylesheet also triggering for IE8
> or higher. I'm using DSpace 1.6.2. Here's the relevant section of my
> theme's sitemap:
>
> <!-- Step 2 Add page metadata -->
> <map:select type="browser">
>
> <!-- Internet explorer 8 -->
> <map:when test="explorer8">
> <map:transform type="IncludePageMeta">
> <map:parameter name="stylesheet.screen#1"
> value="lib/style.css"/>
>
> <map:parameter name="theme.path"
> value="{global:theme-path}"/>
> <map:parameter name="theme.name"
> value="{global:theme-name}"/>
>
> <map:parameter name="javascript#1"
> value="lib/jquery-1.3.2.min.js"/>
> <map:parameter name="javascript#2"
> value="lib/mospace-jquery.js"/>
>
> </map:transform>
> </map:when>
> <!-- Internet explorer 7 -->
> <map:when test="explorer7">
> <map:transform type="IncludePageMeta">
> <map:parameter name="stylesheet.screen#1"
> value="lib/style.css"/>
> <map:parameter name="stylesheet.screen#2"
> value="lib/style-ie7.css"/>
>
> <map:parameter name="theme.path"
> value="{global:theme-path}"/>
> <map:parameter name="theme.name"
> value="{global:theme-name}"/>
>
> <map:parameter name="javascript#1"
> value="lib/jquery-1.3.2.min.js"/>
> <map:parameter name="javascript#2"
> value="lib/mospace-jquery.js"/>
>
> </map:transform>
> </map:when>
> <!-- Internet explorer 6 -->
> <map:when test="explorer6">
> <map:transform type="IncludePageMeta">
> <map:parameter name="stylesheet.screen#1"
> value="lib/style.css"/>
> <map:parameter name="stylesheet.screen#2"
> value="lib/style-ie6.css"/>
>
> <map:parameter name="theme.path"
> value="{global:theme-path}"/>
> <map:parameter name="theme.name"
> value="{global:theme-name}"/>
>
> <map:parameter name="javascript#1"
> value="lib/jquery-1.3.2.min.js"/>
> <map:parameter name="javascript#2"
> value="lib/mospace-jquery.js"/>
>
> </map:transform>
> </map:when>
> <map:otherwise>
> <map:transform type="IncludePageMeta">
> <map:parameter name="stylesheet.screen"
> value="lib/style.css"/>
>
> <map:parameter name="theme.path"
> value="{global:theme-path}"/>
> <map:parameter name="theme.name"
> value="{global:theme-name}"/>
>
> <map:parameter name="javascript#1"
> value="lib/jquery-1.3.2.min.js"/>
> <map:parameter name="javascript#2"
> value="lib/mospace-jquery.js"/>
>
> </map:transform>
> </map:otherwise>
> </map:select>
>
> When I visit my dev site with IE7, the only stylesheet I see is the
> standard style.css (unexpected behavior). When I visit my dev site with
> IE6, I see the both style.css and style-ie6.css (expected behavior).
> When I visit my dev site with IE8, I only see style.css (expected
> behavior).
>
> I've checked the logs, here's how the various browsers are identifying
> themselves:
>
> IE6 = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
> 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR
> 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR
> 3.5.30729)"
>
> IE7 = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"
>
> IE8 = "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
> Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR
> 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR
> 3.5.30729; InfoPath.2)"
>
> Any ideas?
>
> --
> HARDY POTTINGER <[email protected]>
> University of Missouri Library Systems
> http://lso.umsystem.edu/~pottingerhj/
> "No matter how far down the wrong road you've gone,
> turn back." --Turkish proverb
>
>
>
> ------------------------------------------------------------------------
> ------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-
> free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech