EPrints Technical Mailing List Archive

Message: #07288


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Video player


Hi Attila,


It looks like the $session variable is undefined in your eprint_render.pl file.


We have this line at the beginning of our eprint_render.pl file:


my( $eprint, $session, $preview ) = @_;

So we have the $session variable.


However, the latest default file names this variable "$repository", which is probably what you have.


my( $eprint, $repository, $preview ) = @_;​


I think you could probably just replace the $session variable with $repository in the video player code.


Tomasz



________________________________________________

Tomasz Neugebauer
Digital Projects & Systems Development Librarian / Bibliothécaire des Projets Numériques & Développement de Systèmes
Library / Bibliothèque
Concordia University / Université Concordia

Tel. / Tél. 514-848-2424 ext. / poste 7738
Email / courriel: 
tomasz.neugebauer@concordia.ca

Mailing address / adresse postale: 1455 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8
Street address / adresse municipale: 1400 De Maisonneuve Blvd. W., LB-540-03, Montreal, Quebec H3G 1M8

library.concordia.ca


From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Debreczeni Attila <dattila@niif.hu>
Sent: Thursday, April 19, 2018 3:19 PM
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Video player
 
Dear Eprints Tech Team,

I would like to ask for your help to integrate the video player to eprints3.

I followed these intructions:
https://wiki.eprints.org/w/Video_documents#Video_player
After, I insert these codes and I restart the Apache2, then I get "404 Not
found" http error.

I use Ubuntu 14.04 and Ubuntu 16.04. I installed the portal from your
repository. I tried to fix it by this:
https://wiki.eprints.org/w/Talk:Export_bar_on_abstract_page  ( I think,
it is a similar issue )

What cause this error? How can I fix it?

Best regards,
Attila DEBRECZENI

# tail -n12 /var/log/apache2/error.log

------------------------------------------------------------------
---------------- EPrints System Error ----------------------------
------------------------------------------------------------------
'prace' is not a valid repository identifier:
PerlSetVar EPrints_ArchiveID prace
------------------------------------------------------------------
EPrints System Error inducing stack dump
 at /usr/share/eprints3/perl_lib/EPrints.pm line 147.
        EPrints::abort('EPrints') called at
/usr/share/eprints3/perl_lib/EPrints/Apache/Rewrite.pm line 62
       
EPrints::Apache::Rewrite::handler('Apache2::RequestRec=SCALAR(0x7f67e4e8cef8)')
called at -e line 0
        eval {...} called at -e line 0


$ /usr/share/eprints3/bin/epadmin test

------------------------------------------------------------------
---------------- EPrints System Error ----------------------------
------------------------------------------------------------------
Error in configuration:
Global symbol "$session" requires explicit package name at (eval 71)
line 130.
Global symbol "$doc" requires explicit package name at (eval 71) line 131.
Global symbol "$doc" requires explicit package name at (eval 71) line 133.
Global symbol "$doc" requires explicit package name at (eval 71) line 135.
Global symbol "$doc" requires explicit package name at (eval 71) line 137.
Global symbol "$doc" requires explicit package name at (eval 71) line 140.
Global symbol "$session" requires explicit package name at (eval 71)
line 141.
Global symbol "$session" requires explicit package name at (eval 71)
line 143.
Global symbol "$session" requires explicit package name at (eval 71)
line 147.
Global symbol "$session" requires explicit package name at (eval 71)
line 150.
Global symbol "$session" requires explicit package name at
/usr/share/eprints3/archives/prace/cfg/cfg.d/eprint_render.pl line 152.


------------------------------------------------------------------
EPrints System Error inducing stack dump
 at /usr/share/eprints3/bin/../perl_lib/EPrints.pm line 147.
        EPrints::abort('EPrints') called at
/usr/share/eprints3/bin/../perl_lib/EPrints/Config.pm line 281
        EPrints::Config::load_repository_config_module('prace') called
at /usr/share/eprints3/bin/../perl_lib/EPrints/Repository.pm line 510
       
EPrints::Repository::load_config('EPrints::Repository=HASH(0x4a87c20)')
called at /usr/share/eprints3/bin/../perl_lib/EPrints/Repository.pm line 153
        EPrints::Repository::new('EPrints::Repository', 'prace',
'noise', 1) called at /usr/share/eprints3/bin/../perl_lib/EPrints.pm
line 555
        EPrints::repository('EPrints=HASH(0x483ff20)', 'prace', 'noise',
1) called at /usr/share/eprints3/bin/epadmin line 376
        main::repository('prace') called at
/usr/share/eprints3/bin/epadmin line 1670
        main::test('prace') called at /usr/share/eprints3/bin/epadmin
line 1665
        main::test() called at /usr/share/eprints3/bin/epadmin line 312