Changeset 4292


Ignore:
Timestamp:
Apr 19, 2017, 10:01:56 AM (2 years ago)
Author:
Juanma
Message:

Added responsability table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-abies2pmb/trunk/fuentes/lliurex-abies2pmb.install/usr/share/lliurex-abies2pmb/abies2pmb.py

    r4285 r4292  
    2525                self.pmb_abies["docs_type"]=["TiposFondo"]
    2626                self.pmb_abies["docs_statut"]=["TiposEjemplar"]
     27                self.pmb_abies["responsability"]=["Fondos_Autores"]
    2728
    2829                #Dict with forced column data type
     
    4647                self.defaultPmbValues['docs_statut']={6:'1'}
    4748                self.defaultPmbValues['docs_statut'].update({7:'1'})
     49                self.defaultPmbValues['responsability']={2:'"070"'}
    4850
    4951
     
    6769                self.pmb_tables["docs_type"]=[0,1,'','','','','','']
    6870                self.pmb_tables["docs_statut"]=[0,1,'','','','','','','']
     71                self.pmb_tables["responsability"]=[1,0,'','','']
    6972                #dict with needed virtual tables
    7073                #Only load one column using a 'get', any other column must be charged with formatTables or formatFields
     
    123126                #Array with process order (including virtual tables)
    124127#               self.executionOrder=['Ubicaciones','TiposLector','Autores','Editoriales','Cursos','Ejemplares','Series','CDUs','Fondos_all','Fondos','Fondos_Idiomas','TiposFondo']
    125                 self.executionOrder=['Ubicaciones','TiposLector','Autores','Editoriales','Cursos','Series','CDUs','TiposEjemplar','Fondos_all','Ejemplares','Fondos','Fondos_Idiomas','TiposFondo']
     128                self.executionOrder=['Ubicaciones','TiposLector','Autores','Editoriales','Cursos','Series','CDUs','TiposEjemplar','Fondos_all','Ejemplares','Fondos','Fondos_Idiomas','TiposFondo','Fondos_Autores']
    126129                #Tmp variables
    127130                self.workDir='/tmp/.abiesToPmb/'
     
    626629### MAIN PROGRAM ###
    627630
    628 migration=abies2Pmb()
    629 result=migration.beginMigration(sys.argv[1],sys.argv[2])
    630 print(result)
     631#migration=abies2Pmb()
     632#result=migration.beginMigration(sys.argv[1],sys.argv[2])
     633#print(result)
Note: See TracChangeset for help on using the changeset viewer.