Revive 'Description' property for DublinCore metadata
ClosedPublic

Authored by astippich on Apr 11 2018, 2:19 PM.

Details

Summary

Property::Description did not make it into KF5, Property::Comment is used instead .
This patch revives 'Description' for the DublinCore metadata as it is more specific and avoids confusion.
Changes the property for xml, epub, odf and office documents

Test Plan

make test

Diff Detail

Repository
R286 KFileMetaData
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
michaelh created this revision.Apr 11 2018, 2:19 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptApr 11 2018, 2:19 PM
michaelh requested review of this revision.Apr 11 2018, 2:19 PM
bruns added a subscriber: bruns.Apr 12 2018, 7:20 PM
michaelh planned changes to this revision.Apr 15 2018, 1:57 PM

Create cross extractor test

bruns added a comment.May 9 2018, 10:44 PM

@michaelh - are you still working on this?

I think using Property::Description for dc::description and the like is very sensible, so I would welcome if you pushed this forward.

Regarding the submission scheme, can you split this up into two distinct reviews, the first one adding autotests, covering the status quo as is, and the second one doing the transition from Propery::Comment to Property::Description

Restricted Application added a subscriber: kde-frameworks-devel. · View Herald TranscriptMay 9 2018, 10:44 PM
astippich commandeered this revision.Nov 4 2018, 11:00 AM
astippich added a reviewer: michaelh.
astippich edited reviewers, added: bruns; removed: michaelh.
astippich updated this revision to Diff 44833.Nov 4 2018, 11:01 AM
astippich edited the summary of this revision. (Show Details)
  • use description property for dublincore description
astippich retitled this revision from Revive 'Description' property to Revive 'Description' property for DublinCore metadata.Nov 4 2018, 11:03 AM
astippich edited the summary of this revision. (Show Details)
astippich updated this revision to Diff 44834.Nov 4 2018, 11:04 AM
astippich edited the summary of this revision. (Show Details)
bruns accepted this revision.Nov 4 2018, 10:32 PM
bruns added inline comments.
autotests/office2007extractortest.cpp
52

Strictly speaking, this should be part of another commit.
Feel free to split it off and git push without review.

This revision is now accepted and ready to land.Nov 4 2018, 10:32 PM
astippich added inline comments.Nov 10 2018, 9:43 AM
autotests/office2007extractortest.cpp
52

Just to let you know, I'm currently having issues creating a new test file. Saving with LibreOffice to .docx causes an incorrect mime type of the file, which is also reflected in this diff (see below). This seems to be a bug in LibreOffice. Looks like I have to use MS Word here.

astippich updated this revision to Diff 45234.Nov 10 2018, 1:39 PM
  • revert docx test data for now

I've reverted the test data for docx format for now, since there are apparently more issues. Funnily, LibreOffice and MS Word label the description property with "Comment".

This revision was automatically updated to reflect the committed changes.