Currently the publican build breaks if Author details are not located in the Author table by the builder. If no Author is found for any of the topics, or the Author does not have sufficient information (First Name, Last Name, email), then the "Staff Writer" default should be used. First Name, Last Name, and email are compulsory. Organizational affiliation is optional. The Staff Writer should use the email "writer.com". If an Author with ID 0 exists in the Author table, then the processor should use that Author attribution as the default if no other Author information is available. So the processor will: 1. Try to locate an Author information record for each of the assigned writers. 2. If an Author record is located, it must have First Name, Last Name, and email to be valid. The Org affiliation is optional. 3. If no valid authors can be located, and an Author ID 0 exists in the table, that Author information is used. 4. If no Author ID 0 exists then First Name: "Staff", Last Name: "Writer", email: "writer.com" is used.
Sorry, email is not compulsory. Require only First Name and Last Name, and give the default Staff Writer no email address.
Fixed. I missed this in my rush to get a build out Friday sorry. I've now added this as per the desired requirements. If no authors are found inside the AuthorInformation table it will try and load the tuple with an id of 0 in the AuthorInformation table. If none are found then it will insert the "Staff Writer" default.
Verified on: CSProcessor client version: 0.17.0 Web Service at http://csprocessor.cloud.lab.eng.bne.redhat.com:8080/ version: 0.21.4