[HepData-svn] r1909 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Nov 16 17:15:56 GMT 2015


Author: watt
Date: Mon Nov 16 17:15:56 2015
New Revision: 1909

Log:
Search: update Inspire search command to (520:hepdata or 856:DURHAM)

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java	Tue Nov 10 16:47:13 2015	(r1908)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/Search.java	Mon Nov 16 17:15:56 2015	(r1909)
@@ -243,7 +243,7 @@
                 tempquery[1]=tempquery[1].replaceAll("\\s+","+");
                 String which = "";
                 if(!tempquery[0].equals("")){ which = tempquery[0] + ":";}
-                HttpGet httpget = new HttpGet("http://inspirehep.net/search?p="+which+tempquery[1]+"+and+520:hepdata&of=tm&ot=001&jrec="+recstart+"&rg="+reclength);
+                HttpGet httpget = new HttpGet("http://inspirehep.net/search?p="+which+tempquery[1]+"+and+(520:hepdata+or+856:DURHAM)&of=tm&ot=001&jrec="+recstart+"&rg="+reclength);
                 ResponseHandler<String> responseHandler = new BasicResponseHandler();
                 try { String responseBody = httpclient.execute(httpget, responseHandler);
                     
@@ -336,7 +336,7 @@
                 tempquery[1]=tempquery[1].replaceAll("\\s+","+");
                 String which = "";
                 if(!tempquery[0].equals("")){ which = tempquery[0] + ":";}
-                HttpGet httpget = new HttpGet("http://inspirehep.net/search?p="+which+tempquery[1]+"+and+856:DURHAM&of=hm&ot=001");
+                HttpGet httpget = new HttpGet("http://inspirehep.net/search?p="+which+tempquery[1]+"+and+(520:hepdata+or+856:DURHAM)&of=hm&ot=001");
 
                 ResponseHandler<String> responseHandler = new BasicResponseHandler();
                 try { String responseBody = httpclient.execute(httpget, responseHandler);


More information about the HepData-svn mailing list