@@ -3594,27 +3594,27 @@ const utilsNetwork = {
35943594
35953595 } ,
35963596
3597- sendErrorReportLog : function ( log , filename , profileAsJson ) {
3598-
3599- let url = useConfigStore ( ) . returnUrls . util + 'errorlog/'
3600-
3601-
3602- fetch ( url , {
3603- method : 'POST' ,
3604- headers : {
3605- 'Accept' : 'application/json' ,
3606- 'Content-Type' : 'application/json' ,
3607- ...getAuthHeaders ( )
3608- } ,
3609- body : JSON . stringify ( {
3610- log : log ,
3611- filename :filename ,
3612- profile : profileAsJson
3613- } )
3614- } ) ;
3615-
3616-
3617- } ,
3597+ // sendErrorReportLog: function(log,filename,profileAsJson){
3598+ //
3599+ // let url = useConfigStore().returnUrls.util + 'errorlog/'
3600+ //
3601+ //
3602+ // fetch(url, {
3603+ // method: 'POST',
3604+ // headers: {
3605+ // 'Accept': 'application/json',
3606+ // 'Content-Type': 'application/json',
3607+ // ...getAuthHeaders()
3608+ // },
3609+ // body: JSON.stringify({
3610+ // log: log,
3611+ // filename:filename,
3612+ // profile: profileAsJson
3613+ // })
3614+ // });
3615+ //
3616+ //
3617+ // },
36183618
36193619
36203620
@@ -4006,21 +4006,23 @@ const utilsNetwork = {
40064006 async linkedDataLCSHContributorsExtract ( data ) {
40074007 // TODO: Implement extraction logic
40084008 if ( data ) {
4009- console . log ( "linkedDataLCSHContributorsExtract data:" , data )
4009+ // console.log("linkedDataLCSHContributorsExtract data:",data)
40104010
40114011 for ( let lccnUri of Object . keys ( data ) ) {
40124012
4013+ if ( ! data [ lccnUri ] || ! data [ lccnUri ] . results ) continue
4014+
40134015 let workUrls = data [ lccnUri ] . results . map ( work => work . uri . replace ( "http://" , "https://" ) + '.json' ) ;
40144016
40154017 let workPromises = workUrls . map ( url => fetch ( url ) . then ( response => response . json ( ) ) ) ;
40164018
40174019 try {
40184020 let workResults = await Promise . all ( workPromises ) ;
4019- console . log ( "workResults" , workResults ) ;
4021+ // console.log("workResults", workResults);
40204022 // Now process each workResult
40214023 for ( let workData of workResults ) {
40224024 // Process workData
4023- console . log ( "Processing workData:" , workData ) ;
4025+ // console.log("Processing workData:", workData);
40244026
40254027 let lookup = { }
40264028 let lcshList = [ ]
@@ -4111,7 +4113,7 @@ const utilsNetwork = {
41114113
41124114 if ( g [ '@type' ] && g [ '@type' ] . indexOf ( 'http://www.loc.gov/mads/rdf/v1#ComplexSubject' ) > - 1 ) {
41134115
4114- console . log ( "Complex Subject:" , g ) ;
4116+ // console.log("Complex Subject:", g);
41154117
41164118
41174119
@@ -4120,7 +4122,7 @@ const utilsNetwork = {
41204122 let components = g [ 'http://www.loc.gov/mads/rdf/v1#componentList' ] [ 0 ] [ '@list' ] ;
41214123 for ( let component of components ) {
41224124 // now find this in the graph...
4123- console . log ( "component:" , component ) ;
4125+ // console.log("component:", component);
41244126 let userValueComponent = {
41254127 "@guid" : short . generate ( ) ,
41264128 "@type" : null ,
@@ -4136,7 +4138,7 @@ const utilsNetwork = {
41364138 }
41374139 for ( let g2 of workData ) {
41384140 if ( g2 [ '@id' ] === component [ '@id' ] ) {
4139- console . log ( "component g2:" , g2 ) ;
4141+ // console.log("component g2:", g2);
41404142 if ( g2 [ '@id' ] ) {
41414143 userValueComponent [ '@id' ] = g2 [ '@id' ]
41424144 }
@@ -4154,7 +4156,7 @@ const utilsNetwork = {
41544156 }
41554157 }
41564158 }
4157- console . log ( "userValueComponent:" , userValueComponent ) ;
4159+ // console.log("userValueComponent:", userValueComponent);
41584160 userData [ 'http://id.loc.gov/ontologies/bibframe/subject' ] [ 0 ] [ 'http://www.loc.gov/mads/rdf/v1#componentList' ] . push ( userValueComponent ) ;
41594161 }
41604162 }
@@ -4176,8 +4178,8 @@ const utilsNetwork = {
41764178
41774179 }
41784180
4179- console . log ( "lcshList:" , lcshList ) ;
4180- console . log ( "lookup:" , lookup ) ;
4181+ // console.log("lcshList:", lcshList);
4182+ // console.log("lookup:", lookup);
41814183
41824184
41834185
0 commit comments