Skip to content

Commit

Permalink
reverted 7ed3616 to fix detail view in Musikhochschule Karlsruhe
Browse files Browse the repository at this point in the history
  • Loading branch information
johan12345 committed Apr 27, 2019
1 parent e7ed45f commit 2ba69d9
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -647,20 +647,7 @@ public DetailedItem getResultById(String id, String homebranch)
}
nvpairs.add(new BasicNameValuePair("selected", "ZTEXT " + id));
doc = htmlPost(opac_url + ";jsessionid=" + s_sid, nvpairs);

List<NameValuePair> form = new ArrayList<>();
for (Element input : doc.select("input, select")) {
if (!"image".equals(input.attr("type"))
&& !"submit".equals(input.attr("type"))
&& !"checkbox".equals(input.attr("type"))
&& !"".equals(input.attr("name"))
&& !"selected".equals(input.attr("name"))) {
form.add(new BasicNameValuePair(input.attr("name"), input
.attr("value")));
}
}
form.add(new BasicNameValuePair("selected", "ZTEXT " + id));
doc = htmlPost(opac_url + ";jsessionid=" + s_sid, form);
doc = htmlPost(opac_url + ";jsessionid=" + s_sid, nvpairs);
// Yep, two times.
}

Expand Down

0 comments on commit 2ba69d9

Please sign in to comment.