%%macro newnote_scripts%% %%endmacro%% %%macro newnote_target%% Link %%lrc nnDlgTxt1 pub "Target"%%:
Phrase: %%lrc Document hwrc "Document"%%: %%endmacro%% %%macro newnote_note%% Title: *
%%lrc intocol hwrc "Into Collection"%%: * Name (URL): * Description: Rights: %%endmacro%% %%macro dialog_newnote%% //***** DIALOG SPECS *****// var dlg_spec={ caption:lrc("nnDlgCap1","pub","New Note"), descr:lrc("nnDlgDes1","pub","Navigate to the document where you want to create a note, using the main browser window (the window where you opened the note window). Mark the phrase where the annotation should be attached and press the \"Current Selection\" button in the wizard."), buttons:{" OK ":{func:"submit"},"Cancel":{func:"close"}," Help ":{func:"help"}}, formaction:place("action.call.insert.text","reloadandclose"), formname:"createannotation", macro:"newnote_scripts", onload:"init()", onsubmit:"confirmcreate()", opdlgfunc:1 }; //***** PARAM SPECS *****// var target={paramspecs:[{type:"plainmacro",name:"newnote_target"}]}; var note={paramspecs:[{type:"plainmacro",name:"newnote_note"}]}; HW_DC_defaultMultiDialog(dlg_spec,[{caption:lrc("nnDlgTxt1","pub","Target"),boxes:[target]},{caption:lrc("nnDlgTxt4","pub","Note"),boxes:[note]}]); %%endmacro%% %%macro dialog_refinenote%% //***** DIALOG SPECS *****// var dlg_spec={ caption:lrc("nnDlgTxt6","pub","Link refinement"), descr:lrc("nnDlgDes2","pub","The phrase you have selected for the link target appears more than once in the target document. Please select exactly one occurrence and press \"OK\" at the bottom."), buttons:{" OK ":{func:"submit"},"Cancel":{func:"close"}}, formaction:place("action.call.insert.text","reloadandclose"), formname:"SELECTFORM", macro:"check_all_script", }; //***** PARAM SPECS *****// var content=place("insert.text.multipledestination.content"); if (request.object.MimeType=="text/plain") content="
"+content+"
"; HW_DC_defaultDialog(dlg_spec,[{paramspecs:[{type:"plaintext",def:content}]}]);
%%endmacro%%