Changeset 15108


Ignore:
Timestamp:
03/20/08 20:21:09 (13 years ago)
Author:
ak19
Message:

Now works with replace_srcdoc_with_html.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/cdm/Plugin.java

    r13177 r15108  
    4242    private String default_process_expression = "";
    4343    private boolean does_explode_metadata_databases = false;
     44    private boolean does_replace_srcdocs_with_html = false; // to work with replace_srcdoc_with_html.pl
    4445    private boolean loading_options_failed = false;
    4546
    46    
    4747    /** 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)
    4848     */
     
    100100    }
    101101
     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    }
    102113
    103114    /** Checks whether this plugin instance will process the specified file (given its block_exp). */
     
    211222    }
    212223
     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    }
    213229
    214230    public void setLoadingOptionsFailed()
Note: See TracChangeset for help on using the changeset viewer.