Skip to content
Snippets Groups Projects
Select Git revision
  • 9acf99f99ab34fd0d915985404f6b2a90477e895
  • master default protected
  • dev protected
  • release-1.10 protected
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • release-1.9 protected
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • 518-spark-doesn-t-map-the-headers-correct
  • 485-fixity-checks
  • 530-various-schema-problems-with-subsets
  • release-1.7 protected
  • fix/auth-service
  • fix/pid-list
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
  • v1.9.2 protected
  • v1.9.2-rc0 protected
  • v1.9.1 protected
41 results

extra.js

Blame
  • Martin Weise's avatar
    Martin Weise authored
    9d4c8df6
    History
    extra.js 575 B
    function getVersion() {
        const segments = location.pathname.split('/');
        if (segments.length > 4 && (segments[3].match(/[0-9]\.[0-9]\.[0-9]/g) || segments[3] == 'latest')) {
            console.debug('version', segments[3]);
            return segments[3];
        }
        console.debug('default version', '__APPVERSION__');
        return '__APPVERSION__';
    }
    function switchVersion(value) {
        if (!value) { return }
        this.location.href = location.protocol + '//' + location.host + '/infrastructures/dbrepo/' + value + '/';
    }
    document.getElementById("version").value = getVersion();