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 (-2 / +11 lines)
Lines 64-70 Link Here
64
                        <td>[% resul.used %] times</td>
64
                        <td>[% resul.used %] times</td>
65
                        <td>
65
                        <td>
66
                [% IF ( resul.to_report ) %]
66
                [% IF ( resul.to_report ) %]
67
                            <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>
67
                            <button id='import'><img alt="choose" src="[% interface %]/[% theme %]/images/arrow.gif" width="32" /></button>
68
                [% END %]
68
                [% END %]
69
                        </td>
69
                        </td>
70
                    </tr>
70
                    </tr>
Lines 79-84 Link Here
79
            [% END %]
79
            [% END %]
80
<script type="text/javascript">
80
<script type="text/javascript">
81
//<![CDATA[
81
//<![CDATA[
82
83
$( document ).ready( function(){
84
    $('#import').on('click', function(){
85
        var temp = "[% resul.to_report| replace('"', '\"') %]";
86
        temp.replace( "'", "\\'");
87
        temp.replace( "\\r", "\\\\r");
88
        report( temp );
89
    });
90
});
91
82
function report(summary)
92
function report(summary)
83
{    
93
{    
84
    var doc   = opener.document; 
94
    var doc   = opener.document; 
85
- 

Return to bug 18655