Skip to content

Commit

Permalink
pkp/pkp-lib#9453 Better data for review history mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
nibou230 committed Feb 20, 2024
1 parent 960323b commit cf4253c
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 21 deletions.
22 changes: 21 additions & 1 deletion src/pages/reviewerSubmission/ReviewerSubmissionPage.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,32 @@ export default {

export const Base = {};

export const OpenModal = {
export const OpenModalAccepted = {
play: async ({canvasElement}) => {
// Assigns canvas to the component root element
const canvas = within(canvasElement);
const user = userEvent.setup();

await user.click(canvas.getByText('Read Round 1 Review'));
},
decorators: [
() => ({
template: '<div style="height: 700px"><story/></div>',
}),
],
};

export const OpenModalDeclined = {
play: async ({canvasElement}) => {
// Assigns canvas to the component root element
const canvas = within(canvasElement);
const user = userEvent.setup();

await user.click(canvas.getByText('Read Round 2 Review'));
},
decorators: [
() => ({
template: '<div style="height: 700px"><story/></div>',
}),
],
};
99 changes: 91 additions & 8 deletions src/pages/reviewerSubmission/mocks/review1.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
export default {
publicationTitle:
'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat',
publicationType: 'Articles',
publicationAbstract:
'Aim of this research is to provide a general situation of cattle slaughtered in Cameroon, as a representative example for the Central African Sub-region. The quality and safety of beef from the abattoir of Yaound\u00e9, the largest in Cameroon, were considered. From January 2009 to March 2012, the pre-slaughter conditions and characteristics of 1953 cattle carcasses were recorded, as well as the pH of m. longissimus thoracis 24 h after slaughter. From these carcasses, 60 were selected to represent the bulls slaughtered. The quality parameters and composition of m. longissimus thoracis were carried out. The origin of most of the cattle was the Guinea High Savannah (74.6%), and transhumance was the common production system (75.5%). Gudali (45.6%), White Fulani (33.3%) and Red Mbororo (20.3%) breeds were predominant. Carcass weight was affected by rearing system and cattle category, and it markedly varied during year. Considering meat quality, the fat content was low (1.2%) and similar between breeds, moreover Gudali showed the toughest meat. Of the cows slaughtered, 27% were pregnant and the most common abnormal conditions encountered were ectoparasites, fatigue, lameness, fungal-like skin lesions, enlarged lymph nodes, respiratory distress, nodular lesions. More than 20% of the carcasses had some organs condemned, mainly for liver flukes (5.17%), and 1.0% of them were completely condemned due to tuberculosis, that also affected 3.28% of lungs. These data could aid authorities draw up programmes with the aim to strengthen cattle production, improve beef supply, control and prevent the observed diseases, and promote the regional trade.',
publicationKeywords: 'cattle, food security',
publicationTitle: {
en: 'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat',
fr_CA: 'Influence d\'une alimentation à long terme avec différentes graisses alimentaires sur la composition en acides gras du lard des porcs lourds',
},
publicationType: {
en: 'Articles',
fr_CA: 'Articles',
},
publicationAbstract: {
en: 'Aim of this research is to provide a general situation of cattle slaughtered in Cameroon, as a representative example for the Central African Sub-region. The quality and safety of beef from the abattoir of Yaound\u00e9, the largest in Cameroon, were considered. From January 2009 to March 2012, the pre-slaughter conditions and characteristics of 1953 cattle carcasses were recorded, as well as the pH of m. longissimus thoracis 24 h after slaughter. From these carcasses, 60 were selected to represent the bulls slaughtered. The quality parameters and composition of m. longissimus thoracis were carried out. The origin of most of the cattle was the Guinea High Savannah (74.6%), and transhumance was the common production system (75.5%). Gudali (45.6%), White Fulani (33.3%) and Red Mbororo (20.3%) breeds were predominant. Carcass weight was affected by rearing system and cattle category, and it markedly varied during year. Considering meat quality, the fat content was low (1.2%) and similar between breeds, moreover Gudali showed the toughest meat. Of the cows slaughtered, 27% were pregnant and the most common abnormal conditions encountered were ectoparasites, fatigue, lameness, fungal-like skin lesions, enlarged lymph nodes, respiratory distress, nodular lesions. More than 20% of the carcasses had some organs condemned, mainly for liver flukes (5.17%), and 1.0% of them were completely condemned due to tuberculosis, that also affected 3.28% of lungs. These data could aid authorities draw up programmes with the aim to strengthen cattle production, improve beef supply, control and prevent the observed diseases, and promote the regional trade.',
fr_CA: 'Le but de cette recherche est de fournir une situation générale des bovins abattus au Cameroun, à titre d\'exemple représentatif de la sous-région de l\'Afrique Centrale. La qualité et la sécurité sanitaire de la viande bovine issue de l\'abattoir de Yaoundé9, le plus grand du Cameroun, ont été étudiées. De janvier 2009 à mars 2012, les conditions et caractéristiques avant l\'abattage de 1953 carcasses de bovins ont été enregistrées, ainsi que le pH de m. longissimus thoracis 24 h après l\'abattage. Parmi ces carcasses, 60 ont été sélectionnées pour représenter les taureaux abattus. Les paramètres de qualité et la composition de m. longissimus thoracis ont été réalisés. L\'origine de la plupart des bovins était la haute savane guinéenne (74,6%), et la transhumance était le système de production commun (75,5%). Les races Gudali (45,6%), Peuls Blancs (33,3%) et Mbororo Rouge (20,3%) étaient prédominantes. Le poids des carcasses était affecté par le système d\'élevage et la catégorie de bovins, et variait considérablement au cours de l\'année. Concernant la qualité de la viande, la teneur en graisse était faible (1,2%) et similaire entre les races, de plus Gudali présentait la viande la plus dure. Parmi les vaches abattues, 27 % étaient gestantes et les conditions anormales les plus fréquemment rencontrées étaient les ectoparasites, la fatigue, la boiterie, les lésions cutanées de type fongique, l\'hypertrophie des ganglions lymphatiques, la détresse respiratoire, les lésions nodulaires. Plus de 20% des carcasses présentaient certains organes condamnés, principalement pour des douves du foie (5,17%), et 1,0% d\'entre elles ont été complètement condamnées à cause de la tuberculose, qui a également touché 3,28% des poumons. Ces données pourraient aider les autorités à élaborer des programmes visant à renforcer la production bovine, à améliorer l\'approvisionnement en viande bovine, à contrôler et prévenir les maladies observées et à promouvoir le commerce régional.',
},
publicationKeywords: {
en: [
'cattle',
'food security',
],
fr_CA: [
'bétail',
'sécurité alimentaire',
],
},
declineEmail: null,
reviewAssignment: {
_href:
Expand Down Expand Up @@ -43,7 +59,9 @@ export default {
comments: [
'<p>This is my <strong>feedback</strong> for author and editor.</p>',
],
privateComments: ['<p>This is my <strong>feedback</strong> for editor.</p>'],
privateComments: [
'<p>This is my <strong>feedback</strong> for editor.</p>',
],
attachments: [
{
_href:
Expand Down Expand Up @@ -107,5 +125,70 @@ export default {
viewable: null,
},
],
files: [],
files: [
{
_href:
'http://localhost:7002/index.php/publicknowledge/api/v1/submissions/16/files/41',
assocId: 1,
assocType: 521,
caption: null,
copyrightOwner: null,
createdAt: '2024-02-07 14:19:31',
creator: {
en: '',
fr_CA: '',
},
credit: null,
dateCreated: null,
dependentFiles: [],
description: {
en: '',
fr_CA: '',
},
documentType: 'pdf',
fileId: 37,
fileStage: 10,
genreId: 1,
genreIsDependent: false,
genreIsSupplementary: false,
genreName: {
en: 'Article Text',
fr_CA: "Texte de l'article",
},
id: 41,
language: null,
locale: 'en',
mimetype: 'application/pdf',
name: {
en: 'article.pdf',
fr_CA: '',
},
path: 'journals/1/articles/16/653fbb73c2ac5.pdf',
publisher: {
en: '',
fr_CA: '',
},
revisions: [],
source: {
en: '',
fr_CA: '',
},
sourceSubmissionFileId: null,
sponsor: {
en: '',
fr_CA: '',
},
subject: {
en: '',
fr_CA: '',
},
submissionId: 16,
terms: null,
updatedAt: '2024-02-07 14:20:23',
uploaderUserId: 1,
uploaderUserName: 'admin',
url: 'http://localhost:7002/index.php/publicknowledge/$$$call$$$/api/file/file-api/download-file?submissionFileId=41&submissionId=16&stageId=1',
viewable: null,
},
],
};
43 changes: 31 additions & 12 deletions src/pages/reviewerSubmission/mocks/review2.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
export default {
publicationTitle:
'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat',
publicationType: 'Articles',
publicationAbstract:
'Aim of this research is to provide a general situation of cattle slaughtered in Cameroon, as a representative example for the Central African Sub-region. The quality and safety of beef from the abattoir of Yaound\u00e9, the largest in Cameroon, were considered. From January 2009 to March 2012, the pre-slaughter conditions and characteristics of 1953 cattle carcasses were recorded, as well as the pH of m. longissimus thoracis 24 h after slaughter. From these carcasses, 60 were selected to represent the bulls slaughtered. The quality parameters and composition of m. longissimus thoracis were carried out. The origin of most of the cattle was the Guinea High Savannah (74.6%), and transhumance was the common production system (75.5%). Gudali (45.6%), White Fulani (33.3%) and Red Mbororo (20.3%) breeds were predominant. Carcass weight was affected by rearing system and cattle category, and it markedly varied during year. Considering meat quality, the fat content was low (1.2%) and similar between breeds, moreover Gudali showed the toughest meat. Of the cows slaughtered, 27% were pregnant and the most common abnormal conditions encountered were ectoparasites, fatigue, lameness, fungal-like skin lesions, enlarged lymph nodes, respiratory distress, nodular lesions. More than 20% of the carcasses had some organs condemned, mainly for liver flukes (5.17%), and 1.0% of them were completely condemned due to tuberculosis, that also affected 3.28% of lungs. These data could aid authorities draw up programmes with the aim to strengthen cattle production, improve beef supply, control and prevent the observed diseases, and promote the regional trade.',
publicationKeywords: 'cattle, food security',
declineEmail: null,
publicationTitle: {
en: 'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat',
fr_CA: 'Influence d\'une alimentation à long terme avec différentes graisses alimentaires sur la composition en acides gras du lard des porcs lourds',
},
publicationType: {
en: 'Articles',
fr_CA: 'Articles',
},
publicationAbstract: {
en: 'Aim of this research is to provide a general situation of cattle slaughtered in Cameroon, as a representative example for the Central African Sub-region. The quality and safety of beef from the abattoir of Yaound\u00e9, the largest in Cameroon, were considered. From January 2009 to March 2012, the pre-slaughter conditions and characteristics of 1953 cattle carcasses were recorded, as well as the pH of m. longissimus thoracis 24 h after slaughter. From these carcasses, 60 were selected to represent the bulls slaughtered. The quality parameters and composition of m. longissimus thoracis were carried out. The origin of most of the cattle was the Guinea High Savannah (74.6%), and transhumance was the common production system (75.5%). Gudali (45.6%), White Fulani (33.3%) and Red Mbororo (20.3%) breeds were predominant. Carcass weight was affected by rearing system and cattle category, and it markedly varied during year. Considering meat quality, the fat content was low (1.2%) and similar between breeds, moreover Gudali showed the toughest meat. Of the cows slaughtered, 27% were pregnant and the most common abnormal conditions encountered were ectoparasites, fatigue, lameness, fungal-like skin lesions, enlarged lymph nodes, respiratory distress, nodular lesions. More than 20% of the carcasses had some organs condemned, mainly for liver flukes (5.17%), and 1.0% of them were completely condemned due to tuberculosis, that also affected 3.28% of lungs. These data could aid authorities draw up programmes with the aim to strengthen cattle production, improve beef supply, control and prevent the observed diseases, and promote the regional trade.',
fr_CA: 'Le but de cette recherche est de fournir une situation générale des bovins abattus au Cameroun, à titre d\'exemple représentatif de la sous-région de l\'Afrique Centrale. La qualité et la sécurité sanitaire de la viande bovine issue de l\'abattoir de Yaoundé9, le plus grand du Cameroun, ont été étudiées. De janvier 2009 à mars 2012, les conditions et caractéristiques avant l\'abattage de 1953 carcasses de bovins ont été enregistrées, ainsi que le pH de m. longissimus thoracis 24 h après l\'abattage. Parmi ces carcasses, 60 ont été sélectionnées pour représenter les taureaux abattus. Les paramètres de qualité et la composition de m. longissimus thoracis ont été réalisés. L\'origine de la plupart des bovins était la haute savane guinéenne (74,6%), et la transhumance était le système de production commun (75,5%). Les races Gudali (45,6%), Peuls Blancs (33,3%) et Mbororo Rouge (20,3%) étaient prédominantes. Le poids des carcasses était affecté par le système d\'élevage et la catégorie de bovins, et variait considérablement au cours de l\'année. Concernant la qualité de la viande, la teneur en graisse était faible (1,2%) et similaire entre les races, de plus Gudali présentait la viande la plus dure. Parmi les vaches abattues, 27 % étaient gestantes et les conditions anormales les plus fréquemment rencontrées étaient les ectoparasites, la fatigue, la boiterie, les lésions cutanées de type fongique, l\'hypertrophie des ganglions lymphatiques, la détresse respiratoire, les lésions nodulaires. Plus de 20% des carcasses présentaient certains organes condamnés, principalement pour des douves du foie (5,17%), et 1,0% d\'entre elles ont été complètement condamnées à cause de la tuberculose, qui a également touché 3,28% des poumons. Ces données pourraient aider les autorités à élaborer des programmes visant à renforcer la production bovine, à améliorer l\'approvisionnement en viande bovine, à contrôler et prévenir les maladies observées et à promouvoir le commerce régional.',
},
publicationKeywords: {
en: [
'cattle',
'food security',
],
fr_CA: [
'bétail',
'sécurité alimentaire',
],
},
declineEmail: {
subject: '<p>This is the <strong>subject</strong> of my email</p>',
body: '<p>Editors:<br><br>I am afraid that at this time I am unable to review the submission, "<strong>Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat</strong>" for Le partage. Thank you for thinking of me, and another time feel free to call on me.<br><br>Paul</p>',
},
reviewAssignment: {
_href:
'http://localhost:7002/index.php/_/api/v1/_submissions/reviewAssignments/30',
Expand All @@ -15,14 +34,14 @@ export default {
considered: null,
dateAcknowledged: null,
dateAssigned: '2024-02-08 12:47:38',
dateCompleted: '2024-02-08 12:51:12',
dateCompleted: null,
dateConfirmed: '2024-02-08 12:48:22',
dateDue: '2024-03-07 00:00:00',
dateNotified: '2024-02-08 12:47:40',
dateRated: null,
dateReminded: null,
dateResponseDue: '2024-03-07 00:00:00',
declined: false,
declined: true,
id: 30,
lastModified: '2024-02-08 12:51:12',
quality: null,
Expand All @@ -39,9 +58,9 @@ export default {
step: 4,
submissionId: 16,
},
recommendation: 'Accept Submission',
comments: ['<p>For author and editor 2</p>'],
privateComments: ['<p>For editor 2</p>'],
recommendation: null,
comments: [],
privateComments: [],
attachments: [],
files: [],
};

0 comments on commit cf4253c

Please sign in to comment.