-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from robertatakenaka/0.1.1
Ajustes para uso em scms-upload (migration)
- Loading branch information
Showing
17 changed files
with
132 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from scielo_classic_website import controller, config | ||
from scielo_classic_website.models.issue_files import IssueFiles | ||
|
||
# Para Journal, Issue, Document devem ficar disponíveis neste módulo | ||
from scielo_classic_website.models.journal import Journal | ||
from scielo_classic_website.models.issue import Issue | ||
from scielo_classic_website.models.document import Document | ||
|
||
|
||
def get_bases_work_acron_path(cisis_path, bases_work_acron_file_path, issue_folder=None): | ||
if issue_folder: | ||
return controller.isis_cmd.get_documents_by_issue_folder( | ||
cisis_path, bases_work_acron_file_path, issue_folder) | ||
else: | ||
return bases_work_acron_file_path | ||
|
||
|
||
def get_document_pids(from_date, to_date): | ||
return controller.isis_cmd.get_document_pids(from_date, to_date) | ||
|
||
|
||
def get_paragraphs_records(pid): | ||
id_file_path = config.get_paragraphs_id_file_path(pid) | ||
return controller.pids_and_their_records(id_file_path, "artigo") | ||
|
||
|
||
def get_records_by_pid(pid): | ||
source_path = controller.isis_cmd.get_document_isis_db(pid) | ||
return controller.pids_and_their_records(source_path, "artigo") | ||
|
||
|
||
def get_records_by_acron(acron, id_folder_path=None): | ||
source_path = controller.get_acron_db_path(acron, id_folder_path) | ||
return controller.pids_and_their_records(source_path, "artigo") | ||
|
||
|
||
def get_records_by_source_path(db_type, source_path): | ||
return controller.pids_and_their_records(source_path, db_type) | ||
|
||
|
||
def get_issue_files(acron, issue_folder, config): | ||
issue_files = IssueFiles(acron, issue_folder, config) | ||
return issue_files.files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters