Mercurial > hg > LGServices
diff src/main/webapp/resources/js/general.js @ 55:95bf4ac726e6
Topic synchronization with extraction-interface. new tables in LGService database
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 16 Feb 2016 15:09:40 +0100 |
parents | 37840afb7b80 |
children | d0a5541d9d7e |
line wrap: on
line diff
--- a/src/main/webapp/resources/js/general.js Thu Feb 04 11:30:46 2016 +0100 +++ b/src/main/webapp/resources/js/general.js Tue Feb 16 15:09:40 2016 +0100 @@ -6,6 +6,8 @@ bookName, userId, extractionInterfaceUrl){ + // the input parameters contain fileId, since a branch means a text/many version of the text, of a section + var form = document.createElement("form"); form.setAttribute("method", "post"); form.setAttribute("action", extractionInterfaceUrl + "/Extractapp/TaggingText"); // hand to controller @@ -57,7 +59,9 @@ } } -function sectionInExtractionInterface(sectionId, sectionName, bookId, bookName, userId, extractionInterfaceUrl){ +function sectionInExtractionInterface(sectionId, sectionName, bookId, bookName, topicId, userId, extractionInterfaceUrl){ + + // the input parameters contain no fileId, since it's from searching result and haven't assigned topic Or saved var form = document.createElement("form"); form.setAttribute("method", "post"); @@ -89,6 +93,11 @@ hiddenField6.setAttribute("value", bookName); form.appendChild(hiddenField6); + var hiddenField7 = document.createElement("input"); + hiddenField7.setAttribute("name", "topic"); + hiddenField7.setAttribute("value", topicId); + form.appendChild(hiddenField7); + if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { document.body.appendChild(form); form.submit();