PageSourceSearch

https://governmentportfolios.eu/typo3conf/ext/univie_search/Resour…/Javascript/fusion-click.js?1639470332

js governmentportfolios.eu collected 2026-10-05 23:01:07 UTC 1,885 bytes, 52 lines download raw bytes

1$( document ).ready(function() {
2    // $(".fusionresult a").on('click', function(){
3    //     // Holds the product ID of the clicked element
4    //     console.log("hello miles");
5    // });
6    $(document).on('click','.fusionresult a',function(e) {
7        var clicked = $(this)[0];
8        var protocol = 'https';
9        var fusionhost = '://foo.univie.ac.at';
10        var fusionport = ':8864';
11        var path = '/api/apollo/signals/';
12        //Define per Server:
13        var collection = 'Uni1';//Uni1, intra, zid
14        var username = "uni1-sig";//uni1-sig, intra-sig, zid-sig
15        var password = "Um8gYuTokfb6qtZg";//Um8gYuTokfb6qtZg, intra-sig-1, zid-sig1zid-sig1
16
17        var query = "?async=false&commit=true";
18        var URI = protocol+fusionhost+fusionport+path+collection+query;
19        //see https://doc.lucidworks.com/fusion/3.1/REST_API_Reference/Signals-API.html
20        var clicktype = clicked.getAttribute("ctype");
21        var id_href = clicked.getAttribute("href");
22        var rank = clicked.getAttribute("rank");
23
24        var signal = [{
25            //id: , OPTIONAL
26            //timestamp:"2018-04-13T12:43:43.970Z", OPTIONAL
27            type:clicktype,
28            params: {
29                docId: id_href,
30                count:1,
31                collection:collection,
32                query:fusion_query_string,
33                weight:parseFloat(rank)
34            }
35        }];
36
37        $.ajax
38        ({
39            type: "POST",
40            url: URI,
41            contentType:"application/json; charset=utf-8",
42            dataType: 'json',
43            async: false,
44            headers: {
45                "Authorization": "Basic " + btoa(username + ":" + password)
46            },
47            data: JSON.stringify(signal),
48            success: function (){
49            }
50        });
51    });
52});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.