[HepData-svn] r1881 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Wed Jul 8 17:21:24 BST 2015


Author: watt
Date: Wed Jul  8 17:21:23 2015
New Revision: 1881

Log:
Correction to link to index.shtml file in resource area for YAML formatter

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java	Wed Jul  8 17:15:13 2015	(r1880)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/YamlFormatter.java	Wed Jul  8 17:21:23 2015	(r1881)
@@ -143,14 +143,13 @@
 	    File testdesc = new File(descfile);
 	    File testlink = new File(linkfile);
 	    String desc="";
-	    String link="";
 	    if( testdesc.exists() && testlink.exists() ) {
 		try {
 		    BufferedReader in = new BufferedReader(new FileReader(descfile));
 		    desc=in.readLine();	    
 		} 
 		catch (IOException e){}
-		s.append(sp+"{location: '"+link+"', description: '"+desc.replaceAll("'","''")+"'}\n");
+		s.append(sp+"{location: '/resource/"+ids[j]+"/index.shtml', description: '"+desc.replaceAll("'","''")+"'}\n");
 	    }
 	}
 	


More information about the HepData-svn mailing list