File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
app/institutions/dashboard/-components/object-list Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,23 @@ export default class InstitutionalObjectList extends Component<InstitutionalObje
7474 }
7575
7676 downloadUrl ( format : string ) {
77- return format ; // TODO: implement
77+ const searchUrl = new URL ( 'test' ) ;
78+ searchUrl . searchParams . append ( 'acceptMediatype' , format ) ;
79+ const fileName = `${ this . args . institution . name } -${ this . args . objectType } -search-results` ; // Extension?
80+ searchUrl . searchParams . append ( 'withFileName' , fileName ) ;
81+ return searchUrl . toString ( ) ;
7882 }
83+
7984 get downloadCsvUrl ( ) {
80- return this . downloadUrl ( 'csv' ) ;
85+ return this . downloadUrl ( 'text/ csv' ) ;
8186 }
8287
8388 get downloadTsvUrl ( ) {
84- return this . downloadUrl ( 'tsv' ) ;
89+ return this . downloadUrl ( 'text/tab-separated-values' ) ;
90+ }
91+
92+ get downloadJsonUrl ( ) {
93+ return this . downloadUrl ( 'application/json' ) ;
8594 }
8695
8796 @action
You can’t perform that action at this time.
0 commit comments