Skip to content

Commit

Permalink
Merge changes for v2.2.3 (#100)
Browse files Browse the repository at this point in the history
* Merge changes for v2.1.6 (#92)

* DISCOVERYACCESS-7627 - for rbenv users

* DISCOVERYACCESS-7627 - rails 6 required for cornell-blacklight

* DISCOVERYACCESS-7627 - bump version number

* DISCOVERYACCESS-7627 - rails 6 for cornell-blacklight

* DISCOVERYACCESS-7627 - try rails 7

* DISCOVERYACCESS-7627 - back to rails 6.1

* DISCOVERYACCESS-7627 - bump version number

* DISCOVERYACCESS-7627 - forgot save all

* Update release notes

Co-authored-by: James Reidy <jreidy@cornell.edu>

* DISCOVERYACCESS-7838: update my account login page text

* Merge changes for v2.2.0 (ReShare) to dev (#94)

* WIP

* Eliminate ilsapi cgi script reference (talk directly to illiad6.cgi)

* Display pickup location for BD

* Differentiate pending and available ReShare requests

* Bump to v2.2.0

* Ensure ReShare results are only for the user's netid

* Remove unused functions

* Linting

* Skip ILL items with status 'Request Sent to BD'

* Avoid duplicate request entries

* DISCOVERYACCESS-7964: update links to main site

* DISCOVERYACCESS-7964: update link to fine rates

* Merge changes for v2.2.2 (#97)

* Merge changes for v2.2.1 to master (#96)

* Merge changes for v2.1.6 (#92)

* DISCOVERYACCESS-7627 - for rbenv users

* DISCOVERYACCESS-7627 - rails 6 required for cornell-blacklight

* DISCOVERYACCESS-7627 - bump version number

* DISCOVERYACCESS-7627 - rails 6 for cornell-blacklight

* DISCOVERYACCESS-7627 - try rails 7

* DISCOVERYACCESS-7627 - back to rails 6.1

* DISCOVERYACCESS-7627 - bump version number

* DISCOVERYACCESS-7627 - forgot save all

* Update release notes

Co-authored-by: James Reidy <jreidy@cornell.edu>

* DISCOVERYACCESS-7838: update my account login page text

* Merge changes for v2.2.0 (ReShare) to dev (#94)

* WIP

* Eliminate ilsapi cgi script reference (talk directly to illiad6.cgi)

* Display pickup location for BD

* Differentiate pending and available ReShare requests

* Bump to v2.2.0

* Ensure ReShare results are only for the user's netid

* Remove unused functions

* Linting

* Skip ILL items with status 'Request Sent to BD'

* Avoid duplicate request entries

Co-authored-by: James Reidy <jreidy@cornell.edu>
Co-authored-by: Melissa Wallace <mhk33@cornell.edu>

* Handle 'checked out in FOLIO'

* Don't create catalog links for ReShare items

* Code cleanup

* Don't show ReShare items with status REQ_CHECKED_IN

* Show date shipped for ReShare items in pending requests

* Remove nonfunctional checkbox selection from available requests.

* Restore source badges for ILL items in checkouts list

* Bump to v2.2.2

* Remove debug code

---------

Co-authored-by: James Reidy <jreidy@cornell.edu>
Co-authored-by: Melissa Wallace <mhk33@cornell.edu>

* Fix bug causing requests not to load (#99)

---------

Co-authored-by: James Reidy <jreidy@cornell.edu>
Co-authored-by: Melissa Wallace <mhk33@cornell.edu>
  • Loading branch information
3 people authored Mar 21, 2023
1 parent 160d532 commit b1b62a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/controllers/my_account/account_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def get_illiad_data
i['status'] = 'Charged'
# checkouts << i
else
i['shipped'] = ship_date(i)
i['shipped'] = reshare_shipped_status(i)
pending_requests << i
end
end
Expand Down Expand Up @@ -364,12 +364,12 @@ def get_bd_requests
# in the API response, but only provided as part of a marcxml description of the entire item record.
marc = XmlSimple.xml_in(item['bibRecord'])
f245 = marc['GetRecord'][0]['record'][0]['metadata'][0]['record'][0]['datafield'].find { |t| t['tag'] == '245' }
f245a = f245['subfield'].find { |sf| sf['code'] == 'a' }
f245b = f245['subfield'].find { |sf| sf['code'] == 'b' }
f245a = f245 && f245['subfield'].find { |sf| sf['code'] == 'a' }
f245b = f245 && f245['subfield'].find { |sf| sf['code'] == 'b' }
title = f245b ? "#{f245a['content']} #{f245b['content']}" : f245a['content']

f100 = marc['GetRecord'][0]['record'][0]['metadata'][0]['record'][0]['datafield'].find { |t| t['tag'] == '100' }
f100a = f100['subfield'].find { |sf| sf['code'] == 'a' }
f100a = f100 && f100['subfield'].find { |sf| sf['code'] == 'a' }
author = f100a ? "#{f100a['content']}" : ''

# For the final item, we add a fake item ID number (iid) for compatibility with other items in the system
Expand Down
2 changes: 1 addition & 1 deletion lib/my_account/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module MyAccount
VERSION = "2.2.2"
VERSION = "2.2.3"
end
4 changes: 3 additions & 1 deletion release_notes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Release Notes - my-account

## v2.2.2
## v2.2.3
- Fix bug in shipped date calculation that prevented requests from loading.

## v2.2.2
### Improvements
- Show date shipped for ReShare items in pending requests.
- Show author for ReShare items in requests.
Expand Down

0 comments on commit b1b62a8

Please sign in to comment.