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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt (-11 / +6 lines)
Lines 8-16 Link Here
8
[% USE Koha %]
8
[% USE Koha %]
9
9
10
<style>
10
<style>
11
.linktools { background-color:#FFF;border-top:1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #666; border-bottom:1px solid #666;display: none; white-space: nowrap;}
12
.linktools a { font-size : 85%; text-decoration:none; padding:.3em;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;}
13
.linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;}
14
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent !important; } #dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }
11
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent !important; } #dataPreview { width : 80%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } }
15
</style>
12
</style>
16
</head>
13
</head>
Lines 111-124 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
111
        [% IF ( Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' ) %]
108
        [% IF ( Koha.Preference('AdditionalFieldsInZ3950ResultSearch') != '' ) %]
112
            <th>Additional fields</th>
109
            <th>Additional fields</th>
113
        [% END %]
110
        [% END %]
114
        <th>Preview</th>
111
        <th>Actions</th>
115
        <th>&nbsp;</th>
116
    </tr></thead>
112
    </tr></thead>
117
    <tbody>[% FOREACH breeding_loo IN breeding_loop %]
113
    <tbody>[% FOREACH breeding_loo IN breeding_loop %]
118
        [% IF ( breeding_loo.breedingid ) %]
114
        [% IF ( breeding_loo.breedingid ) %]
119
115
120
        <tr>
116
        <tr>
121
            <td>[% breeding_loo.server | html %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" class="previewData">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid | html %]" class="previewData">Preview card</a> <a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri %]&amp;breedingid=[% breeding_loo.breedingid | html %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]">[% tp('verb', 'Order') | html %]</a> <a href="#" id="closemenu" title="Close this menu"> X </a></div></td>
117
            <td>[% breeding_loo.server | html %]</td>
122
            <td>[% breeding_loo.title | html %]</td>
118
            <td>[% breeding_loo.title | html %]</td>
123
            <td>[% breeding_loo.author | html %]</td>
119
            <td>[% breeding_loo.author | html %]</td>
124
            <td>[% breeding_loo.isbn | html %]</td>
120
            <td>[% breeding_loo.isbn | html %]</td>
Lines 137-152 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
137
            [% END %]
133
            [% END %]
138
            <td class="actions">
134
            <td class="actions">
139
                <div class="btn-group dropup">
135
                <div class="btn-group dropup">
140
                    <a class="btn btn-default btn-xs dropdown-toggle" id="z3950preview[% breeding_loo.breedingid | uri %]" role="button" data-toggle="dropdown" href="#">
136
                    <a class="btn btn-default btn-xs z3950actions" href="#">MARC</a><button data-toggle="dropdown" class="btn-xs dropdown-toggle"><span class="caret"></span></button>
141
                        Preview <b class="caret"></b>
142
                    </a>
143
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="z3950preview[% breeding_loo.breedingid | html %]">
137
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="z3950preview[% breeding_loo.breedingid | html %]">
144
                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData"><i class="fa fa-eye"></i> MARC</a></li>
138
                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData"><i class="fa fa-eye"></i> MARC</a></li>
145
                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData"><i class="fa fa-eye"></i> Card</a></li>
139
                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData"><i class="fa fa-eye"></i> Card</a></li>
140
                        <li><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri %]&amp;breedingid=[% breeding_loo.breedingid | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]" class="chosen" title="Order"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a></li>
146
                    </ul>
141
                    </ul>
147
                </div>
142
                </div>
148
            </td>
143
            </td>
149
            <td class="actions"><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode | uri %]&amp;breedingid=[% breeding_loo.breedingid | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% basketno | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> [% tp('verb', 'Order') | html %]</a></td>
150
        </tr>
144
        </tr>
151
        [% END %]
145
        [% END %]
152
    [% END %]</tbody>
146
    [% END %]</tbody>
Lines 228-233 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
228
    [% INCLUDE 'datatables.inc' %]
222
    [% INCLUDE 'datatables.inc' %]
229
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
223
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
230
    [% Asset.js("js/z3950_search.js") | $raw %]
224
    [% Asset.js("js/z3950_search.js") | $raw %]
225
    [% INCLUDE 'z3950_search.inc' %]
231
    <script>
226
    <script>
232
        $(document).ready(function(){
227
        $(document).ready(function(){
233
            var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
228
            var resultst = $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
Lines 238-246 tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : Link Here
238
                "aaSorting": [[ 1, "asc" ]],
233
                "aaSorting": [[ 1, "asc" ]],
239
                "bPaginate": false
234
                "bPaginate": false
240
            }));
235
            }));
236
            InitLastAction();
241
        });
237
        });
242
    </script>
238
    </script>
243
    [% INCLUDE 'z3950_search.inc' %]
244
[% END %]
239
[% END %]
245
240
246
[% INCLUDE 'intranet-bottom.inc' %]
241
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt (-8 / +7 lines)
Lines 89-100 Link Here
89
            <td>[% breeding_loo.heading_code | html %]</td>
89
            <td>[% breeding_loo.heading_code | html %]</td>
90
            <td class="actions">
90
            <td class="actions">
91
                <div class="btn-group dropup">
91
                <div class="btn-group dropup">
92
                    <a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% breeding_loo.breedingid | html %]" role="button" data-toggle="dropdown" href="#">
92
                    <a class="btn btn-default btn-xs z3950actions" href="#">MARC</a><button class="btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
93
                      Actions <b class="caret"></b>
94
                    </a>
95
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% breeding_loo.breedingid | html %]">
93
                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% breeding_loo.breedingid | html %]">
96
                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" class="previewMARC"><i class="fa fa-eye"></i> MARC preview</a></li>
94
                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>
97
                        <li><a href="#" class="import_record" data-breedingid="[% breeding_loo.breedingid | html %]" data-heading_code="[% breeding_loo.heading_code | html %]" data-authid="[% breeding_loo.authid | html %]"><i class="fa fa-download"></i> Import</a></li>
95
                        <li><a href="/cgi-bin/koha/authorities/authorities.pl?breedingid=[% breeding_loo.breedingid | html %]&authtypecode=[% breeding_loo.heading_code | html %]" class="chosen" title="Import"><i class="fa fa-download"></i> Import</a></li>
98
                    </ul>
96
                    </ul>
99
                </div>
97
                </div>
100
            </td>
98
            </td>
Lines 103-114 Link Here
103
    [% END %]</tbody>
101
    [% END %]</tbody>
104
</table>
102
</table>
105
103
106
    <div id="marcPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true">
104
    <div id="dataPreview" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true">
107
        <div class="modal-dialog">
105
        <div class="modal-dialog">
108
        <div class="modal-content">
106
        <div class="modal-content">
109
        <div class="modal-header">
107
        <div class="modal-header">
110
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
108
            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
111
            <h3 id="marcPreviewLabel">MARC preview</h3>
109
            <h3 id="dataPreviewLabel">MARC preview</h3>
112
        </div>
110
        </div>
113
        <div class="modal-body">
111
        <div class="modal-body">
114
            <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
112
            <div id="loading"> <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading </div>
Lines 171-176 Link Here
171
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
169
    [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
172
    [% INCLUDE 'datatables.inc' %]
170
    [% INCLUDE 'datatables.inc' %]
173
    [% Asset.js("js/z3950_search.js") | $raw %]
171
    [% Asset.js("js/z3950_search.js") | $raw %]
172
    [% INCLUDE 'z3950_search.inc' %]
174
    <script>
173
    <script>
175
        $(document).ready(function(){
174
        $(document).ready(function(){
176
            $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
175
            $("#resultst").dataTable($.extend(true, {}, dataTablesDefaults, {
Lines 181-189 Link Here
181
                "aaSorting": [[ 1, "asc" ]],
180
                "aaSorting": [[ 1, "asc" ]],
182
                "bPaginate": false
181
                "bPaginate": false
183
            }));
182
            }));
183
            InitLastAction();
184
        });
184
        });
185
    </script>
185
    </script>
186
    [% INCLUDE 'z3950_search.inc' %]
187
[% END %]
186
[% END %]
188
187
189
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
188
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt (-5 / +4 lines)
Lines 156-168 Link Here
156
                                            [% END %]
156
                                            [% END %]
157
                                            <td class="actions">
157
                                            <td class="actions">
158
                                                <div class="btn-group dropup">
158
                                                <div class="btn-group dropup">
159
                                                    <a class="btn btn-default btn-xs dropdown-toggle" id="cataloguesearchactions[% breeding_loo.breedingid | html %]" role="button" data-toggle="dropdown" href="#">
159
                                                    <a class="btn btn-default btn-xs z3950actions" href="#">MARC</a><button class="btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
160
                                                      Actions <b class="caret"></b>
161
                                                    </a>
162
                                                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% breeding_loo.breedingid | html %]">
160
                                                    <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="cataloguesearchactions[% breeding_loo.breedingid | html %]">
163
                                                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>
161
                                                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid | uri %]" title="MARC" class="previewData"><i class="fa fa-eye"></i> MARC preview</a></li>
164
                                                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>
162
                                                        <li><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;importid=[% breeding_loo.breedingid | uri %]" title="Card" class="previewData"><i class="fa fa-eye"></i> Card preview</a></li>
165
                                                        <li><a href="#" class="import_record" data-breedingid="[% breeding_loo.breedingid | html %]" data-biblionumber="[% breeding_loo.biblionumber | html %]" data-frameworkcode="[% frameworkcode | uri %]"><i class="fa fa-download"></i> Import</a></li>
163
                                                        <li><a href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% breeding_loo.biblionumber | html %]&z3950=1&frameworkcode=[% frameworkcode | uri %]&breedingid=[% breeding_loo.breedingid | html %]" class="chosen" title="Import"><i class="fa fa-download"></i> Import</a></li>
166
                                                    </ul>
164
                                                    </ul>
167
                                                </div>
165
                                                </div>
168
                                            </td>
166
                                            </td>
Lines 240-245 Link Here
240
    [% Asset.js("js/z3950_search.js") | $raw %]
238
    [% Asset.js("js/z3950_search.js") | $raw %]
241
    [% INCLUDE 'datatables.inc' %]
239
    [% INCLUDE 'datatables.inc' %]
242
    [% INCLUDE 'columns_settings.inc' %]
240
    [% INCLUDE 'columns_settings.inc' %]
241
    [% INCLUDE 'z3950_search.inc' %]
243
    <script>
242
    <script>
244
        $(document).ready(function(){
243
        $(document).ready(function(){
245
            var columns_settings = [% TablesSettings.GetColumns( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %];
244
            var columns_settings = [% TablesSettings.GetColumns( 'cataloguing', 'z3950_search', 'resultst', 'json' ) | $raw %];
Lines 251-256 Link Here
251
                "aaSorting": [[ 1, "asc" ]],
250
                "aaSorting": [[ 1, "asc" ]],
252
                "bPaginate": false
251
                "bPaginate": false
253
            }, columns_settings );
252
            }, columns_settings );
253
            InitLastAction();
254
        });
254
        });
255
255
256
        function columnsInit(){
256
        function columnsInit(){
Lines 258-264 Link Here
258
            $("#result_pagenumbers").hide();
258
            $("#result_pagenumbers").hide();
259
        }
259
        }
260
    </script>
260
    </script>
261
    [% INCLUDE 'z3950_search.inc' %]
262
[% END %]
261
[% END %]
263
262
264
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
263
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/z3950_search.js (-38 / +40 lines)
Lines 1-15 Link Here
1
//z3950_search.js for Authorities, Bib records and Acquisitions module
1
//z3950_search.js for Authorities, Bib records and Acquisitions module
2
function Import(Breeding, recordid, AuthType, FrameworkCode) {
3
2
4
    if ( AuthType == false ) {
3
var last_action, previewed = 0;
5
        opener.document.location="../cataloguing/addbiblio.pl?biblionumber="+recordid+"&z3950=1&frameworkcode="+FrameworkCode+"&breedingid="+Breeding;
6
    } else {
7
        opener.document.location="../authorities/authorities.pl?breedingid="+Breeding+"&authtypecode="+AuthType+"&authid="+recordid;
8
    }
9
    window.close();
10
    return false;
11
12
}
13
4
14
$( document ).ready( function() {
5
$( document ).ready( function() {
15
6
Lines 56-71 $( document ).ready( function() { Link Here
56
    /* Note: The templates where this is included must have a search results
47
    /* Note: The templates where this is included must have a search results
57
       table with the id "resultst" and "action" table cells with the class "actions" */
48
       table with the id "resultst" and "action" table cells with the class "actions" */
58
    $("#resultst").on("click", "td", function(event){
49
    $("#resultst").on("click", "td", function(event){
50
        event.preventDefault();
59
        var tgt = $(event.target);
51
        var tgt = $(event.target);
60
        var row = $(this).parent();
52
        var row = $(this).closest('tr');
61
        /* Remove highlight from all rows and add to the clicked row */
53
        /* Remove highlight from all rows and add to the clicked row */
62
        $("tr").removeClass("highlighted-row");
54
        $("tr").removeClass("highlighted-row");
63
        row.addClass("highlighted-row");
55
        row.addClass("highlighted-row");
64
        /* Remove any menus created on the fly for other rows */
56
        /* Remove any menus created on the fly for other rows */
65
        $(".btn-wrapper").remove();
57
        $(".btn-wrapper").remove();
66
58
67
        if( tgt.is("a") || tgt.hasClass("actions") ){
59
        if( tgt.hasClass("z3950actions")  ) { // direct button click
68
            /* Don't show inline links for cells containing links of their own. */
60
            var link = $( "a[title='" + tgt.text() + "']", row );
61
            if( link.length == 1) link.click();
62
            row.find('ul.dropdown-menu').hide();
69
        } else {
63
        } else {
70
            event.stopPropagation();
64
            event.stopPropagation();
71
            /* Remove the "open" class from all dropup menus in case one is open */
65
            /* Remove the "open" class from all dropup menus in case one is open */
Lines 86-91 $( document ).ready( function() { Link Here
86
                The menu must first be wrapped in a block-level div to clear
80
                The menu must first be wrapped in a block-level div to clear
87
                the table cell's text contents and then a relative-positioned
81
                the table cell's text contents and then a relative-positioned
88
                div to allow the menu to be positioned correctly */
82
                div to allow the menu to be positioned correctly */
83
            if( tgt.prop('nodeName') != 'TD' ) {
84
                // handling click on caret to improve menu position
85
                tgt = tgt.closest('td');
86
            }
89
            tgt.append(
87
            tgt.append(
90
                $('<div/>', {'class': 'btn-wrapper'}).append(
88
                $('<div/>', {'class': 'btn-wrapper'}).append(
91
                    $('<div/>', {'class': 'btn-group'}).append(
89
                    $('<div/>', {'class': 'btn-group'}).append(
Lines 96-138 $( document ).ready( function() { Link Here
96
        }
94
        }
97
    });
95
    });
98
96
99
    $( "#resultst" ).on("click", ".previewMARC", function(e) {
100
        e.preventDefault();
101
        var ltitle = $( this ).text();
102
        var page = $( this ).attr( "href" );
103
        $( "#marcPreviewLabel" ).text( ltitle );
104
        $( "#marcPreview .modal-body" ).load( page + " pre" );
105
        $( '#marcPreview' ).modal( {show:true} );
106
    });
107
    $( "#marcPreview" ).on( "hidden", function() {
108
        $( "#marcPreviewLabel" ).html( "" );
109
        $( "#marcPreview .modal-body" ).html( "<div id='loading'><img src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' /> " + MSG_LOADING + "</div>" );
110
    });
111
    $( "#resultst" ).on("click", ".previewData", function(e) {
97
    $( "#resultst" ).on("click", ".previewData", function(e) {
112
        e.preventDefault();
98
        e.preventDefault();
99
        previewed = 1;
100
        ChangeLastAction( $(this).attr('title'), 1 );
113
        var ltitle = $( this ).text();
101
        var ltitle = $( this ).text();
114
        var page = $( this ).attr( "href" );
102
        var page = $( this ).attr( "href" );
115
        $( "#dataPreviewLabel" ).text( ltitle );
103
        $( "#dataPreviewLabel" ).text( ltitle );
116
        $( "#dataPreview .modal-body" ).load( page + " div" );
104
        $( "#dataPreview .modal-body" ).load( page + " div" );
117
        $( '#dataPreview' ).modal( {show:true} );
105
        $( '#dataPreview' ).modal( {show:true} );
118
    });
106
    });
107
119
    $( "#dataPreview" ).on( "hidden", function() {
108
    $( "#dataPreview" ).on( "hidden", function() {
120
        $( "#dataPreviewLabel" ).html( "" );
109
        $( "#dataPreviewLabel" ).html( "" );
121
        $( "#dataPreview .modal-body" ).html( "<div id='loading'><img src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' /> " + MSG_LOADING + "</div>" );
110
        $( "#dataPreview .modal-body" ).html( "<div id='loading'><img src='" + interface + "/" + theme + "/img/spinner-small.gif' alt='' /> " + MSG_LOADING + "</div>" );
122
    });
111
    });
123
    $( "#resultst" ).on("click", ".import_record", function(e) {
112
113
    $( "#resultst" ).on("click", ".chosen", function(e) {
124
        e.preventDefault();
114
        e.preventDefault();
125
        var data_breedingid = $( this ).data( "breedingid" );
115
        var title = $(this).attr('title');
126
        var data_headingcode = $( this ).data( "heading_code" );
116
        ChangeLastAction( title, 0 );
127
        var data_authid = $( this ).data( "authid" );
117
        if( title == 'Order' ) window.location = $(this).attr('href');
128
        var data_biblionumber = $( this ).data( "biblionumber" );
118
        else {
129
        var data_frameworkcode = $( this ).data( "frameworkcode" );
119
            opener.document.location = $(this).attr('href');
130
        if ( data_headingcode == undefined ) {
120
            window.close();
131
            Import( data_breedingid, data_biblionumber, false , data_frameworkcode );
132
        } else {
133
            Import( data_breedingid, data_authid, data_headingcode );
134
        }
121
        }
135
        return false;
136
    });
122
    });
137
138
});
123
});
139
- 
124
125
function InitLastAction() {
126
    if( $("#resultst").length == 0 ) return;
127
    try { last_action = localStorage.getItem('z3950search_last_action'); } catch (err) {}
128
    if( last_action ) {
129
        var linkcount = $(".z3950actions:eq(0)").siblings(".dropdown-menu").find("a[title='"+last_action+"']").length;
130
        if( linkcount == 0 ) return;
131
        if( last_action != 'MARC' ) $( ".z3950actions" ).text( last_action );
132
    }
133
}
134
135
function ChangeLastAction(title, change_text) {
136
    if( last_action && last_action == title ) return;
137
    last_action = title;
138
    if( change_text ) $( ".z3950actions" ).text( last_action );
139
    if( previewed == 0 || change_text == 1 )
140
        try { localStorage.setItem('z3950search_last_action', last_action); } catch(err) {}
141
}

Return to bug 23302