Hi Jose,
I think most of the metadata fields are processed to display as text. If you
View Source, you'll probably find that entities have been translated. Our
solution, which isn't ideal, was to add a couple of qualifiers to the schema
(bad, bad practice) and to use the theme's template to produce the code, so:
<!-- Embedded video row -->
<xsl:when test="$clause = 29 and
(dim:field[@element='identifier'][@qualifier='streamurl'] or
dim:field[@element='youtube'][@qualifier='embed'])">
<xsl:if
test="dim:field[@element='identifier'][@qualifier='streamurl']">
<tr class="ds-table-row {$phase}">
<td>
<xsl:attribute name="colspan">2</xsl:attribute>
<object>
<xsl:attribute name="width">580</xsl:attribute>
<xsl:attribute name="height">395</xsl:attribute>
<param>
<xsl:attribute
name="name">movie</xsl:attribute>
<xsl:attribute
name="value">http://fpdownload.adobe.com/strobe/FlashMediaPlayback_101.swf</xsl:attribute>
</param>
<param>
<xsl:attribute
name="name">flashvars</xsl:attribute>
<xsl:attribute name="value">
<xsl:text>src=</xsl:text>
<xsl:copy-of
select="dim:field[@element='identifier' and @qualifier='streamurl']/node()"/>
<xsl:text>&poster=</xsl:text>
<xsl:copy-of
select="dim:field[@element='identifier' and @qualifier='streamposter']/node()"/>
</xsl:attribute>
</param>
<param>
<xsl:attribute
name="name">allowFullScreen</xsl:attribute>
<xsl:attribute
name="value">true</xsl:attribute>
</param>
<param>
<xsl:attribute
name="name">allowscriptaccess</xsl:attribute>
<xsl:attribute
name="value">always</xsl:attribute>
</param>
<embed>
<xsl:attribute
name="src">http://fpdownload.adobe.com/strobe/FlashMediaPlayback_101.swf</xsl:attribute>
<xsl:attribute
name="type">application/x-shockwave-flash</xsl:attribute>
<xsl:attribute
name="allowscriptaccess">always</xsl:attribute>
<xsl:attribute
name="allowfullscreen">true</xsl:attribute>
<xsl:attribute
name="width">580</xsl:attribute>
<xsl:attribute
name="height">395</xsl:attribute>
<xsl:attribute name="flashvars">
<xsl:text>src=</xsl:text>
<xsl:copy-of
select="dim:field[@element='identifier' and @qualifier='streamurl']/node()"/>
<xsl:text>&poster=</xsl:text>
<xsl:copy-of
select="dim:field[@element='identifier' and @qualifier='streamposter']/node()"/>
</xsl:attribute>
</embed>
</object>
</td>
</tr>
</xsl:if>
<xsl:if
test="dim:field[@element='youtube'][@qualifier='embed']">
<tr class="ds-table-row {$phase}">
<td>
<xsl:attribute name="colspan">2</xsl:attribute>
<iframe width="580" height="323" frameborder="0"
allowfullscreen="true" >
<xsl:attribute name="src">
<xsl:copy-of
select="dim:field[@element='youtube' and @qualifier='embed']/node()"/>
</xsl:attribute>
<xsl:text> </xsl:text></iframe>
</td>
</tr>
</xsl:if>
<xsl:call-template name="itemSummaryView-DIM-fields">
<xsl:with-param name="clause" select="($clause + 1)"/>
<xsl:with-param name="phase" select="$otherPhase"/>
</xsl:call-template>
</xsl:when>
B--
> -----Original Message-----
> From: Jose Blanco [mailto:[email protected]]
> Sent: Tuesday, May 13, 2014 8:39 AM
> To: Dspace-Tech
> Subject: [Dspace-tech] inline script for one of the metadata
>
> I'm trying to put this:
>
> <script
> src="http://cdnapi.kaltura.com/p/1038472/sp/103847200/embedIframeJs/uiconf
> _id/22627652/partner_id/1038472?autoembed=true&entry_id=1_eshzem52&pla
> yerId=kaltura_player_1398195438&cache_st=1398195438&width=400&height=33
> 0&flashvars[streamerType]=auto"></script>
>
>
> in one of my metadata fields, but all I'm seeing is the text, and the script
> is not
> executing. I think it must be a css setting. Any advice?
>
> Thank you!
> Jose
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette