Ignore:
Timestamp:
Oct 31, 2010, 7:08:03 PM (13 years ago)
Author:
grum
Message:

Exploit the JpegMetadata class previous evolution
feature:1975, feature:1976, feature:1978

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/amd_ajax.php

    r7447 r7519  
    162162               ($_REQUEST['filterType']=="exif.maker.Pentax" and !in_array('maker', $this->config['amd_FillDataBaseExcludeFilters'])) or
    163163               ($_REQUEST['filterType']=="xmp" and !in_array('xmp', $this->config['amd_FillDataBaseExcludeFilters'])) or
    164                ($_REQUEST['filterType']=="iptc"  and !in_array('iptc', $this->config['amd_FillDataBaseExcludeFilters']))
     164               ($_REQUEST['filterType']=="iptc"  and !in_array('iptc', $this->config['amd_FillDataBaseExcludeFilters'])) or
     165               ($_REQUEST['filterType']=="com"  and !in_array('com', $this->config['amd_FillDataBaseExcludeFilters']))
    165166               )) $_REQUEST['filterType']="";
    166167
     
    659660     * @param String $orderType : order for the list (by tag 'tag' or by number of
    660661     *                            pictures 'num')
    661      * @param String $filterType : filter for the list ('exif', 'xmp', 'iptc' or '')
     662     * @param String $filterType : filter for the list ('exif', 'xmp', 'iptc', 'com' or '')
    662663     * @return String
    663664     */
     
    15331534                   paut.tagId = 'xmp.digiKam:TagsList' OR
    15341535                   paut.tagId = 'xmp.lr:hierarchicalSubject' OR
    1535                    paut.tagId = 'iptc.Keywords');";
     1536                   paut.tagId = 'iptc.Keywords' OR
     1537                   paut.tagId = 'magic.Author.Keywords');";
    15361538      $result=pwg_query($sql);
    15371539      if($result)
     
    15451547             */
    15461548            $tmp=unserialize($row['value']);
     1549            if(!isset($tmp['values'])) $tmp=array('values'=>$tmp);
    15471550            foreach($tmp['values'] as $val)
    15481551            {
     
    16361639                   paut.tagId = 'xmp.digiKam:TagsList' OR
    16371640                   paut.tagId = 'xmp.lr:hierarchicalSubject' OR
    1638                    paut.tagId = 'iptc.Keywords');";
     1641                   paut.tagId = 'iptc.Keywords' OR
     1642                   paut.tagId = 'magic.Author.Keywords');";
    16391643      $result=pwg_query($sql);
    16401644      if($result)
     
    16481652             */
    16491653            $tmp=unserialize($row['value']);
     1654            if(!isset($tmp['values'])) $tmp=array('values'=>$tmp);
    16501655            foreach($tmp['values'] as $val)
    16511656            {
    1652               if($row['tagId']=='xmp.digiKam:TagsList')
     1657              if($row['tagId']=='xmp.digiKam:TagsList' or $row['tagId']=='xmp.lr:hierarchicalSubject')
    16531658              {
    16541659                $list=explode($this->tagSeparators[$row['tagId']], $val);
Note: See TracChangeset for help on using the changeset viewer.