changed apptag field name to rclaptg
This commit is contained in:
parent
f547760c35
commit
7c245fe986
@ -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;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -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()) {
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -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)
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user