File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
website/src/js/components Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ export default class IngestBuckets extends Construct {
39
39
{
40
40
allowedHeaders : [ 'Authorization' ] ,
41
41
allowedMethods : [ HttpMethods . GET , HttpMethods . HEAD ] ,
42
- allowedOrigins : [ `https://${ websiteDistribution . distributionDomainName } ` ] ,
42
+ allowedOrigins : [
43
+ `https://${ websiteDistribution . distributionDomainName } ` ,
44
+ 'https://search.oceanbestpractices.org' ,
45
+ ] ,
43
46
maxAge : 3000 ,
44
47
} ,
45
48
] ,
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class Result extends Component {
42
42
formatStatisticsUrl ( handle ) {
43
43
return `https://repository.oceanbestpractices.org/handle/${ handle } /statistics`
44
44
}
45
-
45
+
46
46
hashLinkScroll ( ) {
47
47
const { hash } = window . location ;
48
48
if ( hash !== '' ) {
@@ -98,7 +98,7 @@ class Result extends Component {
98
98
}
99
99
100
100
launchPDF ( ) {
101
- const pdfURL = `viewer/index.html?file=https://s3.amazonaws.com/${ documentBucketSource } -document-source/${ this . props . uuid } .pdf&search=${ constructViewerQuery ( this . props . searchReducer . activeSearch , false ) } ` ;
101
+ const pdfURL = `viewer/index.html?file=https://s3.amazonaws.com/${ documentBucketSource } -document-source/pdf/ ${ this . props . uuid } .pdf&search=${ constructViewerQuery ( this . props . searchReducer . activeSearch , false ) } ` ;
102
102
window . open ( pdfURL , '_blank' ) ;
103
103
this . setState ( { showDocument : true } ) ;
104
104
}
@@ -210,7 +210,7 @@ class Result extends Component {
210
210
export_citation_checkbox
211
211
}
212
212
{ result_title }
213
-
213
+
214
214
< div className = "result__author" >
215
215
{
216
216
authorList || null
You can’t perform that action at this time.
0 commit comments