File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ module.exports = async (
1616 userName ,
1717 isEmailNotification ,
1818 isUploadCommons ,
19- oauthToken
19+ oauthToken ,
20+ commonsMetadata
2021) => {
2122 const uri = `https://trove.nla.gov.au/newspaper/article/${ bookid } ` ;
2223 var options = {
@@ -35,6 +36,7 @@ module.exports = async (
3536 metaData [ "isEmailNotification" ] = isEmailNotification ;
3637 metaData [ "isUploadCommons" ] = isUploadCommons ;
3738 metaData [ "oauthToken" ] = oauthToken ;
39+ metaData [ "commonsMetadata" ] = commonsMetadata ;
3840
3941 const details = {
4042 details : metaData ,
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ const Books = () => {
270270 session . user . name
271271 } &IAtitle=${ IAIdentifier } &isUploadCommons=${ isUploadCommons } &oauthToken=${
272272 session ?. accessToken
273- } &isEmailNotification=${ isEmailNotification } `;
273+ } &isEmailNotification=${ isEmailNotification } &commonsMetadata= ${ commonsMetadata } `;
274274 fetch ( url )
275275 . then ( ( res ) => res . json ( ) )
276276 . then ( ( response ) => {
Original file line number Diff line number Diff line change 577577 userName ,
578578 isEmailNotification ,
579579 isUploadCommons ,
580- oauthToken
580+ oauthToken ,
581+ commonsMetadata
581582 ) ;
582583 }
583584 }
You can’t perform that action at this time.
0 commit comments