1<?php
2/**
3 * This configures which meta data will be editable through
4 * the media manager. Each field of the array is an array with the
5 * following contents:
6 *   fieldname - Where data will be saved (EXIF or IPTC field)
7 *   label     - key to lookup in the $lang var, if not found printed as is
8 *   htmltype  - 'text', 'textarea' or 'date'
9 *   lookups   - array additional fields to lookup the data (EXIF or IPTC fields)
10 *
11 * The fields are not ordered continously to make inserting additional items
12 * in between simpler.
13 *
14 * This is a PHP snippet, so PHP syntax applies.
15 *
16 * Note: $fields is not a global variable and will not be available to any
17 *       other functions or templates later
18 *
19 * You may extend or overwrite this variable in a optional
20 * conf/mediameta.local.php file
21 *
22 * For a list of available EXIF/IPTC fields refer to
23 * http://www.dokuwiki.org/devel:templates:detail.php
24 */
25
26
27$fields = array(
28    10 => array('Iptc.Headline',
29                'img_title',
30                'text'),
31
32    20 => array('',
33                'img_date',
34                'date',
35                array('Date.EarliestTime')),
36
37    30 => array('',
38                'img_fname',
39                'text',
40                array('File.Name')),
41
42    40 => array('Iptc.Caption',
43                'img_caption',
44                'textarea',
45                array('Exif.UserComment',
46                      'Exif.TIFFImageDescription',
47                      'Exif.TIFFUserComment')),
48
49    50 => array('Iptc.Byline',
50                'img_artist',
51                'text',
52                array('Exif.TIFFArtist',
53                      'Exif.Artist',
54                      'Iptc.Credit')),
55
56    60 => array('Iptc.CopyrightNotice',
57                'img_copyr',
58                'text',
59                array('Exif.TIFFCopyright',
60                      'Exif.Copyright')),
61
62    70 => array('',
63                'img_format',
64                'text',
65                array('File.Format')),
66
67    80 => array('',
68                'img_fsize',
69                'text',
70                array('File.NiceSize')),
71
72    90 => array('',
73                'img_width',
74                'text',
75                array('File.Width')),
76
77    100 => array('',
78                'img_height',
79                'text',
80                array('File.Height')),
81
82    110 => array('',
83                'img_camera',
84                'text',
85                array('Simple.Camera')),
86
87    120 => array('Iptc.Keywords',
88                'img_keywords',
89                'text',
90                array('Exif.Category')),
91);
92