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

UIEH-585: Assign tags to show provider record #748

Merged
merged 6 commits into from
Feb 28, 2019

Conversation

Godlevskyi
Copy link
Contributor

Purpose

To display, assign, unassign, and output tags associated with individual Provider records within the FOLIO eholdings app.

As a staff person
I want to be able to assign, unassign, view, and output tags in a FOLIO eholdings app's Provider record
So that I can categorize records for filtering and reporting purposes.

Approach

tags functionality in the eholdings app was developed separately from the tags implemented in the stripes-smart-components as in eholdings we not used the search and sort component that integrates the tags.

In order to add the tags the tags the new Tags model was added.
Tags to populate the multiselect dropdown we recieve from the direct api call to the mod-tags.

In case the new custom tag is added the tag is also added to the mod-tags.

Screenshots

2019-02-28 13 08 54

src/components/tags/tags.js Outdated Show resolved Hide resolved
render() {
const { tags = [] } = this.props;
const { entityTags } = this.state;
const dataOptions = tags.map(t => ({ value: t.label.toLowerCase(), label: t.label.toLowerCase() }));
Copy link

Choose a reason for hiding this comment

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

Please, create getDataOptions and values getter to component method

@Godlevskyi Godlevskyi merged commit 72b27f8 into folio-org:master Feb 28, 2019
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.

2 participants