File tree Expand file tree Collapse file tree
assets/javascripts/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ SPARQL = {
2424 } ,
2525 time_taken : function ( data ) {
2626 return data . results . time_taken ;
27+ } ,
28+ print : function ( ) {
29+ Utils . alert ( "The PRINT feature has not been implemented yet." ) ;
2730 }
2831 } ,
2932 textbox : {
@@ -38,16 +41,16 @@ SPARQL = {
3841 } ,
3942 download : {
4043 rdb : function ( ) {
41- window . open ( Utils . rdf2any . server + Utils . rdf2any . actions . convert + "/ rdb-converter.sql?query=" + encodeURIComponent ( $ ( "#txt_sparql_query" ) . val ( ) ) ) ;
44+ window . open ( Utils . rdf2any . server + Utils . rdf2any . actions . convert + "rdb-converter.sql?query=" + encodeURIComponent ( $ ( "#txt_sparql_query" ) . val ( ) ) ) ;
4245 } ,
4346 csv : function ( ) {
44- window . open ( Utils . rdf2any . server + Utils . rdf2any . actions . convert + "/ csv-converter.csv?query=" + encodeURIComponent ( $ ( "#txt_sparql_query" ) . val ( ) ) ) ;
47+ window . open ( Utils . rdf2any . server + Utils . rdf2any . actions . convert + "csv-converter.csv?query=" + encodeURIComponent ( $ ( "#txt_sparql_query" ) . val ( ) ) ) ;
4548 } ,
4649 pdf : function ( ) {
4750 Utils . alert ( "The PDF download feature has not been implemented yet." ) ;
4851 } ,
4952 json : function ( ) {
50- Utils . alert ( "The JSON download feature has not been implemented yet." ) ;
53+ window . open ( Utils . rdf2any . server + Utils . rdf2any . actions . convert + "json?query=" + encodeURIComponent ( $ ( "#txt_sparql_query" ) . val ( ) ) ) ;
5154 }
5255 }
5356
Original file line number Diff line number Diff line change 99 < div class ="col-md-6 ">
1010 < div class ="btn-group pull-right ">
1111 < button type ="button " class ="btn btn-danger " onclick ="show_sparql_download_modal() "> < span class ="glyphicon glyphicon-floppy-save "> </ span > Download</ button >
12- < button type ="button " class ="btn btn-warning " > < span class ="glyphicon glyphicon-print "> </ span > Print</ button >
12+ < button type ="button " class ="btn btn-warning " onclick =" SPARQL.result.print() " > < span class ="glyphicon glyphicon-print "> </ span > Print</ button >
1313 </ div >
1414 </ div >
1515 </ div >
You can’t perform that action at this time.
0 commit comments