- Timestamp:
- 2019-04-09T10:50:58+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/PageAction.java
r32996 r32999 58 58 Element result = doc.createElement(GSXML.MESSAGE_ELEM); 59 59 Element response; 60 if (page_name.equals(HOME_PAGE)) 61 { 62 response = homePage(request); 63 64 } 65 else if (page_name.equals(GLI4GS3_PAGE)) 66 { 67 response = gli4gs3Page(request); 68 } else if (collection.equals("")) { 60 if (page_name.equals(HOME_PAGE)) { 61 62 response = homePage(request); 63 64 } 65 else if (page_name.equals(GLI4GS3_PAGE)) { 66 67 response = gli4gs3Page(request); 68 69 } else if (collection.equals("")) { 69 70 // we are not in a collection. eg could be library prefs or other page 70 71 response = generalLibraryPage(request, page_name); … … 73 74 response = collectionPage(request, page_name, collection); 74 75 } 75 76 76 77 77 78 result.appendChild(doc.importNode(response, true)); 78 79 logger.debug("page action result: " + this.converter.getPrettyString(result)); … … 82 83 83 84 // A general library page just adds site metadata and interface options. 84 // customise: prefs: add language list85 // page specific customisation: prefs: add language list 85 86 protected Element generalLibraryPage(Element request, String page_name) { 86 87 … … 96 97 } 97 98 99 // a general collection page. Need to add collection info and info about its services 98 100 protected Element collectionPage(Element request, String page_name, String collection) { 99 101 … … 141 143 142 144 if (page_name.equals(ABOUT_PAGE)) { 143 // get service descriptions. Actually only want displayItems 145 // get service descriptions. Actually only want displayItems, but get everything for now 144 146 NodeList services = coll_about_response.getElementsByTagName(GSXML.SERVICE_ELEM); 145 147 if (services.getLength() > 0) … … 149 151 150 152 } 151 // old code had adding a ct param to the paramList - for about/prefs page, only used for gs2 interface. Since we don't support that anymore, am leaving it out. 153 // old code had adding a ct param to the paramList - for about/prefs page, only used for gs2 interface. 154 // Since we don't support that anymore, am leaving it out. 152 155 153 156 // add the global collection format info … … 164 167 } 165 168 169 // security info for collection if we are a 'humanverify' page 166 170 if (page_name.equals(VERIFY_PAGE)) { 167 171 addSecurityInfo(request, collection, response);
Note:
See TracChangeset
for help on using the changeset viewer.