Hi Thomas,
On 30/01/13 02:41, Thomas Misilo wrote:
I am trying to change the location of
the CSS files so I can put them on another server, and be able
to customize them without rebuilding tomcat all the time. When I
tried changing it in my sitemap it added
/themes/themename/http://url/lib/css/*.css
You need to change your theme slightly -- by default, all
stylesheets in the sitemap are assumed to be local files.
Assuming you're using Mirage or something based on Mirage, find the
page-structure.xsl file and look for a comment that reads "Add
stylsheets" (note the spelling). Change the xsl:for-each that
follows to what's below (if your external stylesheet is accessed via
https then you'll need to change the starts-with test accordingly).
!-- Add stylsheets --
xsl:for-each
select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='stylesheet']"
link rel="stylesheet" type="text/css"
xsl:attribute name="media"
xsl:value-of select="@qualifier"/
/xsl:attribute
xsl:attribute name="href"
xsl:if test="not(starts-with(text(),
'http'))"
xsl:value-of
select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]"/
xsl:text/themes//xsl:text
xsl:value-of
select="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='theme'][@qualifier='path']"/
xsl:text//xsl:text
/xsl:if
xsl:value-of select="."/
/xsl:attribute
/link
/xsl:for-each
This snippet prepends the context path + theme only if the css URL
doesn't start with "http".
cheers,
Andrea
--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette