[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Re: Latest Additions

Hi Sebastian,

 i think you can try to add a little Ajax code to the index.xpage where
would you want to be displayed the "latest_tool chunk"

  * /image/roller.gif: you should download it in another place
  * the parameters: n=5 is the number of elements to display


      <div id="latest_tool_lookup_status" style="width:68%;">

       <p style="font-size:0.9em;">Loading latest documents in progress <img valign="middle" border="0" src="/images/roller.gif" alt="wait ..."/></p>


     <div style="display:none; font-size:1.0em; font-weigth:normal;" id="latest_tool_lookup"></div>


    <script type="text/javascript">



      ajax = new Ajax.Request('/cgi/latest_tool',

                              {method: 'get',

                               parameters: 'n=5',

                               contentType: "application/xml",

                               onSuccess: function(transport) {


                                 var parser = new DOMParser();

                                 var xmlDoc = parser.parseFromString(transport.responseText, "application/xml");


                                 for (i=0;i<tables.length;i++) {

                                   if (tables[i].getAttribute('class')=='ep_tm_main') {






                               onFailure: function() {







Il 07/08/2014 16:17, Sebastian Nozzi ha scritto:
> Hello,
> do you know how to change the start-page to have a list of "latest 
> additions" like the one seen here?
> http://epub.wu.ac.at/
> So far I've found out that the file to edit is:
> ./cfg/lang/en/static/index.xpage
> inside my archive, and that the information I need comes from the 
> "./cgi/latest_tool" CGI-script.
> But I'm not sure how to invoke that script to get an output as in the 
> web-page I mentioned.
> Any hints would be greatly appreciated.
> Best regards,
> Sebastian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20140807/c843ba60/attachment.html