EPrints Technical Mailing List Archive

Message: #01460


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

[EP-tech] Re: Eprints 3.3.6 on CentOS 6.3 - Exports of Citations not working


Tim,

Thanks for pinpointing the solution.

The problem was solved by making the single line change in the perl_lib/EPrints/Plugin/Screen/Search.pm file as show in Changeset 7686 to my EPrints 3.3.6 instance.  I assume upgrading to EPrints 3.3.10 would have also solved the problem.

-Tom

-----Original Message-----
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Tim Brody
Sent: Thursday, January 17, 2013 4:58 AM
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Re: Eprints 3.3.6 on CentOS 6.3 - Exports of Citations not working

On Fri, 11 Jan 2013 22:12:36 +0000, "Adams, Thomas" <tadams@cshl.edu>
wrote:
> After performing a simple search (from the menu bar) in Eprints, the 
> "Export" button seems to replace the URL in the browser, with another 
> URL but the page contents remain unchanged.
> 
> Initial simple search URL, (searching for james):
>
http://repository.cshl.edu/cgi/search/simple?q=james&_action_search=Search&_action_search=Search&_order=bytitle&basic_srchtype=ALL&_satisfyall=ALL
> 
> After pressing "ASCII Citation" Export, the URL is changed to:
>
http://repository.cshl.edu/cgi/search/archive/simple/export_cshleprints3_Text.txt?screen=Searchndataset=archiven_action_export=1noutput=Textnexp=0|0|-date%2Fcreators_name%2Ftitle|archive|-|q%3Aabstract%2Fcreators_name%2Fcshl_author%2Fdate%2Fdocuments%2Ftitle%3AALL%3AIN%3Ajames|-|eprint_status%3Aeprint_status%3AANY%3AEQ%3Aarchive|metadata_visibility%3Ametadata_visibility%3AANY%3AEQ%3Ashow&cache=55555
> 
> The content of the page remain the same.
> If I then press "BibTex" Export, the URL becomes:
>
http://repository.cshl.edu/cgi/search/archive/simple/export_cshleprints3_Text.txt/export_cshleprints3_BibTeX.bib?screen=Searchndataset=archiven_action_export=1noutput=BibTeXnexp=0|0|-date%2Fcreators_name%2Ftitle|archive|-|q%3Aabstract%2Fcreators_name%2Fcshl_author%2Fdate%2Fdocuments%2Ftitle%3AALL%3AIN%3Ajames|-|eprint_status%3Aeprint_status%3AANY%3AEQ%3Aarchive|metadata_visibility%3Ametadata_visibility%3AANY%3AEQ%3Ashow&cache=55557
> 
> The content of the page remains the same (the initial simple search), 
> not the expect "ACSII Citation". So I am not sure, if Eprints is 
> building the URL correctly.
> 
> It gets a little more interesting when I "ASCII Citation" Export on a 
> "Browse by Year" page. Here the listing initially appears to work, 
> displaying the whole page of citation within the browser, but right at
the
> end of the page gets loaded again and only three of the entries remain.
> Strange.
> 
> However, the BibTex export seems OK when performed from the "Browse by 
> Year".
> 
> Background:
> I'm running Eprints 3.3.6 on CentOS6.3, which had been recently 
> upgraded from CentOS 6.0. Since the upgrade, I needed to modify the   
> entities in the system.xml file. Did not downgrade the libxml2 nor libxml2-python.
> 
> BTW - the BibTex and all other export modules are  displaying within 
> the browser (Firefox) screen, should they not be forced to a save-as 
> file dialog.

Hi,

You've been bitten by a change in how the URI module works. If you notice all the '&'s have been turned into 'n's.

There was a fix for this in Search.pm:
http://trac.eprints.org/eprints/changeset/7686

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