I'll follow this too - to implement tags in Inventory as well ()
Khalilah GambrellDecember 13, 2018 at 12:04 AM
, , and , I want to set up tags on the eholdings app. Can you direct me to the PR or any documentation for how Tags was implemented on mod-users?
Heikki LevantoApril 25, 2018 at 1:00 PM
Merged in master
Heikki LevantoApril 20, 2018 at 12:57 PM
There is a pull request enabling tags in mod-users. But that gives problems with mod-users-bl. Nothing too serious, I hope, but can not merge mod-users in quite yet.
I completely missed this. I think will be the best person to answer this question from the server side perspective.
On the front side we have a reusable tags component:
https://github.com/folio-org/stripes-smart-components/tree/master/lib/Tags
which is currently used in SearchAndSort component:
https://github.com/folio-org/stripes-smart-components/blob/master/lib/SearchAndSort/SearchAndSort.js#L197
but it shouldn't be too hard to use it directly.
From the server side perspective each taggable record will need to add
property:
https://github.com/folio-org/raml/blob/85e0c276d1706095ee09bdd694063e0acfd65051/schemas/tags.schema
Here is how mod-users implements it:
https://github.com/folio-org/mod-users/blob/master/ramls/userdata.json#L160-L163