Changeset 13575


Ignore:
Timestamp:
2007-01-11T14:49:09+13:00 (15 years ago)
Author:
kjdon
Message:

getNodeContent() now takes lang as a param

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/service
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractDocumentRetrieve.java

    r13270 r13575  
    519519        }
    520520        try {
    521         Element node_content = getNodeContent(doc_id);
     521        Element node_content = getNodeContent(doc_id, lang);
    522522        doc.appendChild(node_content);
    523523        } catch (GSException e) {
     
    694694     * can return
    695695     */
    696     abstract protected Element getNodeContent(String doc_id) throws GSException;
     696    abstract protected Element getNodeContent(String doc_id, String lang) throws GSException;
    697697
    698698    /** returns the structural information asked for.
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractGS2DocumentRetrieve.java

    r13270 r13575  
    292292     * <nodeContent>text content or other elements</nodeContent>
    293293     */
    294     abstract protected Element getNodeContent(String doc_id) throws GSException;
     294    abstract protected Element getNodeContent(String doc_id, String lang) throws GSException;
    295295
    296296    protected String getMetadata(String node_id, DBInfo info,
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2MGPPRetrieve.java

    r13270 r13575  
    9292     * <nodeContent>text content or other elements</nodeContent>
    9393     */
    94     protected Element getNodeContent(String doc_id) throws GSException {
    95     String lang = "en"; //  **********
     94    protected Element getNodeContent(String doc_id, String lang) throws GSException {
    9695    long doc_num = this.gdbm_src.OID2Docnum(doc_id);
    9796    if (doc_num == -1) {
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2MGRetrieve.java

    r13567 r13575  
    9696     * <nodeContent>text content or other elements</nodeContent>
    9797     */
    98     protected Element getNodeContent(String doc_id) throws GSException {
    99     String lang = "en"; //  **********
     98    protected Element getNodeContent(String doc_id, String lang) throws GSException {
    10099    long doc_num = this.gdbm_src.OID2Docnum(doc_id);
    101100    if (doc_num == -1) {
Note: See TracChangeset for help on using the changeset viewer.