Changeset 28279


Ignore:
Timestamp:
09/13/13 11:15:19 (8 years ago)
Author:
sjm84
Message:

Added some status information when extracting a document

Location:
main/trunk/greenstone3/web/interfaces/default
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js

    r28255 r28279  
    483483    sectionString += "]";
    484484   
    485     var url = "cgi-bin/document-extract.pl?a=extract-archives-doc&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d + "&json-sections=" + sectionString;// + "&json-metadata=[{"metaname":"dc.Title","metavalue":"All Black Rugy Success","metamode":"accumulate"]"
     485    var url = "cgi-bin/document-extract.pl?a=extract-archives-doc&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d + "&json-sections=" + sectionString + "&site=" + gs.xsltParams.site_name;// + "&json-metadata=[{"metaname":"dc.Title","metavalue":"All Black Rugy Success","metamode":"accumulate"]"
     486    $("#extractDocButton").attr("disabled", "disabled").html("Exracting document...");
    486487    $.ajax(url)
    487488    .success(function(response)
    488489    {
    489         console.log(response);
     490        $("#extractDocButton").html("Building collection...");
    490491        gs.functions.buildCollections([gs.cgiParams.c], function()
    491492        {
    492             console.log("DONE BUILDING!");
     493            $("#extractDocButton").removeAttr("disabled").html("Extract these pages to document");
    493494        });
     495    })
     496    .error(function()
     497    {
     498        $("#extractDocButton").removeAttr("disabled").html("Extract these pages to document");
    494499    });
    495500}
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/toc.xsl

    r28253 r28279  
    9191                                </tr>
    9292                                <xsl:if test="/page/pageRequest/userInformation and /page/pageRequest/userInformation/@editEnabled = 'true'">
    93                                     <tr><td><a href="javascript:extractFilteredPagesToOwnDocument();"><button>Extract these pages to document</button></a></td></tr>
     93                                    <tr><td><a href="javascript:extractFilteredPagesToOwnDocument();"><button id="extractDocButton">Extract these pages to document</button></a></td></tr>
    9494                                </xsl:if>
    9595                                </tbody></table>
Note: See TracChangeset for help on using the changeset viewer.