Changeset 15108 for gli/trunk/src/org/greenstone/gatherer/cdm/Plugin.java
- Timestamp:
- 2008-03-20T20:21:09+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/cdm/Plugin.java
r13177 r15108 42 42 private String default_process_expression = ""; 43 43 private boolean does_explode_metadata_databases = false; 44 private boolean does_replace_srcdocs_with_html = false; // to work with replace_srcdoc_with_html.pl 44 45 private boolean loading_options_failed = false; 45 46 46 47 47 /** Constructor used in DOMProxyListModel initializations, and Library Level. Used for Base plugins (those in the list of available plugins, not ones that are in the DOMProxyList) 48 48 */ … … 100 100 } 101 101 102 /** Checks whether the plugin this instance is based on processes source documents that can be replaced with their Greenstone generated html variants. 103 * This method works with replace_srcdoc_with_html.pl */ 104 public boolean doesReplaceSrcDocsWithHtml() 105 { 106 //return does_replace_srcdocs_with_html; 107 Plugin base_plugin = Plugins.getPlugin(getName(), false); 108 if (base_plugin == null) { 109 return false; 110 } 111 return base_plugin.does_replace_srcdocs_with_html; 112 } 102 113 103 114 /** Checks whether this plugin instance will process the specified file (given its block_exp). */ … … 211 222 } 212 223 224 // To work with replace_srcdoc_with_html.pl 225 public void setDoesReplaceSrcDocsWithHtml(boolean does_replace_srcdocs_with_html) 226 { 227 this.does_replace_srcdocs_with_html = does_replace_srcdocs_with_html; 228 } 213 229 214 230 public void setLoadingOptionsFailed()
Note:
See TracChangeset
for help on using the changeset viewer.