Changeset 6889
- Timestamp:
- Sep 13, 2010, 8:27:14 PM (14 years ago)
- Location:
- extensions/AMetaData/JpegMetaData
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/JpegMetaData/JpegMetaData.class.php
r6729 r6889 3 3 * --:: JPEG MetaDatas ::------------------------------------------------------- 4 4 * 5 * Version : 1. 0.15 * Version : 1.1.0 6 6 * Date : 2010-07-29 7 7 * … … 41 41 * | 1.0.0 | | * first public release 42 42 * | | | 43 * | 1. 0.1| 2010-07-29 | * mantis bug:168643 * | 1.1.0 | 2010-07-29 | * mantis bug:1686 44 44 * | | | . bug reported on IfdReader 45 45 * | | | When sub IFD (0x8769) refers to a sub IFD with … … 62 62 * | | | the other schema are filtered 63 63 * | | | 64 * | | | 65 * | | | 66 * | | |67 * | | | 64 * | | | * add the "getTag" function 65 * | | | 66 * | 1.1.1 | 2010-09-13 | * mantis bug:1826 67 * | | | . digiKam XMP tags are not recognized 68 68 * | | | 69 69 * | | | … … 106 106 * - load 107 107 * - getTags 108 * - getTag 108 109 * 109 110 * ----------------------------------------------------------------------------- … … 449 450 foreach($this->tags as $key => $tag) 450 451 { 451 if( !$this->options[$tag->getSchema()]) unset($this->tags[$key]);452 if(isset($this->options[$tag->getSchema()]) and !$this->options[$tag->getSchema()]) unset($this->tags[$key]); 452 453 } 453 454 … … 504 505 } 505 506 return($returned); 507 } 508 509 510 /** 511 * This function returns the tag object for the given tag name 512 * 513 * @param String $key : the tag name (ie: "exif.exif.ApertureValue") 514 * @return Tag : the tag object, null if the tag doesn't exist 515 */ 516 public function getTag($key) 517 { 518 if(array_key_exists($key, $this->tags)) 519 { 520 return($this->tags[$key]); 521 } 522 return(null); 506 523 } 507 524 -
extensions/AMetaData/JpegMetaData/Readers/XmpReader.class.php
r6729 r6889 229 229 case "Iptc4xmpCore:Scene": //bag 230 230 case "Iptc4xmpCore:SubjectCode": //bag 231 case "digiKam:TagsList": //seq 231 232 $child=$node->getFirstChild(); 232 233 switch($child->getName()) … … 527 528 case "exif:SubjectArea" : // seq 528 529 case "exif:SubjectLocation" : // seq 530 case "digiKam:TagsList": //seq 529 531 $returned=$value; 530 532 break; -
extensions/AMetaData/JpegMetaData/TagDefinitions/XmpTags.class.php
r5237 r6889 2013 2013 ), 2014 2014 2015 2016 /* 2017 * digiKam Schema 2018 */ 2019 'xmlns:digiKam' => Array( 2020 'implemented' => false, 2021 'translatable' => false, 2022 'type' => self::TYPE_SIMPLE, 2023 'schema' => "xmlns", 2024 ), 2025 2026 'digiKam:TagsList' => Array( 2027 'implemented' => true, 2028 'translatable' => true, 2029 'type' => self::TYPE_SEQ, 2030 'schema' => "digiKam", 2031 ), 2032 2015 2033 ); 2016 2034
Note: See TracChangeset
for help on using the changeset viewer.