Hi, all, I added the "share" menu posted by Stuart yesterday afternoon, and it seemed work ok. However this morning, I started to notice weird things: the stylesheet doesn't apply to all pages consistently. For example, the homepage and many other pages in ie7 display ok (load both style.css and style-ie7.css), but the communities pages don't load style-ie7.css. I never noticed this kind of problem before, the pages in the same browser display the same before (all bad, or all good). I tried to reverse to an earlier version of sitemap.xmap, tried to comment out the "share" section code in my local.xsl, and tried to use compatibility mode or not, however, some pages in ie7/ie8 still will load both style.css and style-ie7.css, some only load style.css. Also, some of my Safari pages will put out ie7 as well, which makes the pages really messed up. How can I fix this?
I attached my sitemap.xmap below (we use modified Kubrick theme). Thank you for your help! Sophie ... <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> <map:pipelines> <!-- Define global theme variables that are used later in this sitemap. Two variables are typically defined here, the theme's path and name. The path is the directory name where this theme is located, such as "Reference" for the reference theme. The theme's name is used only for descriptive purposes to describe the theme. --> <map:component-configurations> <global-variables> <theme-path>wsu</theme-path> <theme-name>wsu</theme-name> </global-variables> </map:component-configurations> <map:pipeline> <!-- Allow the browser to cache static content for an hour --> <map:parameter name="expires" value="access plus 1 hours"/> <!-- Static content --> <map:match pattern="themes/*/**"> <map:read src="{2}"/> </map:match> <map:match pattern="*.htm"> <map:read src="static/{1}.htm" mime-type="text/html" /> </map:match> <map:match pattern="*.htm"> <map:read src="static/policies/{1}.htm" mime-type="text/html" /> </map:match> </map:pipeline> <!-- The theme's pipeline is used to process all requests handled by the theme. It is broken up into two parts, the first part handles all static theme content while the second part handle all dynamic aspect generated content. The static content is such things as stylesheets, images, or static pages. Typically these are just stored on disk and passed directly to the browser without any processing. --> <map:pipeline> <!-- Never allow the browser to cache dynamic content --> <map:parameter name="expires" value="now"/> <!-- Aspect content There are five steps to processing aspect content: 1: Generate the DRI page The first step is to generate a DRI page for the request; this is handled by the aspect chain. Once it is generated it is the beginning of a theme's pipeline, the DRI page is ultimately transformed in the resulting XHTML that is given to the user's browser. 2: Add page metadata The next step is to add theme specific metadata to the DRI page. This is metadata about where the theme is located and its name. Typically this metadata is different depending on the users browser, this allows us to give different stylesheets to Internet Explorer than for other browsers. 3: Transform to XHTML The third step is the main component of a theme the XSL transformations will turn the DRI page from the aspects into an XHTML page useable by browsers. 4: Localize the page The second to last step is to localize the content for the particular user, if they user is requesting a page in a particular language then those language strings are inserted into the resulting XHTML. 5: Serialize to the browser The last step sends the page to the user's browser. --> <map:match pattern="**"> <!-- Step 1: Generate the DRI page --> <map:generate type="file" src="cocoon://DRI/{1}"/> <!-- Step 2 Add page metadata --> <map:select type="browser"> <map:when test="explorer6"> <map:transform type="IncludePageMeta"> <map:parameter name="stylesheet.screen#1" value="lib/css/style.css"/> <map:parameter name="stylesheet.screen#2" value="lib/css/style-ie6.css"/> <map:parameter name="javascript#1" value="lib/jquery-1.3.2.min.js"/> <map:parameter name="javascript#2" value="lib/menus.js"/> <map:parameter name="theme.path" value="{global:theme-path}"/> <map:parameter name="theme.name" value="{global:theme-name}"/> </map:transform> </map:when> <map:when test="explorer7"> <map:transform type="IncludePageMeta"> <map:parameter name="stylesheet.screen#1" value="lib/css/style.css"/> <map:parameter name="stylesheet.screen#2" value="lib/css/style-ie7.css"/> <map:parameter name="javascript#1" value="lib/jquery-1.3.2.min.js"/> <map:parameter name="javascript#2" value="lib/menus.js"/> <map:parameter name="theme.path" value="{global:theme-path}"/> <map:parameter name="theme.name" value="{global:theme-name}"/> </map:transform> </map:when> <map:when test="explorer8"> <map:transform type="IncludePageMeta"> <map:parameter name="stylesheet.screen#1" value="lib/css/style.css"/> <map:parameter name="stylesheet.screen#2" value="lib/css/style-ie8.css"/> <map:parameter name="javascript#1" value="lib/jquery-1.3.2.min.js"/> <map:parameter name="javascript#2" value="lib/menus.js"/> <map:parameter name="theme.path" value="{global:theme-path}"/> <map:parameter name="theme.name" value="{global:theme-name}"/> </map:transform> </map:when> <map:when test="safari2"> <map:transform type="IncludePageMeta"> <map:parameter name="stylesheet.screen#1" value="lib/css/style.css"/> <map:parameter name="stylesheet.screen#3" value="lib/css/style-safari2.css"/> <map:parameter name="javascript#1" value="lib/jquery-1.3.2.min.js"/> <map:parameter name="javascript#2" value="lib/menus.js"/> <map:parameter name="theme.path" value="{global:theme-path}"/> <map:parameter name="theme.name" value="{global:theme-name}"/> </map:transform> </map:when> <map:when test="safari3"> <map:transform type="IncludePageMeta"> <map:parameter name="stylesheet.screen#1" value="lib/css/style.css"/> <map:parameter name="stylesheet.screen#3" value="lib/css/style-safari3.css"/> <map:parameter name="javascript#1" value="lib/jquery-1.3.2.min.js"/> <map:parameter name="javascript#2" value="lib/menus.js"/> <map:parameter name="theme.path" value="{global:theme-path}"/> <map:parameter name="theme.name" value="{global:theme-name}"/> </map:transform> </map:when> <map:otherwise> <map:transform type="IncludePageMeta"> <map:parameter name="stylesheet.screen" value="lib/css/style.css"/> <map:parameter name="javascript#1" value="lib/jquery-1.3.2.min.js"/> <map:parameter name="javascript#2" value="lib/menus.js"/> <map:parameter name="theme.path" value="{global:theme-path}"/> <map:parameter name="theme.name" value="{global:theme-name}"/> </map:transform> </map:otherwise> </map:select> <!-- Debuging output --> <map:match type="request" pattern="XML"> <map:serialize type="xml"/> </map:match> <!-- Step 3: Transform to XHTML --> <map:transform src="{global:theme-name}.xsl"/> <!-- <map:transform src="template.xsl"/> --> <!-- Step 4: Localize the page --> <map:act type="locale"> <map:transform type="i18n"> <map:parameter name="locale" value="{locale}"/> </map:transform> </map:act> <!-- Step 5: Serialize to the browser --> <map:serialize type="xhtml"/> </map:match> </map:pipeline> </map:pipelines> </map:sitemap> --------------------------------------------------- 1. Re: Send item to Facebook (Stuart Lewis) 2. Re: Send item to Facebook (V?ctor Izaguirre) 3. Re: Send item to Facebook (Khan, Baseer) 4. Re: Send item to Facebook (Stuart Lewis) ---------------------------------------------------------------------- Message: 1 Date: Wed, 6 Oct 2010 06:26:25 +1300 From: Stuart Lewis <[email protected]> Subject: Re: [Dspace-tech] Send item to Facebook To: "Khan, Baseer" <[email protected]> Cc: "[email protected]" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="us-ascii" Hi Baseer, We've integrated the 'addthis' (http://www.addthis.com/) button. See: - http://researchspace.auckland.ac.nz/ This gives us the option of having lots of 'like' and 'send' type buttons for different sites with minimal coding. To do this we edited themes/dri2xhtml/structural.xsl and included the following on the sidebar declaration: (search for <div id="ds-options"> to find the right place) <xsl:template match="dri:options"> <div id="ds-options"> <h3 id="ds-share-option-head" class="ds-option-set-head"><xsl:text>Share</xsl:text></h3> <div id="ds-share-option" class="ds-option-set" style="text-align: center"> <a> <xsl:attribute name="href"> <xsl:text>http://www.addthis.com/bookmark.php?v=250&pub=xa-4a848ff246b1eec7</xsl:text> </xsl:attribute> <xsl:attribute name="class"> <xsl:text>addthis_button</xsl:text> </xsl:attribute> <img> <xsl:attribute name="src"> <xsl:text>http://s7.addthis.com/static/btn/lg-share-en.gif</xsl:text> </xsl:attribute> <xsl:attribute name="width"> <xsl:text>125</xsl:text> </xsl:attribute> <xsl:attribute name="height"> <xsl:text>16</xsl:text> </xsl:attribute> <xsl:attribute name="style"> <xsl:text>border:0</xsl:text> </xsl:attribute> </img> </a> <script type="text/javascript"> <xsl:attribute name="src"> <xsl:text>http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a848ff246b1eec7</xsl:text> </xsl:attribute> <xsl:text>// Empty comment</xsl:text> </script> </div> Thanks, Stuart Lewis IT Innovations Analyst and Developer Te Tumu Herenga The University of Auckland Library Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand Ph: +64 (0)9 373 7599 x81928 On 6/10/2010, at 4:26 AM, Khan, Baseer wrote: > Hello List, > Is it possible to add this feature in the current Manakin(1.6.2), > A student/faculty/staff like an item can they be able to send it as a link to > their Facebook and other social networking sites account or text it to their > cellphones (this is a huge hit with students). > > Thank you, > Baseer. > > > > ________________________________ > Mohammed Baseer AhmedKhan > <image003.jpg> > Tel (316) 978-5141 > <mailto: [email protected]> > > > <ATT00001..txt><ATT00002..txt> ------------------------------ Message: 2 Date: Tue, 5 Oct 2010 12:40:53 -0500 From: V?ctor Izaguirre <[email protected]> Subject: Re: [Dspace-tech] Send item to Facebook To: Stuart Lewis <[email protected]> Cc: "[email protected]" <[email protected]>, "Khan, Baseer" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8" Hi Stuart, Is possible to implement this button on JSPUI? -- Regards, V?ctor Izaguirre Castro 2010/10/5 Stuart Lewis <[email protected]> > Hi Baseer, > > We've integrated the 'addthis' (http://www.addthis.com/) button. See: > > - http://researchspace.auckland.ac.nz/ > > This gives us the option of having lots of 'like' and 'send' type buttons > for different sites with minimal coding. > > To do this we edited themes/dri2xhtml/structural.xsl and included the > following on the sidebar declaration: (search for <div id="ds-options"> to > find the right place) > > <xsl:template match="dri:options"> > <div id="ds-options"> > > <h3 id="ds-share-option-head" > class="ds-option-set-head"><xsl:text>Share</xsl:text></h3> > <div id="ds-share-option" class="ds-option-set" > style="text-align: center"> > <a> > <xsl:attribute name="href"> > <xsl:text> > http://www.addthis.com/bookmark.php?v=250&pub=xa-4a848ff246b1eec7 > </xsl:text> > </xsl:attribute> > <xsl:attribute name="class"> > <xsl:text>addthis_button</xsl:text> > </xsl:attribute> > <img> > <xsl:attribute name="src"> > <xsl:text> > http://s7.addthis.com/static/btn/lg-share-en.gif</xsl:text> > </xsl:attribute> > <xsl:attribute name="width"> > <xsl:text>125</xsl:text> > </xsl:attribute> > <xsl:attribute name="height"> > <xsl:text>16</xsl:text> > </xsl:attribute> > <xsl:attribute name="style"> > <xsl:text>border:0</xsl:text> > </xsl:attribute> > </img> > </a> > > <script type="text/javascript"> > <xsl:attribute name="src"> > <xsl:text> > http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a848ff246b1eec7 > </xsl:text> > </xsl:attribute> > <xsl:text>// Empty comment</xsl:text> > </script> > </div> > > > Thanks, > > > Stuart Lewis > IT Innovations Analyst and Developer > Te Tumu Herenga The University of Auckland Library > Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand > Ph: +64 (0)9 373 7599 x81928 > > > On 6/10/2010, at 4:26 AM, Khan, Baseer wrote: > > > Hello List, > > Is it possible to add this feature in the current Manakin(1.6.2), > > A student/faculty/staff like an item can they be able to send it as a > link to their Facebook and other social networking sites account or text it > to their cellphones (this is a huge hit with students). > > > > Thank you, > > Baseer. > > > > > > > > ________________________________ > > Mohammed Baseer AhmedKhan > > <image003.jpg> > > Tel (316) 978-5141 > > <mailto: [email protected]> > > > > > > <ATT00001..txt><ATT00002..txt> > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech > -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Tue, 05 Oct 2010 12:55:29 -0500 From: "Khan, Baseer" <[email protected]> Subject: Re: [Dspace-tech] Send item to Facebook To: Stuart Lewis <[email protected]> Cc: "[email protected]" <[email protected]> Message-ID: <e02ccda42b6cea4294f90226f9f403fc3d6c854...@exchange-01.ad.wichita.edu> Content-Type: text/plain; CHARSET=US-ASCII Thank you Stuart for this suggestion, this looks really nice I will try to implement this and let my Supervisor decide which one she wants to go with. -----Original Message----- From: Stuart Lewis [mailto:[email protected]] Sent: Tuesday, October 05, 2010 12:26 PM To: Khan, Baseer Cc: [email protected] Subject: Re: [Dspace-tech] Send item to Facebook Hi Baseer, We've integrated the 'addthis' (http://www.addthis.com/) button. See: - http://researchspace.auckland.ac.nz/ This gives us the option of having lots of 'like' and 'send' type buttons for different sites with minimal coding. To do this we edited themes/dri2xhtml/structural.xsl and included the following on the sidebar declaration: (search for <div id="ds-options"> to find the right place) <xsl:template match="dri:options"> <div id="ds-options"> <h3 id="ds-share-option-head" class="ds-option-set-head"><xsl:text>Share</xsl:text></h3> <div id="ds-share-option" class="ds-option-set" style="text-align: center"> <a> <xsl:attribute name="href"> <xsl:text>http://www.addthis.com/bookmark.php?v=250&pub=xa-4a848ff246b1eec7</xsl:text> </xsl:attribute> <xsl:attribute name="class"> <xsl:text>addthis_button</xsl:text> </xsl:attribute> <img> <xsl:attribute name="src"> <xsl:text>http://s7.addthis.com/static/btn/lg-share-en.gif</xsl:text> </xsl:attribute> <xsl:attribute name="width"> <xsl:text>125</xsl:text> </xsl:attribute> <xsl:attribute name="height"> <xsl:text>16</xsl:text> </xsl:attribute> <xsl:attribute name="style"> <xsl:text>border:0</xsl:text> </xsl:attribute> </img> </a> <script type="text/javascript"> <xsl:attribute name="src"> <xsl:text>http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a848ff246b1eec7</xsl:text> </xsl:attribute> <xsl:text>// Empty comment</xsl:text> </script> </div> Thanks, Stuart Lewis IT Innovations Analyst and Developer Te Tumu Herenga The University of Auckland Library Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand Ph: +64 (0)9 373 7599 x81928 On 6/10/2010, at 4:26 AM, Khan, Baseer wrote: > Hello List, > Is it possible to add this feature in the current Manakin(1.6.2), A > student/faculty/staff like an item can they be able to send it as a link to > their Facebook and other social networking sites account or text it to their > cellphones (this is a huge hit with students). > > Thank you, > Baseer. > > > > ________________________________ > Mohammed Baseer AhmedKhan > <image003.jpg> > Tel (316) 978-5141 > <mailto: [email protected]> > > ------------------------------ Message: 4 Date: Wed, 6 Oct 2010 07:03:56 +1300 From: Stuart Lewis <[email protected]> Subject: Re: [Dspace-tech] Send item to Facebook To: V?ctor Izaguirre <[email protected]> Cc: "[email protected] Tech" <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Hi V?ctor, Yes, it should be quite easy to add it. You'll need to decide where to add it to the screen, and select the right file from dspace-jspui/dspace-jspui-webapp/src/main/webapp/layout (header, footer, sidebar etc.) You can find the right code to add by visiting: - http://www.addthis.com/web-button-select Thanks, Stuart Lewis IT Innovations Analyst and Developer Te Tumu Herenga The University of Auckland Library Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand Ph: +64 (0)9 373 7599 x81928 On 6/10/2010, at 6:40 AM, V?ctor Izaguirre wrote: > Hi Stuart, > > Is possible to implement this button on JSPUI? > > -- > Regards, > V?ctor Izaguirre Castro > > 2010/10/5 Stuart Lewis <[email protected]> > Hi Baseer, > > We've integrated the 'addthis' (http://www.addthis.com/) button. See: > > - http://researchspace.auckland.ac.nz/ > > This gives us the option of having lots of 'like' and 'send' type buttons for > different sites with minimal coding. > > To do this we edited themes/dri2xhtml/structural.xsl and included the > following on the sidebar declaration: (search for <div id="ds-options"> to > find the right place) > > <xsl:template match="dri:options"> > <div id="ds-options"> > > <h3 id="ds-share-option-head" > class="ds-option-set-head"><xsl:text>Share</xsl:text></h3> > <div id="ds-share-option" class="ds-option-set" style="text-align: > center"> > <a> > <xsl:attribute name="href"> > > <xsl:text>http://www.addthis.com/bookmark.php?v=250&pub=xa-4a848ff246b1eec7</xsl:text> > </xsl:attribute> > <xsl:attribute name="class"> > <xsl:text>addthis_button</xsl:text> > </xsl:attribute> > <img> > <xsl:attribute name="src"> > > <xsl:text>http://s7.addthis.com/static/btn/lg-share-en.gif</xsl:text> > </xsl:attribute> > <xsl:attribute name="width"> > <xsl:text>125</xsl:text> > </xsl:attribute> > <xsl:attribute name="height"> > <xsl:text>16</xsl:text> > </xsl:attribute> > <xsl:attribute name="style"> > <xsl:text>border:0</xsl:text> > </xsl:attribute> > </img> > </a> > > <script type="text/javascript"> > <xsl:attribute name="src"> > > <xsl:text>http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a848ff246b1eec7</xsl:text> > </xsl:attribute> > <xsl:text>// Empty comment</xsl:text> > </script> > </div> > > > Thanks, > > > Stuart Lewis > IT Innovations Analyst and Developer > Te Tumu Herenga The University of Auckland Library > Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand > Ph: +64 (0)9 373 7599 x81928 > > > On 6/10/2010, at 4:26 AM, Khan, Baseer wrote: > > > Hello List, > > Is it possible to add this feature in the current Manakin(1.6.2), > > A student/faculty/staff like an item can they be able to send it as a link > > to their Facebook and other social networking sites account or text it to > > their cellphones (this is a huge hit with students). > > > > Thank you, > > Baseer. > > > > > > > > ________________________________ > > Mohammed Baseer AhmedKhan > > <image003.jpg> > > Tel (316) 978-5141 > > <mailto: [email protected]> > > > > > > <ATT00001..txt><ATT00002..txt> > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech > > > > ------------------------------ ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ------------------------------ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech End of DSpace-tech Digest, Vol 54, Issue 16 ******************************************* ------------------------------ ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ------------------------------ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech End of DSpace-tech Digest, Vol 54, Issue 20 ******************************************* ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

