Skip to content

Commit

Permalink
SLUB: resolve html escapes in sublocation (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefRe authored Dec 12, 2020
1 parent 4b65dba commit b51bd9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ open class SLUB : OkHttpBaseApi() {
Copy().apply {
barcode = it.getString("barcode")
branch = it.getString("location")
department = it.getString("sublocation") // or location = ...
department = Parser.unescapeEntities(it.getString("sublocation"), false)
shelfmark = it.getString("shelfmark")
status = Jsoup.parse(it.getString("statusphrase")).text()
it.getString("duedate").run {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class SLUBSearchTest : BaseHtmlTest() {
id = "id/0-1182402208"
copies = arrayListOf(Copy().apply {
barcode = "31541466"
department = "Freihand"
department = "Ausgabe über Ausleihtheke"
branch = "Bereichsbibliothek DrePunct"
status = "Ausleihbar"
shelfmark = "ST 233 H939"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"barcode": "31541466",
"location": "Bereichsbibliothek DrePunct",
"location_code": "zell9",
"sublocation": "Freihand",
"sublocation": "Ausgabe über Ausleihtheke",
"shelfmark": "ST 233 H939",
"mediatype": "B",
"3d": "ST 233 H939",
Expand Down

0 comments on commit b51bd9f

Please sign in to comment.