View | Details | Raw Unified | Return to bug 18655
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_210c.tt (-4 / +10 lines)
Lines 65-73 Link Here
65
                        <td>[% PROCESS authresult summary=resul.summary %]</td>
65
                        <td>[% PROCESS authresult summary=resul.summary %]</td>
66
                        <td>[% resul.used %] times</td>
66
                        <td>[% resul.used %] times</td>
67
                        <td>
67
                        <td>
68
                [% IF ( resul.to_report ) %]
68
                        [% IF ( resul.to_report ) %]
69
                            <a href="javascript:report('[% resul.to_report |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]')"><img alt="choose" src="[% interface %]/[% theme %]/images/arrow.gif" width="32" /></a>
69
                            <button class="choosebt">Choose</button>
70
                [% END %]
70
                            <p class="toreport" style="display:none">[% resul.to_report |replace('\n', '\\n') |replace('\r', '\\r') |html %]</p>
71
                        [% END %]
71
                        </td>
72
                        </td>
72
                    </tr>
73
                    </tr>
73
                [% END %]
74
                [% END %]
Lines 82-87 Link Here
82
83
83
[% MACRO jsinclude BLOCK %]
84
[% MACRO jsinclude BLOCK %]
84
    <script type="text/javascript">
85
    <script type="text/javascript">
86
        $(document).ready(function(){
87
            $(".choosebt").on("click",function(){
88
                var toreport = $(this).siblings(".toreport").text();
89
                report(toreport);
90
            });
91
        });
85
        function report(summary){
92
        function report(summary){
86
            var doc   = opener.document;
93
            var doc   = opener.document;
87
            var field = doc.getElementById('[% index %]');
94
            var field = doc.getElementById('[% index %]');
88
- 

Return to bug 18655