Skip to content

Commit

Permalink
Merge pull request #239 from mlibrary/fixes-request-statuses
Browse files Browse the repository at this point in the history
uses latest request_status codes
  • Loading branch information
erinesullivan authored Nov 11, 2022
2 parents d8f6cbb + 61450f2 commit a9ee99e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions models/items/alma/requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def request_date

def status
case @parsed_response["request_status"]
when "IN_PROCESS"
when "In Process"
"In process"
when "ON_HOLD_SHELF"
when "On Hold Shelf"
"Ready"
when "NOT_STARTED"
when "Not Started"
"Not started"
else
""
Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"part": "",
"date_of_publication": "",
"comment": null,
"request_status": "NOT_STARTED",
"request_status": "Not Started",
"request_date": "2020-11-02Z",
"request_time": "2020-11-02T16:09:05.810Z",
"booking_start_date": "2020-11-19T16:09:00Z",
Expand Down Expand Up @@ -65,7 +65,7 @@
"part": "",
"date_of_publication": "November 3, 2003.",
"comment": null,
"request_status": "IN_PROCESS",
"request_status": "In Process",
"request_date": "2020-11-02Z",
"request_time": "2020-11-02T16:08:20.579Z",
"task_name": "Pickup From Shelf",
Expand Down

0 comments on commit a9ee99e

Please sign in to comment.