Changeset 4450

Show
Ignore:
Timestamp:
10/23/06 16:30:59 (2 years ago)
Author:
rambo
Message:

changes for the o.r.photostream converter

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/net.siriux.photos/Photo.php

    r1698 r4450  
    7575         
    7676        $GLOBALS["view_l10n"] = $this->_l10n; 
    77         $this->datamanager = new midcom_helper_datamanager($this->_config->get("schemadb")); 
     77        //$this->datamanager = new midcom_helper_datamanager($this->_config->get("schemadb")); 
     78        // Hardcoded for conversion 
     79        $this->datamanager = new midcom_helper_datamanager('file:/net/siriux/photos/config/schemadb_default.inc'); 
    7880        if (! $this->datamanager) { 
    7981            debug_add("Failed to create a datamanager instance, see above for details."); 
  • trunk/src/net.siriux.photos/config/schemadb_default.inc

    r895 r4450  
    1212  "name" => array ( 
    1313   /* COMPONENT REQUIRED */ 
    14    "description" => $GLOBALS["view_l10n"]->get("name")
     14   "description" => "name"
    1515   "location" => "name", 
    1616   "datatype" => "text", 
    1717   "readonly" => true, 
    18    "start_fieldgroup" => Array ( "title" => $GLOBALS["view_l10n"]->get("image data") ), 
     18   "start_fieldgroup" => Array ( "title" => "image data" ), 
    1919  ), 
    2020   
    2121  "title" => array ( 
    2222   /* COMPONENT REQUIRED */ 
    23    "description" => $GLOBALS["view_l10n"]->get("title")
     23   "description" => "title"
    2424   "location" => "title", 
    2525   "datatype" => "text", 
     
    2727   
    2828  "abstract" => array ( 
    29    "description" => $GLOBALS["view_l10n"]->get("abstract")
     29   "description" => "abstract"
    3030   "location" => "abstract", 
    3131   "datatype" => "text", 
     
    3535  "description" => array ( 
    3636   /* COMPONENT REQUIRED */ 
    37    "description" => $GLOBALS["view_l10n"]->get("description")
     37   "description" => "description"
    3838   "location" => "content", 
    3939   "datatype" => "text", 
     
    5151   
    5252  "fnumber" => array ( 
    53    "description" => $GLOBALS["view_l10n"]->get("exif_fnumber")
    54    "location" => "parameter", 
    55    "datatype" => "text", 
    56    "readonly" => true, 
    57    "start_fieldgroup" => Array ( "title" => $GLOBALS["view_l10n"]->get("exif data") ), 
     53   "description" => "exif_fnumber"
     54   "location" => "parameter", 
     55   "datatype" => "text", 
     56   "readonly" => true, 
     57   "start_fieldgroup" => Array ( "title" => "exif data" ), 
    5858   "hidden" => true, 
    5959  ), 
    6060   
    6161  "iso" => array ( 
    62    "description" => $GLOBALS["view_l10n"]->get("exif_iso")
     62   "description" => "exif_iso"
    6363   "location" => "parameter", 
    6464   "datatype" => "text", 
     
    6868   
    6969  "exposure" => array ( 
    70    "description" => $GLOBALS["view_l10n"]->get("exif_exposure")
     70   "description" => "exif_exposure"
    7171   "location" => "parameter", 
    7272   "datatype" => "text", 
     
    7676   
    7777  "make" => array ( 
    78    "description" => $GLOBALS["view_l10n"]->get("exif_make")
     78   "description" => "exif_make"
    7979   "location" => "parameter", 
    8080   "datatype" => "text", 
     
    8484   
    8585  "model" => array ( 
    86    "description" => $GLOBALS["view_l10n"]->get("exif_model")
     86   "description" => "exif_model"
    8787   "location" => "parameter", 
    8888   "datatype" => "text", 
     
    9696 
    9797  "photographer" => array ( 
    98    "description" => $GLOBALS["view_l10n"]->get("photographer")
     98   "description" => "photographer"
    9999   "location" => "extra1", 
    100100   "datatype" => "text", 
    101    "start_fieldgroup" => Array ( "title" => $GLOBALS["view_l10n"]->get("meta data") ),       
     101   "start_fieldgroup" => Array ( "title" => "meta data" ),       
    102102  ), 
    103103   
    104104  "taken" => array (  
    105105   /* COMPONENT REQUIRED */ 
    106    "description" => $GLOBALS["view_l10n"]->get("taken")
     106   "description" => "taken"
    107107   "location" => "url", 
    108108   "datatype" => "unixdate", 
     
    113113  "keywords" => array ( 
    114114   /* COMPONENT REQUIRED */ 
    115    "description" => $GLOBALS["view_l10n"]->get("keywords")
     115   "description" => "keywords"
    116116   "location" => "extra3", 
    117117   "datatype" => "text", 
     
    121121  "approved" => array (  
    122122   /* COMPONENT REQUIRED */ 
    123    "description" => $GLOBALS["view_l10n"]->get("approved")
     123   "description" => "approved"
    124124   "location" => "approved", 
    125125   "datatype" => "unixdate", 
     
    131131  "score" => array ( 
    132132   /* COMPONENT RECOMMENDED */ 
    133    "description" => $GLOBALS["view_l10n"]->get("score")
     133   "description" => "score"
    134134   "location" => "score", 
    135135   "hidden" => true, 
     
    166166  "title" => array ( 
    167167   /* COMPONENT REQUIRED */ 
    168    "description" => $GLOBALS["view_l10n"]->get("title")
     168   "description" => "title"
    169169   "location" => "title", 
    170170   "datatype" => "text", 
     
    173173  "description" => array ( 
    174174   /* COMPONENT REQUIRED */ 
    175    "description" => $GLOBALS["view_l10n"]->get("description")
     175   "description" => "description"
    176176   "location" => "content", 
    177177   "datatype" => "text", 
     
    181181   
    182182  "photographer" => array ( 
    183    "description" => $GLOBALS["view_l10n"]->get("photographer")
     183   "description" => "photographer"
    184184   "location" => "extra1", 
    185185   "datatype" => "text", 
     
    188188  "keywords" => array ( 
    189189   /* COMPONENT RECOMMENDED */ 
    190    "description" => $GLOBALS["view_l10n"]->get("keywords")
     190   "description" => "keywords"
    191191   "location" => "extra3", 
    192192   "datatype" => "text", 
     
    195195  "upload_file" => array ( 
    196196   /* COMPONENT REQUIRED */ 
    197    "description" => $GLOBALS["view_l10n"]->get("upload file")
     197   "description" => "upload file"
    198198   "datatype" => "blob", 
    199199   "widget_blob_simple" => true, 
     
    202202  "create_subgallery" => array ( 
    203203   /* COMPONENT RECOMMENDED */ 
    204    "description" => $GLOBALS["view_l10n"]->get("create subgallery")
     204   "description" => "create subgallery"
    205205   "location" => "parameter", 
    206206   "datatype" => "boolean",