Re: [Dspace-tech] How to set property target=_blank into item-view.xsl

2014-03-31 Thread Geoconda Toledo
Hi Bhavesh,
Today, I have had the same question about set  proporty target=_blank
with our repository and I found this solution that for me worked.
Taking your code, after close the xsl: attribute name =href that start
in the 3rd line you should introduce this lines
xsl:attribute name=target
 xsl:text_blank/xsl:text
 /xsl:attribute

Well, the code would be this:

*div class=thumbnail-wrapper*
 *a class=image-link*
 *xsl:attribute name=href*

 * !-- HREF [ START ] --*
 * xsl:if test=@MIMETYPE = 'video/mp4' or @MIMETYPE = 'video/x-flv' *
 *
 i18n:text
http://192.168.251.220/irplayer/play.php?vLink=http://192.168.251.99:8080
 http://192.168.251.220/irplayer/play.php?vLink=http://192.168.251.99:8080
/i18n:
text
 *
 * xsl:value-of select=mets:FLocat[@LOCTYPE='URL']/@xlink:href/*
 * /xsl:if *
 * !-- HREF [ END ] --*

 * xsl:if test=@MIMETYPE != 'video/mp4' *
 * xsl:value-of select=mets:FLocat[@LOCTYPE='URL']/@xlink:href/*
 * /xsl:if *

 */xsl:attribute*



*xsl:attribute name=target
xsl:text_blank/xsl:text /xsl:attribute*

 * xsl:choose  *

 * xsl:when test=$context/mets:fileSec/mets:fileGrp[@USE='THUMBNAIL']/*
 *mets:file[@GROUPID=current()/@GROUPID] *
 *img alt=Thumbnail*
 *xsl:attribute name=src*
 *xsl:value-of
 select=$context/mets:fileSec/mets:fileGrp[@USE='THUMBNAIL']/ *
 *

mets:file[@GROUPID=current()/@GROUPID]/mets:FLocat[@LOCTYPE='URL']/@xlink:href/*
 */xsl:attribute*
 */img *
 */xsl:when*



I hope it works for you.
Regards
Geoconda.
--
___
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

[Dspace-tech] How to set property target=_blank into item-view.xsl

2013-12-23 Thread Bhavesh Patel
Dear All,

I have modify the code into
[dspace-3.2-src-release]dspace-xmlui\src\main\webapp\themes\Mirage\lib\xsl\aspect\artifactbrowser\item-view.xsl


 *div class=thumbnail-wrapper*
 *a class=image-link*
 *xsl:attribute name=href*

 * !-- HREF [ START ] --*
 * xsl:if test=@MIMETYPE = 'video/mp4' or @MIMETYPE = 'video/x-flv' *
 *
 i18n:texthttp://192.168.251.220/irplayer/play.php?vLink=http://192.168.251.99:8080
 http://192.168.251.220/irplayer/play.php?vLink=http://192.168.251.99:8080/i18n:text
 *
 * xsl:value-of select=mets:FLocat[@LOCTYPE='URL']/@xlink:href/*
 * /xsl:if *
 * !-- HREF [ END ] --*

 * xsl:if test=@MIMETYPE != 'video/mp4' *
 * xsl:value-of select=mets:FLocat[@LOCTYPE='URL']/@xlink:href/*
 * /xsl:if *

 */xsl:attribute*

 * xsl:choose  *

 * xsl:when test=$context/mets:fileSec/mets:fileGrp[@USE='THUMBNAIL']/*
 *mets:file[@GROUPID=current()/@GROUPID] *
 *img alt=Thumbnail*
 *xsl:attribute name=src*
 *xsl:value-of
 select=$context/mets:fileSec/mets:fileGrp[@USE='THUMBNAIL']/ *
 *
 mets:file[@GROUPID=current()/@GROUPID]/mets:FLocat[@LOCTYPE='URL']/@xlink:href/*
 */xsl:attribute*
 */img *
 */xsl:when*


 * !-- Bhavesh [ START ] -- *
 * xsl:when test=@MIMETYPE = 'video/x-flv' or @MIMETYPE = 'video/mp4'*
 *   i18n:textPlay Video/i18n:text *
 */xsl:when *
 * !-- Bhavesh [ END ] --*

 *xsl:otherwise*
 *img alt=Icon src={concat($theme-path,
 '/images/mime.png')} style=height: {$thumbnail.maxheight}px;/ *
 */xsl:otherwise*

 */xsl:choose*
 */a**/div*

 I have set the condition for .mp4 and .flv MIME TYPE.

It's Working Fine.. But it will open the URL into same browser .. What I
want is When anyone click on that Play Video then it's open into New tab
or new window.

Means I want to set property target=_blank into a

Please let me know if anyone know...


Thanks  Regards,
*Bhavesh R. Patel *

*Please consider the environment before printing this e-mail.*
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
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