def __init__(self, record, config): super().__init__(record, config) self.schema_name = 'dublin_core' self.utility = utility(config) self._language_iso = self.get_language(iso=True, lang=None) self._language_string = self.get_language(iso=False, lang='cs') self._type = self.get_type() self._title = self.get_title() self._title_translated = self.get_title_translated() # FIXME: Just for now, we need to know, how to get alternative translated title first # self._title_alternative = self.get_title_alternative() # self._title_alternative_translated = None self._creator = self.get_creator() self._issue_date = self.get_date_issued() self._embargoEndDate = self.get_date_embargoEnd() self._contributor_advisor = self.get_contributor_advisor() self._contributor_referee = self.get_contributor_referee() self._publisher = self.get_publisher() self._subject_cs = self.get_keywords(lang='cs') self._subject_en = self.get_keywords(lang='en') self._identifier_repId = self.get_identifier_repid() self._identifier_aleph = self.get_identifier_aleph() self._description_faculty_cs = self.get_description_faculty(lang='cs') self._description_faculty_en = self.get_description_faculty(lang='en') self._description_department_cs = self.get_description_department( lang='cs') self._description_department_en = self.get_description_department( lang='en') self._abstract_cs = self.get_abstract(lang='cze') self._abstract_en = self.get_abstract(lang='eng')
def __init__(self, db_int, db_sis, config, sftp, scp): self.db_int = db_int self.db_sis = db_sis self.config = config self.sftp = sftp self.scp = scp self.utility = utility(config=self.config)
def __init__(self, record, config): super().__init__(record, config) self.schema_name = 'uk' self.language_iso = super().record_language self.utility = utility(config) self._uk_theses_type = self.get_uk_theses_type() self._uk_org_taxonomy_cs = self.get_uk_taxonomy_organization(lang='cs') self._uk_org_taxonomy_en = self.get_uk_taxonomy_organization(lang='en') self._uk_deg_disc_cs = self.get_uk_degree_discipline(lang='cs') self._uk_deg_disc_en = self.get_uk_degree_discipline(lang='en') self._uk_deg_prog_cs = self.get_uk_degree_program(lang='cs') self._uk_deg_prog_en = self.get_uk_degree_program(lang='en') self._uk_fac_name_cs = self.get_uk_fac_name(lang='cs') self._uk_fac_name_en = self.get_uk_fac_name(lang='en') self._uk_fac_abbr_cs = self.get_uk_fac_abbr(lang='cs') self._uk_abstract_cs = self.get_uk_abstract(lang='cze') self._uk_abstract_en = self.get_uk_abstract(lang='eng') self._uk_file_availability = self.get_uk_file_availability() self._uk_publication_place = self.get_uk_publication_place() self._grantor = self.get_grantor() self._uk_embargo_reason_cs = self.get_uk_embargo_reason(lang='cs') self._uk_embargo_reason_en = self.get_uk_embargo_reason(lang='en') self._uk_defence_status = self.get_uk_defence_status() self._uk_department_external_cs = self.get_uk_department_external( lang='cs') self._uk_department_external_en = self.get_uk_department_external( lang='en')
def __init__(self, db_int, config, ssh, sftp, scp): self.db_int = db_int self.config = config self.utility = utility(config=self.config) self.ssh = ssh self.sftp = sftp self.scp = scp
def __init__(self, record, config): super().__init__(record, config) self.schema_name = "metadata_dcterms" self.utility = utility(config) self._date_accepted = self.get_date_accepted() self._created = self.get_created() self._bibliographic_citation = None self._medium = None
def __init__(self, db_int, db_sis, config, ssh, sftp, scp, dspace_api_key): self.db_int = db_int self.db_sis = db_sis self.config = config self.ssh = ssh self.sftp = sftp self.scp = scp self.dspace_api_key = dspace_api_key self.utility = utility(config=self.config)
def __init__(self, db_int, db_sis, config, sftp, scp): self.db_int = db_int self.db_sis = db_sis self.config = config self.sftp = sftp self.scp = scp self.utility = utility(self.config) self.dc_handler = DC_handler(self.config) self.file_handler = FileHandler(self.config)
def __init__(self, record, config): super().__init__(record, config) self.schema_name = 'metadata_thesis' self.utility = utility(config) self._degree_name = self.get_degree_name() self._degree_level = self.get_degree_level() self._degree_discipline_cs = self.get_degree_discipline(lang='cs') self._degree_discipline_en = self.get_degree_discipline(lang='en') self._degree_program_cs = self.get_degree_program(lang='cs') self._degree_program_en = self.get_degree_program(lang='en') self._grade_cs = self.get_grade(lang='cs') self._grade_en = self.get_grade(lang='en') self._grade_letter = self.get_grade_code()
def __init__(self, db_int, db_sis, db_dspace, config): self.db_int = db_int self.db_sis = db_sis self.db_dspace = db_dspace self.config = config self.utility = utility(self.config) self.workflow = self.db_int.workflow.filter_by( id=self.config.get('workflow_theses', 'id')).first() self.errors_tab = self.db_int.errors_workflow self.setup_batches_list = list() self.batches_processing = list() self.batches_ok = list() self.batches_errors = list() self.batches_failed = list() self.ssh = None self.scp = None self.sftp = None self.dspace_api_key = None self.workflow_batch = None
def __init__(self, db_int, db_sis, config, ssh, sftp, scp, dspace_api_key): self.db_int = db_int self.db_sis = db_sis self.config = config self.ssh = ssh self.sftp = sftp self.scp = scp self.dspace_api_key = dspace_api_key self.utility = utility(self.config) self.wf_doc_import = workflow_doc_import(self.db_int, self.db_sis, self.config, self.sftp, self.scp) self.wf_doc_ingest = workflow_doc_ingest(self.db_int, self.db_sis, self.config, self.ssh, self.sftp, self.scp, self.dspace_api_key) if self.config.get('dspace', 'is_remote') is True: self.ssh = self.utility.create_ssh_client( server=self.config.get("storage", "server"), port=self.config.getint("storage", "port"), user=self.config.get("storage", "username"), password=self.config.get("storage", "password")) self.sftp = self.utility.create_sftp_client(self.ssh)