[ 
http://jira.dspace.org/jira/browse/DS-378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10796#action_10796
 ] 

Tim Donohue commented on DS-378:
--------------------------------

The fix is to override the default "dri:help" template in the XMLUI 
structural.xsl file.    So, all you need to do is place the following template 
somewhere in your custom XMLUI Theme:

  <xsl:template match="dri:help" mode="help">
        <!--Only create the <span> if there is content in the <dri:help> node-->
        <xsl:if test="./text() or ./node()">
            <span class="field-help">
                <xsl:apply-templates />
            </span>
        </xsl:if>
    </xsl:template>

This basically just checks to see if the "dri:help" node has content within it, 
before it creates a corresponding <span class="field-help">

I'll commit this simple fix to trunk so that it is fully resolved in DSpace 
1.6.  But, in the meantime, those on DSpace 1.5.x can just copy the above 
template into their own custom themes to fix the problem before 1.6.

> XMLUI Submission Interface messes up in IE7 after an empty <hint> in 
> input_forms.xml
> ------------------------------------------------------------------------------------
>
>                 Key: DS-378
>                 URL: http://jira.dspace.org/jira/browse/DS-378
>             Project: DSpace 1.x
>          Issue Type: Bug
>          Components: XMLUI
>    Affects Versions: 1.5.2
>         Environment: Only happens in Internet Explorer (verified in 7.0 and 
> 8.0)
>            Reporter: Tim Donohue
>            Assignee: Tim Donohue
>         Attachments: HTMLSource.zip
>
>
> If your input_forms.xml file includes at least one empty <hint> tag (either 
> <hint/> or <hint></hint>), then the XMLUI will insert in an empty XHTML tag 
> corresponding to that empty hint text:
> <span class="field-help"/>
> When Internet Explorer encounters one of those empty XHTML tags, it seems to 
> mess up the CSS for all text following it.  Normally, the default CSS for 
> "field-help" includes "font-size: 80%".   Unfortunately, IE will apply that 
> style to *all text* which comes after that empty tag.    If you end up having 
> multiple empty "field-help" tags on one page, you end up with drastically 
> decreasing text size as the text is decreased by 80% after each empty tag.
> Attached is an HTML dump of an example of this problem, provided by Alice 
> Platt on dspace-tech mailing list.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to