Quixote-chempound search tab is XML

2 views
Skip to first unread message

Jorge Estrada

unread,
Nov 16, 2011, 4:36:08 AM11/16/11
to quixote-...@googlegroups.com
When I go to the search tab in my local quixote-chempound
(http://localhost:8080/search/), I retrieve an XML file instead of the
search web page that appears in the Cambridge quixote-chempound
installation (http://quixote.ch.cam.ac.uk/search/).

It seems the XML file should have been processed server-side, but
instead is transmitted raw to my browser.

Do you know what may I have misconfigured? Does it happen to other people?

Thanks.

Jorge


Peter Murray-Rust

unread,
Nov 16, 2011, 6:20:46 AM11/16/11
to quixote-...@googlegroups.com

I get similar: an (X)HTML file which tstarts
<head><title>Search</title><link rel="stylesheet" href="http://localhost:8080/static/chempound.css"/><script src="/plugins/jquery/jquery-1.4.2.js" type="text/javascript"/><script src="/plugins/jquery/jquery-ui-1.8.14.min.js" type="text/javascript"/><link href="/plugins/jquery/smoothness/jquery-ui-1.8.14.css" rel="stylesheet" type="text/css"/></head><body><header><div class="content"><h1>chempound data repository</h1></div></header><nav><div class="content"><ul><li><a href="http://localhost:8080/" class="first">Home</a></li><li><a href="http://localhost:8080/content/">Browse</a></li><li><a href="http://localhost:8080/search/">Search</a></li><li><a href="http://localhost:8080/sparql/">SPARQL</a></li><li><a href="http://localhost:8080/feeds/">Feeds</a></li></ul><div class="clear"/></div></nav>

This seems to echo the page on which the Search button occurs. Because it displays as XML it presumably doesn't have a MIME-TYPE or has an XML one.

I am working gently through the ingestion process and annotating the packages and classes. I want to refactor the following:
 * superclass of Deposit/GAU/NWChem
 * any other duplicated code between these two
 * hardcoded string constants.

Some of the refactoring could use (say) a getConverter() which is implemented in each subclass, making the customisation quite short.

P.

Jorge





--
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069

Sam Adams

unread,
Nov 17, 2011, 3:16:36 PM11/17/11
to quixote-...@googlegroups.com
The server was returning the XHTML mime type, but I'd changed the templates so they were HTML5, not XHTML any more.  This seems to have confused the browsers!  I've switched to the HTML mime type, and that seems to have solved the problem.  I've just pushed the changes and it should be building on the hudson server...

Sam

Jorge Estrada

unread,
Nov 18, 2011, 4:45:31 AM11/18/11
to quixote-...@googlegroups.com
I've checked Sam's changes to the search tab, and it works.

Thanks, Sam.

Jorge

Reply all
Reply to author
Forward
0 new messages