Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANW-1422: display full record ID in PUI breadcrumb #2646

Merged
merged 1 commit into from Mar 7, 2022
Merged

Conversation

avatar382
Copy link
Collaborator

Description

display full record ID in PUI breadcrumb

Related JIRA Ticket or GitHub Issue

https://archivesspace.atlassian.net/jira/software/c/projects/ANW/issues/ANW-1422

How Has This Been Tested?

manual in browser testing

Screenshots (if appropriate):

Screenshot_2022-02-23_16-41-40
Screenshot_2022-02-23_16-40-49

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have read the CONTRIBUTING document.
  • I have authority to submit this code.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@mark-cooper mark-cooper self-assigned this Mar 2, 2022
@@ -28,7 +28,15 @@ def breadcrumb
def breadcrumb_identifier(record, type)
case type
when 'resource'
resolved_resource['id_0'] if resolved_resource
if resolved_resource
id_0 = resolved_resource['id_0']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avatar382 an alternative could be resolved_resource.slice('id_0', 'id_1', 'id_2', 'id_3').values.compact.join('-') ... but if you want to leave it as is I think we're good here, works as expected.

@mark-cooper mark-cooper merged commit 38f9b51 into master Mar 7, 2022
@mark-cooper mark-cooper deleted the ANW-1422 branch March 7, 2022 23:13
@cdibella cdibella added this to the 3.2.1 milestone Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants