[Rivet-svn] r3325 - in trunk: bin doc pyext

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Tue Aug 23 21:34:11 BST 2011


Author: hoeth
Date: Tue Aug 23 21:34:11 2011
New Revision: 3325

Log:
Raider heisst jetzt Twix!

Changing Spires links to use Inspire.

Modified:
   trunk/bin/rivet
   trunk/doc/mk-analysis-html
   trunk/doc/mk-analysis-latex
   trunk/doc/rivet-manual.tex
   trunk/pyext/spiresbib.py

Modified: trunk/bin/rivet
==============================================================================
--- trunk/bin/rivet	Tue Aug 23 14:50:00 2011	(r3324)
+++ trunk/bin/rivet	Tue Aug 23 21:34:11 2011	(r3325)
@@ -278,7 +278,7 @@
         print "Status: %s" % ana.status()
         print ""
         print "Spires ID: %s" % ana.spiresId()
-        print "Spires URL:  http://www.slac.stanford.edu/spires/find/hep/www?rawcmd=key+%s" % ana.spiresId()
+        print "Inspire URL: http://inspire-hep.net/search?p=find+key+%s" % ana.spiresId()
         print "HepData URL: http://hepdata.cedar.ac.uk/view/irn%s" % ana.spiresId()
         coll = ""
         if ana.collider():

Modified: trunk/doc/mk-analysis-html
==============================================================================
--- trunk/doc/mk-analysis-html	Tue Aug 23 14:50:00 2011	(r3324)
+++ trunk/doc/mk-analysis-html	Tue Aug 23 21:34:11 2011	(r3325)
@@ -60,7 +60,7 @@
     page += "<h3 id='%s'>%s</h3>\n" % (aname, aname)
     page += "<b>%s</b><br/>\n" %  ana.summary()
     page += "<b>Experiment:</b> %s (%s)<br/>\n" % (ana.experiment(), ana.collider())
-    spiresbase = "http://www.slac.stanford.edu/spires/find/hep/www?rawcmd=key"
+    spiresbase = "http://inspire-hep.net/search?p=find+key"
     page += "<b>Spires ID:</b> <a href='%s+%s'>%s</a><br/>\n" % \
         (spiresbase, ana.spiresId(), ana.spiresId())
     page += "<b>Status:</b> %s<br/>\n" % ana.status()

Modified: trunk/doc/mk-analysis-latex
==============================================================================
--- trunk/doc/mk-analysis-latex	Tue Aug 23 14:50:00 2011	(r3324)
+++ trunk/doc/mk-analysis-latex	Tue Aug 23 21:34:11 2011	(r3325)
@@ -100,7 +100,7 @@
             page += " (%s)" % ana.collider()
         page += "\\newline\n"
     if ana.spiresId():
-        spiresbase = "http://www.slac.stanford.edu/spires/find/hep/www?rawcmd=key"
+        spiresbase = "http://inspire-hep.net/search?p=find+key"
         page += "\\textbf{Spires ID:} \\href{%s+%s}{%s}\\newline\n" % \
             (spiresbase, ana.spiresId(), ana.spiresId())
     page += "\\textbf{Status:} %s\\newline\n" % ana.status()

Modified: trunk/doc/rivet-manual.tex
==============================================================================
--- trunk/doc/rivet-manual.tex	Tue Aug 23 14:50:00 2011	(r3324)
+++ trunk/doc/rivet-manual.tex	Tue Aug 23 21:34:11 2011	(r3325)
@@ -1208,7 +1208,7 @@
 \url{http://projects.hepforge.org/rivet/trac/wiki/}. The standard
 \kbd{rivet-mkanalysis} and \kbd{rivet-buildplugin} scripts can respectively be
 used to make an analysis template with many ``boilerplate'' details filled in
-(including bibliographic information from SPIRES if available), and to build a
+(including bibliographic information from Inspire if available), and to build a
 plugin library with the appropriate compiler options.
 
 

Modified: trunk/pyext/spiresbib.py
==============================================================================
--- trunk/pyext/spiresbib.py	Tue Aug 23 14:50:00 2011	(r3324)
+++ trunk/pyext/spiresbib.py	Tue Aug 23 21:34:11 2011	(r3325)
@@ -11,7 +11,7 @@
 """
 
 def fetch_spires_bibtex(spiresid):
-    spiresurl = "http://www.slac.stanford.edu/spires/find/hep/www?key=%s&FORMAT=WWWBRIEFBIBTEX" % str(spiresid)
+    spiresurl = "http://inspire-hep.net/search?p=find+key+%s&of=hx" % str(spiresid)
     logging.debug("Downloading SPIRES BibTeX from %s" % spiresurl)
     hreq = urllib2.urlopen(spiresurl)
     bibtexhtml = hreq.read()
@@ -22,7 +22,7 @@
 
 def extract_bibtex(spireshtml):
     ## Extract BibTeX block from HTML
-    re_spiresbibtex = re.compile(r'<!-- START RESULTS -->.*?<pre>(.*?)</pre>', re.MULTILINE | re.DOTALL)
+    re_spiresbibtex = re.compile(r'<pre>(.*?)</pre>', re.MULTILINE | re.DOTALL)
     m = re_spiresbibtex.search(spireshtml)
     if m is None:
         return None, None


More information about the Rivet-svn mailing list