Dear All,
I have read the thread here:
http://dspace.2283337.n4.nabble.com/Google-Analytics-Statistics-within-DSpace-on-XMLUI-td4658773.html
and
tried Stuart Lewis' Surfacing Google Analytics stats in DSpace:
http://blog.stuartlewis.com/2009/05/29/surfacing-google-analytics-stats-in-dspace/
which
is build on jspui. I would like to ask if someone from the list have
implemented these on xmlui? On Stuart Lewis post, I don't know how to
convert the code which is written for jspui to xmlui:
<%
// See if we can display a counter
String path = "/handle/" + item.getHandle();
String count = GoogleAnalyticsHitCounter.getPageCount(path);
if ((count != null) && (!"".equals(count)))
{
%>
<table align="center" class="miscTable">
<tr>
<td class="oddRowEvenCol" align="center">
This item has been viewed <strong><%= count %></strong>
times
</td>
</tr>
</table>
<%
}
%>
If you read the last comment that I posted in Stuart's post, I want to
implement this in item-view.xsl.
Thanks in advance and regards,
--
Elvi
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
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