1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Cataloguing › Framework plugin example</title>
3 [% INCLUDE 'doc-head-close.inc' %]
6 <body id="EXAMPLE" class="cat" style="padding:1em;">
7 <form name="f_pop" onsubmit="report()" action="">
9 <h1>EXAMPLE plugin</h1>
10 <p>Hi, you are looking at the result of launching the EXAMPLE plugin.</p>
11 <p>I received this from you:</p>
12 <input type="text" id="received" value="[% result %]" disabled />
14 <p>I will pass back what you type here, if you press OK.</p>
15 <input type="text" id="return" value="[% result %]" />
17 <input type="button" value="OK" onclick="submitMyForm();" />
18 <a href="#" class="cancel close">Cancel</a>
22 <script type="text/javascript">
24 $(document).ready(function () {
28 // The following function just puts back the value of the input #return
29 // into the caller's field, referenced by index. And closes the popup.
30 function submitMyForm() {
31 $(window.opener.document).find('#[% index %]').val($('#return').val() );
37 [% INCLUDE 'popup-bottom.inc' %]