Changeset 4450
- Timestamp:
- 10/23/06 16:30:59 (2 years ago)
- Files:
-
- trunk/src/net.siriux.photos/Photo.php (modified) (1 diff)
- trunk/src/net.siriux.photos/config/schemadb_default.inc (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/net.siriux.photos/Photo.php
r1698 r4450 75 75 76 76 $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'); 78 80 if (! $this->datamanager) { 79 81 debug_add("Failed to create a datamanager instance, see above for details."); trunk/src/net.siriux.photos/config/schemadb_default.inc
r895 r4450 12 12 "name" => array ( 13 13 /* COMPONENT REQUIRED */ 14 "description" => $GLOBALS["view_l10n"]->get("name"),14 "description" => "name", 15 15 "location" => "name", 16 16 "datatype" => "text", 17 17 "readonly" => true, 18 "start_fieldgroup" => Array ( "title" => $GLOBALS["view_l10n"]->get("image data")),18 "start_fieldgroup" => Array ( "title" => "image data" ), 19 19 ), 20 20 21 21 "title" => array ( 22 22 /* COMPONENT REQUIRED */ 23 "description" => $GLOBALS["view_l10n"]->get("title"),23 "description" => "title", 24 24 "location" => "title", 25 25 "datatype" => "text", … … 27 27 28 28 "abstract" => array ( 29 "description" => $GLOBALS["view_l10n"]->get("abstract"),29 "description" => "abstract", 30 30 "location" => "abstract", 31 31 "datatype" => "text", … … 35 35 "description" => array ( 36 36 /* COMPONENT REQUIRED */ 37 "description" => $GLOBALS["view_l10n"]->get("description"),37 "description" => "description", 38 38 "location" => "content", 39 39 "datatype" => "text", … … 51 51 52 52 "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" ), 58 58 "hidden" => true, 59 59 ), 60 60 61 61 "iso" => array ( 62 "description" => $GLOBALS["view_l10n"]->get("exif_iso"),62 "description" => "exif_iso", 63 63 "location" => "parameter", 64 64 "datatype" => "text", … … 68 68 69 69 "exposure" => array ( 70 "description" => $GLOBALS["view_l10n"]->get("exif_exposure"),70 "description" => "exif_exposure", 71 71 "location" => "parameter", 72 72 "datatype" => "text", … … 76 76 77 77 "make" => array ( 78 "description" => $GLOBALS["view_l10n"]->get("exif_make"),78 "description" => "exif_make", 79 79 "location" => "parameter", 80 80 "datatype" => "text", … … 84 84 85 85 "model" => array ( 86 "description" => $GLOBALS["view_l10n"]->get("exif_model"),86 "description" => "exif_model", 87 87 "location" => "parameter", 88 88 "datatype" => "text", … … 96 96 97 97 "photographer" => array ( 98 "description" => $GLOBALS["view_l10n"]->get("photographer"),98 "description" => "photographer", 99 99 "location" => "extra1", 100 100 "datatype" => "text", 101 "start_fieldgroup" => Array ( "title" => $GLOBALS["view_l10n"]->get("meta data")),101 "start_fieldgroup" => Array ( "title" => "meta data" ), 102 102 ), 103 103 104 104 "taken" => array ( 105 105 /* COMPONENT REQUIRED */ 106 "description" => $GLOBALS["view_l10n"]->get("taken"),106 "description" => "taken", 107 107 "location" => "url", 108 108 "datatype" => "unixdate", … … 113 113 "keywords" => array ( 114 114 /* COMPONENT REQUIRED */ 115 "description" => $GLOBALS["view_l10n"]->get("keywords"),115 "description" => "keywords", 116 116 "location" => "extra3", 117 117 "datatype" => "text", … … 121 121 "approved" => array ( 122 122 /* COMPONENT REQUIRED */ 123 "description" => $GLOBALS["view_l10n"]->get("approved"),123 "description" => "approved", 124 124 "location" => "approved", 125 125 "datatype" => "unixdate", … … 131 131 "score" => array ( 132 132 /* COMPONENT RECOMMENDED */ 133 "description" => $GLOBALS["view_l10n"]->get("score"),133 "description" => "score", 134 134 "location" => "score", 135 135 "hidden" => true, … … 166 166 "title" => array ( 167 167 /* COMPONENT REQUIRED */ 168 "description" => $GLOBALS["view_l10n"]->get("title"),168 "description" => "title", 169 169 "location" => "title", 170 170 "datatype" => "text", … … 173 173 "description" => array ( 174 174 /* COMPONENT REQUIRED */ 175 "description" => $GLOBALS["view_l10n"]->get("description"),175 "description" => "description", 176 176 "location" => "content", 177 177 "datatype" => "text", … … 181 181 182 182 "photographer" => array ( 183 "description" => $GLOBALS["view_l10n"]->get("photographer"),183 "description" => "photographer", 184 184 "location" => "extra1", 185 185 "datatype" => "text", … … 188 188 "keywords" => array ( 189 189 /* COMPONENT RECOMMENDED */ 190 "description" => $GLOBALS["view_l10n"]->get("keywords"),190 "description" => "keywords", 191 191 "location" => "extra3", 192 192 "datatype" => "text", … … 195 195 "upload_file" => array ( 196 196 /* COMPONENT REQUIRED */ 197 "description" => $GLOBALS["view_l10n"]->get("upload file"),197 "description" => "upload file", 198 198 "datatype" => "blob", 199 199 "widget_blob_simple" => true, … … 202 202 "create_subgallery" => array ( 203 203 /* COMPONENT RECOMMENDED */ 204 "description" => $GLOBALS["view_l10n"]->get("create subgallery"),204 "description" => "create subgallery", 205 205 "location" => "parameter", 206 206 "datatype" => "boolean",
