Skip to content

Commit

Permalink
prepare code for eventual option to run lookups on archives one day (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Sep 10, 2021
1 parent c0c2739 commit 550508a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions hyphe_frontend/app/views/prepareCrawls.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ angular.module('hyphe.preparecrawlsController', [])
,function(httpStatus, extra){ // Success callback

lookupEngine.notifySuccessful(lookups[urlObj.url], httpStatus, extra.location)
urlObj.webentity.webarchives.option_used_for_startpages = urlObj.webentity.webarchives.option + ''

}
,function(data, status, headers){ // Fail callback
Expand Down Expand Up @@ -775,6 +776,21 @@ angular.module('hyphe.preparecrawlsController', [])
$mdDialog.hide();
}

// Unused for now but could be used by calling recheckStartPages via on-md-select on the Start pages md-tab
/*
$scope.recheckStartPages = function(){
if ($scope.startpagesSummary.stage === 'loading' || webentity.webarchives.option_used_for_startpages === webentity.webarchives.option) {
return
}
var sp_index = {}
for (var idx in $scope.startpages) {
lookups[$scope.startpages[idx]] = undefined
sp_index[$scope.startpages[idx]] = webentity
}
lookupEngine.doLookups(lookups, sp_index)
}
*/

$scope.validateNewStartPages = function(){
$scope.urlsToAdd = []
$scope.urlErrors = []
Expand Down

0 comments on commit 550508a

Please sign in to comment.