Skip to content

Commit

Permalink
DS-1537: Invalid bitstream URL in OAI
Browse files Browse the repository at this point in the history
  • Loading branch information
helix84 committed Jul 17, 2013
1 parent d916359 commit 7988e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dspace-oai/src/main/java/org/dspace/xoai/util/ItemUtils.java
Expand Up @@ -165,7 +165,7 @@ public static Metadata retrieveMetadata (Item item) {
Element bitstream = create(factory, "bitstream");
bitstreams.getElement().add(bitstream);
String url = "";
String bsName = bitstream.getName();
String bsName = bit.getName();
String sid = String.valueOf(bit.getSequenceID());
String baseUrl = ConfigurationManager.getProperty("oai",
"bitstream.baseUrl");
Expand All @@ -190,7 +190,7 @@ public static Metadata retrieveMetadata (Item item) {
if (handle != null && baseUrl != null)
{
url = baseUrl + "/bitstream/"
+ URLUtils.encode(handle) + "/"
+ handle + "/"
+ sid + "/"
+ URLUtils.encode(bsName);
}
Expand Down

0 comments on commit 7988e4b

Please sign in to comment.