Skip to content

Verify ISSN consistency in KBART export - no changes needed#83

Draft
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-journal-url-issn-consistency
Draft

Verify ISSN consistency in KBART export - no changes needed#83
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-journal-url-issn-consistency

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

Summary

Investigated reported issue with _generate_journal_url method using any_issn(priority=u'electronic') instead of scielo_issn property.

Findings

The referenced code does not exist in the current codebase:

  • No _generate_journal_url method found in export/kbart.py (line 127 or elsewhere)
  • No usage of any_issn() anywhere in the repository
  • Current implementation already uses data.scielo_issn consistently throughout:
    • Line 132: Logging
    • Lines 138-139: Document retrieval
    • Line 160: Journal ID field

Conclusion

The codebase already follows the recommended pattern. Either:

No code changes required.

Original prompt

Problem

In the PR #81, the _generate_journal_url method in export/kbart.py is using journal.any_issn(priority=u'electronic') to get the ISSN, but it should use the scielo_issn property instead for consistency with the rest of the codebase.

Required Changes

In the file export/kbart.py, in the _generate_journal_url method (around line 127), change:

issn = journal.any_issn(priority=u'electronic')

to:

issn = journal.scielo_issn

Reason

  1. Line 160 in the same file already uses data.scielo_issn for consistency
  2. The scielo_issn property is the standard property used throughout the SciELO system
  3. Using any_issn() with priority might not guarantee the same ISSN that's used elsewhere in the codebase

This ensures consistency in ISSN usage across the KBART export functionality.

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix ISSN usage in _generate_journal_url method Verify ISSN consistency in KBART export - no changes needed Feb 3, 2026
Copilot AI requested a review from robertatakenaka February 3, 2026 20:50
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