- Timestamp:
- 2023-03-13T15:06:58+13:00 (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js
r37153 r37480 68 68 if (gs.cgiParams.ck && gs.cgiParams.ck.length > 0) { 69 69 url += "&ck=" + gs.cgiParams.ck; 70 } 71 72 73 74 $.ajax(url) 70 } 71 72 $.ajax(url, { dataType: "text" }) 75 73 .done(function(response) 76 74 { … … 109 107 template += '<xsl:template match="/">'; 110 108 template += '<sections>'; 111 template += 112 template += 113 template += 109 template += '<xsl:for-each select="/page/pageResponse/document//documentNode[@nodeID = \'' + sectionID + '\']/documentNode">'; 110 template += '<xsl:call-template name="wrapDocumentNodes"/>'; 111 template += '</xsl:for-each>'; 114 112 template += '</sections>'; 115 113 template += '</xsl:template>'; 116 114 117 118 119 120 121 url += "&p.s=" + gs.cgiParams.p_s;122 123 124 115 template = makeURLComponentSafe(template); 116 var url = gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/document/" + sectionID + "?ilt=" + template; 117 118 if (gs.cgiParams.p_s && gs.cgiParams.p_s.length > 0) { 119 url += "&p.s=" + gs.cgiParams.p_s; 120 } 121 122 if(gs.documentMetadata.docType == "paged") 125 123 { 126 124 url += "&dt=hierarchy"; 127 125 } 128 126 129 $.ajax(url)127 $.ajax(url, { dataType: "text" }) 130 128 .done(function(response) 131 129 { … … 461 459 } 462 460 463 $.ajax(url )461 $.ajax(url, { dataType: "text" }) 464 462 .done(function(response) 465 463 { … … 537 535 } 538 536 else { 539 $.ajax(url )537 $.ajax(url, { dataType: "text" }) 540 538 .done(retrieveFullTableOfContentsSuccess) 541 539 .fail(function() { … … 704 702 } 705 703 706 $.ajax(url)704 $.ajax(url, { dataType: "text" }) 707 705 .done(function(response) 708 706 { … … 968 966 template += '</html>'; 969 967 template += '</xsl:template>'; 970 template = makeURLComponentSafe(template);968 template = makeURLComponentSafe(template); 971 969 var url = href + "?noText=1&ilt=" + template; 972 970 973 $.ajax(url)971 $.ajax(url, { dataType: "text" }) 974 972 .done(function(text) 975 973 { … … 1307 1305 template += ']</images>'; 1308 1306 template += '</xsl:template>'; 1309 1307 template = makeURLComponentSafe(template); 1310 1308 var url = gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/document/" + gs.cgiParams.d + "?ed=1&ilt=" + template; 1311 1309 1312 $.ajax({ 1313 url:url 1314 }).done(function(data) { 1310 $.ajax(url, {dataType: "text"}) 1311 .done(function(data) { 1315 1312 var startIndex = data.indexOf(">", data.indexOf(">") + 1) + 1; 1316 1313 var endIndex = data.lastIndexOf("<");
Note:
See TracChangeset
for help on using the changeset viewer.