Create 'publisher' in PMCBook when new organisation is created in BCMS
Acceptance criteria 30 March 2021
-
Creating a new organization in BCMS creates a new publisher record in NCBI system -
The required fields are indicated in the UI and users are given guidance when a field is incomplete or incorrect. These are: name, email, abbreviated name (#444 (closed)) -
The user is shown a success message on screen when the organization is created. -
The user is shown an error message on screen when creating the organization was unsuccessful, with guidance of what to do to resolve the error. -
After the organization is created the user can see (not edit) the publisher abbreviation and ID on the settings page. -
The user can come back to the Organization settings page to update the organization's name which updates the publisher record in NCBI system.
Hi @John.kopanas and @danjela
According to create publisher in Domain service issue (#226) when a new organisation is created in the BCMS, this should create a new 'publisher' in PMCBook.
The request to NCBI domain service must include:
{
"name": "New publisher", // New publisher name to create.
"abbreviation": "npub" // New publisher abbreviation. Must match [a-z][a-z0-9_]+$ (start with a letter and only contains alphanumeric chars plus underscore)
}
-
"name"
matchesName
in the UI below -
"abbreviation"
A field 'Abbreviated name' need to be added to the UI, validated as above
When user selects 'Save' this sends request to create publisher. A successful response includes the publisher ID
},
"body": {
"id": "12347", // New publisher id
"name": "New publisher", // New publisher name
"abbreviation": "npub" // New publisher abbreviation
}
A field Publisher ID
should be added to the 'Settings' tab, populated with ID provided in successful response.
The possible errors should be shown and resolved in the 'New organization' modal. @danjela let's discuss the design for this please