Picon

[EP-tech] Re: #include in Eprints 3.3.9 // error

Seb,

It works beautiful. I really appreciate your kindness.

Regards,

Cristian

On Thu, May 24, 2012 at 8:11 AM, Sebastien Francois <sf2 <at> ecs.soton.ac.uk> wrote:
> There you go:
>
> <div id="eplatest"/>
> <script type="text/javascript">
>         new Ajax.Updater( 'eplatest', '/cgi/latest_tool', {
> parameters:"mainonly=yes"});
> </script>
>
> You may have to add CSS to the "eplatest" <div> to limit its height etc.
>
> Seb.
>
> On 24/05/12 12:08, Centro de Documentación wrote:
>> Hi Sebastien,
>>
>> Many thanks for your quick answer.
>>
>> Could you give me an example using an Ajax callback?
>>
>> Regards,
>>
(Continue reading)

Sebastien Francois | 24 May 13:11
Picon
Favicon

[EP-tech] Re: #include in Eprints 3.3.9 // error

There you go:

<div id="eplatest"/>
<script type="text/javascript">
         new Ajax.Updater( 'eplatest', '/cgi/latest_tool', { 
parameters:"mainonly=yes"});
</script>

You may have to add CSS to the "eplatest" <div> to limit its height etc.

Seb.

On 24/05/12 12:08, Centro de Documentación wrote:
> Hi Sebastien,
>
> Many thanks for your quick answer.
>
> Could you give me an example using an Ajax callback?
>
> Regards,
>
> Cristian
>
>
>
>
> On Thu, May 24, 2012 at 7:09 AM, Sebastien Francois<sf2 <at> ecs.soton.ac.uk>  wrote:
>> Hi,
>>
>> That kind of problems is caused by the Lightbox (JS library used by
(Continue reading)

Picon

[EP-tech] Re: #include in Eprints 3.3.9 // error

Hi Sebastien,

Many thanks for your quick answer.

Could you give me an example using an Ajax callback?

Regards,

Cristian

On Thu, May 24, 2012 at 7:09 AM, Sebastien Francois <sf2 <at> ecs.soton.ac.uk> wrote:
> Hi,
>
> That kind of problems is caused by the Lightbox (JS library used by
> EPrints) being loaded twice. Have a look at the source of your example
> page: you will see that instead of returning an HTML fragment, the
> #include /cgi/latest_tool returns the entire page - so my guess here is
> that the param "?mainonly=yes" got lost on the way.
>
> We've had many troubles with using #include too (mostly because of
> params not being passed properly to the CGI), we're using a simple Ajax
> callback now instead.
>
> Seb.
>
> On 24/05/12 01:31, Centro de Documentación wrote:
>> Here you can see what happens
>>
>> http://nulan.mdp.edu.ar/test.html
>>
(Continue reading)

Tim Brody | 24 May 13:02
Picon
Favicon

[EP-tech] Re: Unicode characters rendering in IE

On Thu, 2012-05-24 at 09:59 +0000, Budden, Yvonne wrote:
> Dear All,
> 
>  
> 
> We’ve come up against an issue with the display of special unicode
> characters in our repository, but only when being rendered by Internet
> Explorer.

This looks like the solution:
http://ztoe.net/2008/11/ie-unicode-freakout-boxes-css/

In EPrints, add to your auto/zz_local.css:

body {
  font-family: "Arial Unicode MS", sans-serif;
}

--

-- 
All the best,
Tim
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
Sebastien Francois | 24 May 12:09
Picon
Favicon

[EP-tech] Re: #include in Eprints 3.3.9 // error

Hi,

That kind of problems is caused by the Lightbox (JS library used by 
EPrints) being loaded twice. Have a look at the source of your example 
page: you will see that instead of returning an HTML fragment, the 
#include /cgi/latest_tool returns the entire page - so my guess here is 
that the param "?mainonly=yes" got lost on the way.

We've had many troubles with using #include too (mostly because of 
params not being passed properly to the CGI), we're using a simple Ajax 
callback now instead.

Seb.

On 24/05/12 01:31, Centro de Documentación wrote:
> Here you can see what happens
>
> http://nulan.mdp.edu.ar/test.html
>
>
> ---------- Forwarded message ----------
> Subject: #include in Eprints 3.3.9
> To: eprints-tech <at> ecs.soton.ac.uk
>
>
> Hi,
>
> If I use<!--#include virtual="/cgi/latest_tool?mainonly=yes"-->  on my
> index.xpage the template is corrupted.
>
(Continue reading)

Budden, Yvonne | 24 May 11:59
Picon
Picon

[EP-tech] Unicode characters rendering in IE

Dear All,

 

We’ve come up against an issue with the display of special unicode characters in our repository, but only when being rendered by Internet Explorer.

 

IE:

 

Firefox:

 

Chrome:

 

Is this something other people have come up against; is there anything we can do to make sure that the record displays consistently across all browsers?

 

Many thanks,

Yvonne

 

Mrs Yvonne Budden,

E-Repositories Manager,

University of Warwick Library,

Gibbet Hill Road,

Coventry.

CV4 7AL

 

y.c.budden <at> warwick.ac.uk

 

024765 75793

 

Warwick Research Archive Portal (WRAP): http://wrap.warwick.ac.uk

Submit your paper to WRAP: http://go.warwick.ac.uk/irsubmit

Repositories <at> Warwick: http://go.warwick.ac.uk/lib-publications

 

 

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
Ulf Laube | 24 May 10:37
Favicon

[EP-tech] question thumbmails/icons

Hi all,

we are adding docs onto an Eprints on follow way:

        $doc_file_name = basename( $doc_file );
        $doc = EPrints::DataObj::Document::create( $ep_session, $eprint );
        $doc->set_value( "format", "image/jpeg" );
        $doc->add_file( $doc_file, "$doc_file_name" );
        $doc->set_value( "main", $doc_file_name );
        $doc->commit;

Try to creating a thumbnail

        $doc->render_icon_link( %ep_doc_render_icon_link_opts );
        $doc->render_preview_link();

with  my %ep_doc_render_icon_link_opts = (
    new_window => 0,
    preview    => 1,
    public     => 1,
);

has no effect (no lightbox).

Any Ideas?

best 
Ulf
--

-- 
OntoChem GmbH
Heinrich-Damerow-Str. 4
06120 Halle (Saale)
Germany
Tel. +49-345-478047-4
Fax: +49-345-478047-1

HRB 215461 Amtsgericht Stendal; USt-IdNr.: DE246232735
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

Malcolm Bodger | 24 May 09:55
Picon
Picon
Favicon

[EP-tech] ubuntu upgrade breaks eprints

Hi,

 

I've just patched my EPrints 3.3.6, which is on a Ubuntu server, and I could see text on the screen saying it was upgrading EPrints to 3.3.9. I now get the 'EPrints  Database schema is out of date' message on the web page.

I run the 'epadmin update_database_structure' and it said I should run the epadmin upgrade, which I've done. I've checked the database version and it's 3.3.1 

I get the following:

 

 EPrints System Error inducing stack dump
 at /usr/share/eprints3/bin/../perl_lib/EPrints.pm line 145
        EPrints::abort() called at /usr/share/eprints3/bin/../perl_lib/EPrints/Repository.pm line 201
        EPrints::Repository::new('EPrints::Repository', 'eprints', 'noise', 1) called at /usr/share/eprints3/bin/../perl_lib/EPrints.pm line 491
        EPrints::repository('EPrints=HASH(0xb4b46d0)', 'eprints', 'noise', 1) called at ./epadmin line 367
        main::repository('eprints') called at ./epadmin line 1792
        main::update_database_structure('eprints') called at ./epadmin line 312

Can anyone advise me with this?

 

Thanks,

Malcolm.

The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
Picon

[EP-tech] #include in Eprints 3.3.9 // error

Here you can see what happens

http://nulan.mdp.edu.ar/test.html

---------- Forwarded message ----------
Subject: #include in Eprints 3.3.9
To: eprints-tech <at> ecs.soton.ac.uk

Hi,

If I use <!--#include virtual="/cgi/latest_tool?mainonly=yes"--> on my
index.xpage the template is corrupted.

In EP 3.2.6 worked well.

Does anyone know what happened?

Thanks,

Cristian
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

Picon

[EP-tech] #include in Eprints 3.3.9

Hi,

If I use <!--#include virtual="/cgi/latest_tool?mainonly=yes"--> on my
index.xpage the template is corrupted.

In EP 3.2.6 worked well.

Does anyone know what happened?

Thanks,

Cristian
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/

Ian Stuart | 23 May 09:44
Picon
Picon

[EP-tech] Re: EPrints XML SWORD package

On 23/05/12 08:08, Mark Gregson wrote:
> For SWORD deposits using EPrints XML packages, do the documents need to
> be Base64 encoded and embedded in the XML or can they also be included
> in the zip as separate files? This is primarily in regard to 3.2.

You can do either..... but you do need a SWORD importer to match the 
"packaging" type you are sending:

- If you are sending METSDSpaceSIP formatted data, you need an importer 
than understands that
- If you are sending ORE linked data, you need an importer than 
understands that
- If you are sending a single XML file, with Base64-encoded files within 
the XML document, you need an importer for that.

The best advice I can offer is
1) Check what the "servicedocument" reports the repository accepts, and then
2) Have a look at the code for the importer you want to use: some of 
them are very skeletal frameworks and really need additional work to be 
truly useful..

-- 

Ian Stuart.
Developer: ORI, RJ-Broker, and OpenDepot.org
Bibliographics and Multimedia Service Delivery team,
EDINA,
The University of Edinburgh.

http://edina.ac.uk/

This email was sent via the University of Edinburgh.

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/


Gmane