data: {id:mana_id, resource: 'report', saveinbase: 1},
dataType: "json",
})
.done( function (result){
window.location = ("/cgi-bin/koha/reports/guided_reports.pl?reports=").concat(result.id).concat("&phase=Show%20SQL");
.fail( function ( foo, msg, longmsg){
});
}
function mana_search( textquery ){
my $result = Koha::SharedContent::manaGetRequestWithId($input->param('resource'), $input->param('id') );
my $package = "Koha::".ucfirst($input->param('resource'));
my $resource;
if ( $input->param( 'saveinbase' )) {
$package->new_from_mana($result->{data});
$resource = { id => $package->new_from_mana($result->{data})->id };
else{
my $subscription;
$resource = $result->{data};
$subscription = $result->{data};
print(to_json($resource));
print(to_json($subscription));
-