diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-07 01:18:31 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-07 01:18:31 +0000 |
commit | fc6bdbbbc829b38c020c190e06e3fe5892bac1a0 (patch) | |
tree | 8b8bd0282cf341b8626bdf0be8e99af5f203d1b6 /modules/info/views | |
parent | 934bc1e1f15405e7c4adb9d5bf59bad7680c5d79 (diff) |
Grab photo capture date and captions from EXIF/IPTC data.
- Add a "captured" column to the items table.
- Pull the DateTime EXIF field and put it into the captured column
- Pull the Caption EXIF & IPTC fields and put them into the description
field if there was not already a value there
Diffstat (limited to 'modules/info/views')
-rw-r--r-- | modules/info/views/info_block.html.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php index 956cc23d..880d5d3e 100644 --- a/modules/info/views/info_block.html.php +++ b/modules/info/views/info_block.html.php @@ -17,6 +17,12 @@ <td><?= $item->name; ?></td> </tr> <? endif ?> + <? if ($item->captured): ?> + <tr> + <th><?= t("Captured:") ?></th> + <td><?= date("M j, Y H:i:s", $item->captured)?></td> + </tr> + <? endif ?> <? if ($item->owner): ?> <tr> <th><?= t("Owner:") ?></th> |