GUI: add popup menu option to copy simple file name. fix typo keytcfn->keyctfn. Change utf8check() parms for easier usage
This commit is contained in:
+2
-4
@@ -1845,10 +1845,8 @@ bool Db::addOrUpdate(const string &udi, const string &parent_udi, Doc &doc)
|
||||
// purposes.
|
||||
const string *fnp = 0;
|
||||
if (!doc.peekmeta(Rcl::Doc::keyfn, &fnp) || fnp->empty()) {
|
||||
if (doc.peekmeta(Rcl::Doc::keytcfn, &fnp) && !fnp->empty()) {
|
||||
string value =
|
||||
neutchars(truncate_to_word(*fnp,
|
||||
m_idxMetaStoredLen), cstr_nc);
|
||||
if (doc.peekmeta(Rcl::Doc::keyctfn, &fnp) && !fnp->empty()) {
|
||||
string value = neutchars(truncate_to_word(*fnp, m_idxMetaStoredLen), cstr_nc);
|
||||
RECORD_APPEND(record, Rcl::Doc::keyfn, value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ const string Doc::keydmt("dmtime");
|
||||
const string Doc::keyds("dbytes");
|
||||
const string Doc::keyfmt("fmtime");
|
||||
const string Doc::keyfn("filename");
|
||||
const string Doc::keytcfn("containerfilename");
|
||||
const string Doc::keyctfn("containerfilename");
|
||||
const string Doc::keyfs("fbytes");
|
||||
const string Doc::keyipt("ipath");
|
||||
const string Doc::keykw("keywords");
|
||||
|
||||
+1
-1
@@ -233,7 +233,7 @@ public:
|
||||
// given top level container. It is not indexed by default but
|
||||
// stored in the document record keyfn field if this is still
|
||||
// empty when we create it, for display purposes.
|
||||
static const std::string keytcfn;
|
||||
static const std::string keyctfn;
|
||||
static const std::string keyipt; // ipath
|
||||
static const std::string keytp; // mime type
|
||||
static const std::string keyfmt; // file mtime
|
||||
|
||||
Reference in New Issue
Block a user