SISIS: fix parsing copies when there are multiple tables
(seen in Bremen)
@@ -952,7 +952,8 @@ public class SISIS extends ApacheBaseApi implements OpacApi {
"4}) \\(gesamte Vormerkungen: ([0-9]+)\\)$");
Pattern status_and_barcode = Pattern.compile("^(.*) ([0-9A-Za-z]+)$");
- Elements exemplartrs = doc.select("#tab-content .data tr").not("#bg2");
+ Element table = doc.select("#tab-content .data").first();
+ Elements exemplartrs = table != null ? table.select("tr").not("#bg2") : new Elements();
DateTimeFormatter fmt =
DateTimeFormat.forPattern("dd.MM.yyyy").withLocale(Locale.GERMAN);
for (Element tr : exemplartrs) {
