Permalink
Browse files

version 0.2; do not add leading 'find'

  • Loading branch information...
1 parent 9947011 commit 04e9508c80a481c8f262ce6a9922823a6406f389 @lehner committed Sep 26, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −1 build.xml
  2. +1 −1 plugin.xml
  3. +2 −1 src/INSPIREfetcher.java
View
@@ -8,7 +8,7 @@
<property name="jabref.dir" value="../../jabref" />
- <property name="version" value="0.1" />
+ <property name="version" value="0.2" />
<property name="jar" value="${build.lib}/${ant.project.name}-${version}.jar" />
<fileset id="pluginFileset" dir="." includes="plugin.xml" />
View
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<!DOCTYPE plugin PUBLIC "-//JPF//Java Plug-in Manifest 1.0" "http://jpf.sourceforge.net/plugin_1_0.dtd">
-<plugin id="INSPIREfetcher" version="0.1">
+<plugin id="INSPIREfetcher" version="0.2">
<requires>
<import plugin-id="net.sf.jabref.core"/>
View
@@ -125,6 +125,7 @@ public INSPIREfetcher() {
public String constructUrl(String key) {
String identifier = "";
+
try {
identifier = URLEncoder.encode(key, "UTF-8");
} catch (UnsupportedEncodingException e) {
@@ -134,7 +135,7 @@ public String constructUrl(String key) {
.append("/");
sb.append("search").append("?");
sb.append("ln=en&action_search=Search&sf=&so=d&rm=&rg=25&sc=0&of=hx&");
- sb.append("p=find+");
+ sb.append("p=");
sb.append(identifier);
return sb.toString();
}

0 comments on commit 04e9508

Please sign in to comment.