changed apptag field name to rclaptg

This commit is contained in:
dockes 2009-11-15 14:39:08 +00:00
parent f547760c35
commit 7c245fe986
6 changed files with 7 additions and 5 deletions

View File

@ -82,7 +82,7 @@ class FsIndexer : public FsTreeWalkerCB {
list<string> m_tdl;
// The configuration can set attribute fields to be inherited by
// all files in a file system area. Ie: set "apptag = thunderbird"
// all files in a file system area. Ie: set "rclaptg = thunderbird"
// inside ~/.thunderbird. The boolean is set at init to avoid
// further wasteful processing if no local fields are set.
bool m_havelocalfields;

View File

@ -898,7 +898,7 @@ void RclMain::startNativeViewer(Rcl::Doc doc)
} else {
string apptag;
map<string,string>::const_iterator it;
if ((it = doc.meta.find("apptag")) != doc.meta.end())
if ((it = doc.meta.find(Rcl::Doc::keyapptg)) != doc.meta.end())
apptag = it->second;
cmd = rclconfig->getMimeViewerDef(doc.mimetype, apptag);
}

View File

@ -220,7 +220,7 @@ void ResListPager::displayPage()
string apptag;
map<string,string>::const_iterator it;
if ((it = doc.meta.find("apptag")) != doc.meta.end())
if ((it = doc.meta.find(Rcl::Doc::keyapptg)) != doc.meta.end())
apptag = it->second;
if (!RclConfig::getMainConfig()->getMimeViewerDef(doc.mimetype, apptag).empty()) {

View File

@ -42,6 +42,7 @@ namespace Rcl {
const string Doc::keymd5("md5");
const string Doc::keybcknd("rclbes");
const string Doc::keyudi("rcludi");
const string Doc::keyapptg("rclaptg");
void Doc::dump(bool dotext) const
{

View File

@ -163,6 +163,7 @@ class Doc {
static const string keybcknd; // backend type for data not from the filesys
// udi back from index. Only set by Rcl::Query::getdoc().
static const string keyudi;
static const string keyapptg; // apptag. Set from localfields (fsindexer)
};

View File

@ -41,9 +41,9 @@ recipient = XTO
# stored twice: caption, keywords, abstract, filename, mimetype, url
# Only canonical names should be used here, not aliases.
# "author" used to be stored by default, now set here as optional
# "apptag" is used for viewer specialization (depending on local config)
# "rclaptg" is used for viewer specialization (depending on local config)
[stored]
stored = author apptag rclbes
stored = author rclaptg rclbes
##########################
# This section defines field names aliases or synonyms. Any right hand side