Changeset 4167


Ignore:
Timestamp:
Apr 10, 2017, 6:10:59 PM (3 years ago)
Author:
Juanma
Message:

Added tmp workdir for csv tables generation

File:
1 edited

Legend:

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

    r4165 r4167  
    1616                self.pmb_abies["authors"]=["Autores"]
    1717                self.pmb_abies["exemplaires"]=["Ejemplares"]
    18                 self.pmb_abies["notices"]=["Fondos","Fondos-CDUs"]
     18                self.pmb_abies["notices"]=["Fondos"]
    1919                self.pmb_abies["collections"]=["Series"]
    2020                self.pmb_abies["notices_langues"]=["Fondos-Idiomas"]
     
    2828
    2929                #Dict with abies source fields for pmb
     30                #Numbers are the indexes of the source data table
    3031                self.pmb_tables={}
    3132                self.pmb_tables["docs_location"]=[0,1,'','','','','','','','','','','','','','','','','','','','','','','']
     
    4142
    4243                #dict with needed virtual tables
     44                #Only load one column using a 'get', any other column must be charged with formatTables or formatFields
    4345                self.virtual_tables={}
    4446                self.virtual_tables["CDUs"]={}
     
    6466                self.formatFields['Fondos'].update({'index 24':'from Series.0 on 24=0'})
    6567                self.formatFields['Fondos'].update({'index 26':'from Fondos_all.2 on 0=1'})
     68                self.formatFields['Fondos_all']={'index 2':'from CDUs.0 on 0=1'}
    6669
    6770                #Dict whith special columns
     
    7073                self.formatTables['Series']={'index 1':'uniq'}
    7174                self.formatTables['Fondos_all']={'index 1':'from Fondos_CDUs.1 on 0=0'}
    72                 self.formatFields['Fondos_all']={'index 2':'from CDUs.0 on 0=1'}
    7375
    7476                #Dict with temp results
     
    363365
    364366        def _funcGetValueFromTable(self,table,index):
    365                 fileName=table+'.csv'
     367                fileName=self.workDir+table+'.csv'
    366368                data=[]
    367369                index=int(index)
Note: See TracChangeset for help on using the changeset viewer.