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

Fix: journal-meta advice #890

Merged

Conversation

Rossi-Luciano
Copy link
Collaborator

O que esse PR faz?

Ajusta o conteúdo de advice nas funções de validação de journal-meta.

Onde a revisão poderia começar?

Por commit.

Como este poderia ser testado manualmente?

NA.

Algum cenário de contexto que queira dar?

NA.

Screenshots

NA.

Quais são tickets relevantes?

TK #878

Referências

NA.

is_valid=is_valid,
expected=expected_value,
obtained=self.journal_acronym.text,
advice='Mark journal acronym value with <journal-meta><journal-id journal-id-type="publisher-id">{}</journal-id>'.format(expected_value),
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano
Mark journal acronym value with <journal-meta><journal-id journal-id-type="publisher-id">{}</journal-id>
troque por
Mark journal acronym value with <journal-id journal-id-type="publisher-id">{}</journal-id> in <journal-meta>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

is_valid=is_valid,
expected=expected_value,
obtained=self.journal_titles.journal_title,
advice='Mark journal title value with <journal-meta><journal-title-group><journal-title>',
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano remover <journal-meta>e adicionar ao final da mensagem in <journal-meta>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -226,7 +240,7 @@ def validate_publisher_names(self, publisher_name_list, error_level="CRITICAL"):
is_valid=is_valid,
expected=expected,
obtained=obtained,
advice=f'Provide the expected publisher name: {expected}',
advice=f'Mark publisher name values with <journal-meta><publisher><publisher-name>{expected}</publisher-name></publisher></journal-meta>',
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano corrigir

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -326,7 +340,7 @@ def nlm_ta_id_validation(self, expected_value, error_level="CRITICAL"):
is_valid=is_valid,
expected=expected_value,
obtained=self.nlm_ta,
advice='Provide an nlm-ta value as expected: {}'.format(expected_value),
advice=f'Mark an nlm-ta value with <journal-meta><journal-id journal-id-type="nlm-ta">{expected_value}</journal-id></journal-meta>',
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano corrigir

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

@robertatakenaka robertatakenaka left a comment

Choose a reason for hiding this comment

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

@Rossi-Luciano fazer as correções

is_valid=is_valid,
expected='<issn pub-type="{}">{}</issn>'.format(tp, issn_expected),
obtained='<issn pub-type="{}">{}</issn>'.format(tp, issn_obtained),
advice='Mark ISSN value with <journal-meta><issn pub-type="{}">{}</issn>'.format(tp, issn_expected),
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano Trocar 'Mark ISSN value with <journal-meta><issn pub-type="{}">{}</issn>'.format(tp, issn_expected) por
'Mark {} ISSN with <journal-meta><issn pub-type="{}">{}</issn>'.format(name, tp, issn_expected)

Sendo name, deve ser electronic ou print

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

is_valid=is_valid,
expected=expected_value,
obtained=self.journal_acronym.text,
advice='Mark journal acronym value with <journal-id journal-id-type="publisher-id">{}</journal-id> in <journal-meta>'.format(expected_value),
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano remover a palavra value (Mark journal acronym with)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

is_valid=is_valid,
expected=expected_value,
obtained=self.journal_titles.journal_title,
advice='Mark journal title value with <journal-title-group><journal-title> in <journal-meta>',
Copy link
Member

@robertatakenaka robertatakenaka Feb 18, 2025

Choose a reason for hiding this comment

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

@Rossi-Luciano remover 'value' e use

Troque:
'Mark journal title value with <journal-title-group><journal-title> in <journal-meta>' por

Mark journal title with <journal-title> inside <journal-title-group>' (pode omitir journal-meta porque só existe journal-title-group dentro de journal-meta)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -145,7 +159,7 @@ def abbreviated_journal_title_validation(self, expected_value, error_level="CRIT
is_valid=is_valid,
expected=expected_value,
obtained=self.journal_titles.abbreviated_journal_title,
advice='Provide a journal title value as expected: {}'.format(expected_value),
advice='Mark abbreviated journal title value with <journal-title-group><abbrev-journal-title> in <journal-meta>',
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano ajuste a mensagem de acordo com os comentários anteriores

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

@robertatakenaka robertatakenaka left a comment

Choose a reason for hiding this comment

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

@Rossi-Luciano faça os ajustes

@@ -81,7 +82,7 @@ def validate_issn(self, issns_dict, error_level="CRITICAL"):
is_valid=is_valid,
expected='<issn pub-type="{}">{}</issn>'.format(tp, issn_expected),
obtained='<issn pub-type="{}">{}</issn>'.format(tp, issn_obtained),
advice='Mark ISSN value with <journal-meta><issn pub-type="{}">{}</issn>'.format(tp, issn_expected),
advice='Mark {} ISSN with <journal-meta><issn pub-type="{}">{}</issn>'.format(name, tp, issn_expected),
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano troque <journal-meta><issn pub-type="{}">{}</issn>' por <issn pub-type="{}">{}</issn>' inside <journal-meta>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

@robertatakenaka robertatakenaka left a comment

Choose a reason for hiding this comment

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

@Rossi-Luciano fazer a correção

@robertatakenaka robertatakenaka merged commit 2963094 into scieloorg:master Feb 21, 2025
2 checks passed
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