mirror of https://github.com/kiwix/libkiwix.git
Rmoved title, favicon, faviconmimetype,description,author, publisher, date, language parameters from library file for diff files.
This commit is contained in:
parent
7fbf20936e
commit
c22b5a1d4c
|
@ -157,7 +157,9 @@ namespace kiwix {
|
||||||
bookNode.append_attribute("indexType") = "clucene";
|
bookNode.append_attribute("indexType") = "clucene";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!itr->title.empty())
|
if (itr->origID == "")
|
||||||
|
{
|
||||||
|
if (!itr->title.empty())
|
||||||
bookNode.append_attribute("title") = itr->title.c_str();
|
bookNode.append_attribute("title") = itr->title.c_str();
|
||||||
|
|
||||||
if (itr->description != "")
|
if (itr->description != "")
|
||||||
|
@ -175,6 +177,14 @@ namespace kiwix {
|
||||||
if (itr->publisher != "")
|
if (itr->publisher != "")
|
||||||
bookNode.append_attribute("publisher") = itr->publisher.c_str();
|
bookNode.append_attribute("publisher") = itr->publisher.c_str();
|
||||||
|
|
||||||
|
if (itr->favicon != "")
|
||||||
|
bookNode.append_attribute("favicon") = itr->favicon.c_str();
|
||||||
|
|
||||||
|
if (itr->faviconMimeType != "")
|
||||||
|
bookNode.append_attribute("faviconMimeType") = itr->faviconMimeType.c_str();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (itr->url != "")
|
if (itr->url != "")
|
||||||
bookNode.append_attribute("url") = itr->url.c_str();
|
bookNode.append_attribute("url") = itr->url.c_str();
|
||||||
|
|
||||||
|
@ -189,12 +199,6 @@ namespace kiwix {
|
||||||
|
|
||||||
if (itr->size != "")
|
if (itr->size != "")
|
||||||
bookNode.append_attribute("size") = itr->size.c_str();
|
bookNode.append_attribute("size") = itr->size.c_str();
|
||||||
|
|
||||||
if (itr->favicon != "")
|
|
||||||
bookNode.append_attribute("favicon") = itr->favicon.c_str();
|
|
||||||
|
|
||||||
if (itr->faviconMimeType != "")
|
|
||||||
bookNode.append_attribute("faviconMimeType") = itr->faviconMimeType.c_str();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue