Skip to content

Commit

Permalink
fix formatting INA archives permalinks
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Feb 13, 2024
1 parent 907b85e commit 68313c2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hyphe_frontend/app/components/webentitiesNetworkWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ angular.module('hyphe.webentitiesNetworkWidgetComponent', [])
var webarchives_date = status.corpus.options.webarchives_date.replace(/-/g, "") + "000000"
$scope.webarchives_permalinks = (status.hyphe.available_archives.filter(function(a){ return a.id === status.corpus.options.webarchives_option })[0].permalinks_prefix || "")
.replace("DATETIME", webarchives_date)
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1:$2:$3T$4:$5:$6"))
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1-$2-$3T$4:$5:$6"))
if ($scope.initPage) {
$scope.initPage = false
if ($scope.counts.in < 3) {
Expand Down
2 changes: 1 addition & 1 deletion hyphe_frontend/app/views/listWebentities.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ angular.module('hyphe.listwebentitiesController', [])
var webarchives_date = status.corpus.options.webarchives_date.replace(/-/g, "") + "000000"
$scope.webarchives_permalinks = (status.hyphe.available_archives.filter(function(a){ return a.id === status.corpus.options.webarchives_option })[0].permalinks_prefix || "")
.replace("DATETIME", webarchives_date)
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1:$2:$3T$4:$5:$6"))
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1-$2-$3T$4:$5:$6"))
$scope.loadingStatus = false
$scope.jobsToCome=$timeout(loadStatus, 5000);
callback && callback();
Expand Down
2 changes: 1 addition & 1 deletion hyphe_frontend/app/views/manageTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ angular.module('hyphe.manageTagsController', [])
var webarchives_date = status.corpus.options.webarchives_date.replace(/-/g, "") + "000000"
$scope.webarchives_permalinks = (status.hyphe.available_archives.filter(function(a){ return a.id === status.corpus.options.webarchives_option })[0].permalinks_prefix || "")
.replace("DATETIME", webarchives_date)
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1:$2:$3T$4:$5:$6"))
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1-$2-$3T$4:$5:$6"))
loadInWebentities()
})

Expand Down
2 changes: 1 addition & 1 deletion hyphe_frontend/app/views/monitorCrawls.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ angular.module('hyphe.monitorcrawlsController', [])
var webarchives_date = status.corpus.options.webarchives_date.replace(/-/g, "") + "000000"
$scope.webarchives_permalinks = (status.hyphe.available_archives.filter(function(a){ return a.id === status.corpus.options.webarchives_option })[0].permalinks_prefix || "")
.replace("DATETIME", webarchives_date)
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1:$2:$3T$4:$5:$6"))
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1-$2-$3T$4:$5:$6"))
updateLastCrawlJobs()
if ($location.search().last) {
$scope.focusedJobId = 'last'
Expand Down
2 changes: 1 addition & 1 deletion hyphe_frontend/app/views/prospect.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ angular.module('hyphe.prospectController', [])
var webarchives_date = status.corpus.options.webarchives_date.replace(/-/g, "") + "000000"
$scope.webarchives_permalinks = (status.hyphe.available_archives.filter(function(a){ return a.id === status.corpus.options.webarchives_option })[0].permalinks_prefix || "")
.replace("DATETIME", webarchives_date)
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1:$2:$3T$4:$5:$6"))
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1-$2-$3T$4:$5:$6"))
$scope.applySettings()
})

Expand Down
2 changes: 1 addition & 1 deletion hyphe_frontend/app/views/webentity.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ angular.module('hyphe.webentityController', [])
var webarchives_date = status.corpus.options.webarchives_date.replace(/-/g, "") + "000000"
$scope.webarchives_permalinks = (status.hyphe.available_archives.filter(function(a){ return a.id === status.corpus.options.webarchives_option })[0].permalinks_prefix || "")
.replace("DATETIME", webarchives_date)
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1:$2:$3T$4:$5:$6"))
.replace("DATE:TIME", webarchives_date.replace(/^(....)(..)(..)(..)(..)(..)$/, "$1-$2-$3T$4:$5:$6"))
$scope.hide_network = !!status.corpus.options.ignore_internal_links
api.downloadCorpusTLDs(function(){
fetchWebentity()
Expand Down

0 comments on commit 68313c2

Please sign in to comment.