On Tue, Oct 5, 2010 at 12:02 PM, Khan, Baseer <[email protected]>wrote:

> Thank you for the reply; I saw your website this is what we exactly need, I
> will try to implement this.
>
> So I just have to add the lines in xslt file,
>
> Did you come across any issue while implementing this?
>

The spacing/width of the frame.  I think our width is still probably a bit
too narrow... sometimes the 'n' in 'person' (after it has been clicked,
indicating that they like it) gets cut off -- and this would happen, too, if
the like count went above a single digit.  Fixing that should be a matter of
adding a few more pixels to the width.

We had the issue of using the same DOI for a data package and data file (two
separate DSpace records) page, but I think that's pretty much specific to
our own use of DSpace.  Most places would use the Handle for the individual
item as the href, which would be pulled from the metadata.

Then, just using the encoder required we define the namespace at the top of
the xslt: xmlns:encoder="xalan://java.net.URLEncoder" (which introduces the
Xalan dependency, but I don't think DSpace/Cocoon plans on changing that
anytime soon).

That's about it...

Kevin




>
>
>
>
> *From:* Kevin S. Clarke [mailto:[email protected]]
> *Sent:* Tuesday, October 05, 2010 10:50 AM
> *To:* Khan, Baseer
> *Cc:* [email protected]
> *Subject:* Re: [Dspace-tech] Send item to Facebook
>
>
>
> Hi,
>
>
>
> We have a Facebook "like" button on our items (still in dev, but getting
> ready to be rolled out -- if you try the link below and it's down, it might
> be because we are rebuilding... try again in a few minutes); users can click
> and the "like" will show up on their facebook wall.  You can see it at:
>
>
>
> http://dev.datadryad.org/handle/10255/dryad.1914 (click 'share' under the
> citation at the top of the page and facebook's "like", among other social
> software options, will appear).
>
>
>
> Adding it was a matter of putting Facebook's iframe markup in our item view
> XSLT [we use xmlui, 1.6.2] and supplying a place we'd like it to link to
> (our DOI):
>
>
>
> <xsl:element name="iframe">
>
>             <xsl:attribute name="src">
>
>                         <!-- $pkgDOI is defined above in the XSLT and
> encoder is called from URLEncoder -->
>
>                         <xsl:value-of select="concat('
> http://www.facebook.com/plugins/like.php?href=',
>
>                                     encoder:encode(concat('
> http://dx.doi.org/', $pkgDOI)),
>
>
> '&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21')"
>
>                         />
>
>             </xsl:attribute>
>
>             <xsl:attribute name="scrolling">no</xsl:attribute>
>
>             <xsl:attribute name="frameborder">0</xsl:attribute>
>
>             <xsl:attribute name="style">border:none; overflow:hidden;
> width:70px;
>
>                         height:21px;</xsl:attribute>
>
>             <xsl:attribute name="allowTransparency">true</xsl:attribute>
>
>             <xsl:text> </xsl:text>
>
> </xsl:element>
>
>
>
> Hope that helps,
>
> Kevin
>
>
>
>
>
> On Tue, Oct 5, 2010 at 11:26 AM, Khan, Baseer <[email protected]>
> 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
>
> [image: Description: Description: NewLogo]
>
> Tel (316) 978-5141
>
> <mailto: [email protected] <[email protected]>>
>
>
>
>
>
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
>

<<image001.jpg>>

------------------------------------------------------------------------------
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

Reply via email to