[sword-svn] r3023 - trunk/utilities/diatheke

refdoc at crosswire.org refdoc at crosswire.org
Fri Jan 24 04:05:31 MST 2014


Author: refdoc
Date: 2014-01-24 04:05:31 -0700 (Fri, 24 Jan 2014)
New Revision: 3023

Modified:
   trunk/utilities/diatheke/corediatheke.cpp
Log:
added system option - output of complete bibliography


Modified: trunk/utilities/diatheke/corediatheke.cpp
===================================================================
--- trunk/utilities/diatheke/corediatheke.cpp	2014-01-24 10:47:19 UTC (rev 3022)
+++ trunk/utilities/diatheke/corediatheke.cpp	2014-01-24 11:05:31 UTC (rev 3023)
@@ -43,7 +43,7 @@
 
 	SWModule *target;
 	
-	bool types = false, descriptions = false, names = false;
+	bool types = false, descriptions = false, names = false, bibliography = false;
 
 	if (!::stricmp(key, "localelist")) {		
 		LocaleMgr *lm = LocaleMgr::getSystemLocaleMgr();
@@ -64,9 +64,12 @@
 	else if (!::stricmp(key, "modulelistdescriptions")) {
 		descriptions = true;
 	}
+	else if (!::stricmp(key, "bibliography")) {
+		bibliography = true;
+	}
 	
 	
-	if (types || descriptions || names) {
+	if (types || descriptions || names || bibliography) {
 		if (types) *output << "Biblical Texts:\n";
 		for (it = manager.Modules.begin(); it != manager.Modules.end(); it++) {
 			target = it->second;
@@ -74,6 +77,7 @@
 				if (names) *output << target->getName();
 				if (names && descriptions) *output << " : ";
 				if (descriptions) *output << target->getDescription();
+				if (bibliography) *output << target->getBibliography();
 				*output << endl;
 			}
 		}
@@ -84,6 +88,7 @@
 				if (names) *output << target->getName();
 				if (names && descriptions) *output << " : ";
 				if (descriptions) *output << target->getDescription();
+				if (bibliography) *output << target->getBibliography();
 				*output << endl;
 			}
 		}
@@ -94,6 +99,7 @@
 				if (names) *output << target->getName();
 				if (names && descriptions) *output << " : ";
 				if (descriptions) *output << target->getDescription();
+				if (bibliography) *output << target->getBibliography();
 				*output << endl;
 			}
 		}
@@ -104,6 +110,7 @@
 				if (names) *output << target->getName();
 				if (names && descriptions) *output << " : ";
 				if (descriptions) *output << target->getDescription();
+				if (bibliography) *output << target->getBibliography();
 				*output << endl;
 			}
 		}




More information about the sword-cvs mailing list