Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • gitkeep
  • dev
  • master
  • Issue/1321-pidEnquiryOverhaul
  • czepiel-devops
  • Sprint/2022-01
  • Hotfix/1911-fixFormatting
  • Sprint/2021-22
  • Issue/1743-changedLink
  • Product/1107-frontendPerformance
  • Topic/1227-frontendPerformance
  • Product/1215-gitlabCleanUp
  • Sprint/2020-20
  • Product/943-NewLogo
  • Topic/1087-NewLogo
  • Sprint/2020-19
  • Product/505-pidPage
  • Topic/1061-pidPageApp
  • v1.0.0
  • v1.1.0
  • v1.1.1
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.3.0
25 results

Target

Select target project
  • Coscine / frontend / apps / PIDResolve
1 result
Select Git revision
  • gitkeep
  • dev
  • master
  • Issue/1321-pidEnquiryOverhaul
  • czepiel-devops
  • Sprint/2022-01
  • Hotfix/1911-fixFormatting
  • Sprint/2021-22
  • Issue/1743-changedLink
  • Product/1107-frontendPerformance
  • Topic/1227-frontendPerformance
  • Product/1215-gitlabCleanUp
  • Sprint/2020-20
  • Product/943-NewLogo
  • Topic/1087-NewLogo
  • Sprint/2020-19
  • Product/505-pidPage
  • Topic/1061-pidPageApp
  • v1.0.0
  • v1.1.0
  • v1.1.1
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.3.0
25 results
Show changes

Commits on Source 5

9 files
+ 2078
1058
Compare changes
  • Side-by-side
  • Inline

Files

.vscode/settings.json

0 → 100644
+12 −0
Original line number Diff line number Diff line
{
    "eslint.nodePath": "../../.yarn/sdks",
    "search.exclude": {
      "**/.yarn": true,
      "**/.pnp.*": true
    },
    "typescript.tsdk": "../../.yarn/sdks/typescript/lib",
    "typescript.enablePromptUseWorkspaceTsdk": true,
    "cSpell.words": [
      "Shacl"
    ]
}
+5 −5
Original line number Diff line number Diff line
@@ -14,17 +14,17 @@ packageExtensions:
      "typescript": "*"
  "vue-i18n@*":
    dependencies:
      "vue": "^2.6.12"
      "vue": "^2.7.10"
  "vue-material-design-icons@*":
    dependencies:
      "vue": "^2.6.12"      
      "vue": "^2.7.10"      
  "vue-router@*":
    dependencies:
      "vue": "^2.6.12"
      "vue": "^2.7.10"
  "vuex@*":
    dependencies:
      "vue": "^2.6.12"
      "vue": "^2.7.10"
  "bootstrap-vue@*":
    dependencies:
      "vue": "^2.6.12"
      "vue": "^2.7.10"
      "jquery": "*"
+12 −12
Original line number Diff line number Diff line
{
  "name": "@coscine/pidpage",
  "version": "1.2.2",
  "version": "1.3.0",
  "private": true,
  "directories": {
    "doc": "docs"
@@ -11,16 +11,14 @@
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "@coscine/api-connection": "^1.31.0",
    "@coscine/api-client": "^2.5.0",
    "@coscine/app-util": "^1.9.0",
    "@coscine/component-library": "^1.11.1",
    "@coscine/component-library": "^1.12.0",
    "@itcenter-layout/bootstrap": "^1.5.5",
    "@itcenter-layout/masterpage": "^1.3.0",
    "@types/jquery": "^3.5.2",
    "@types/vuelidate": "^0.7.13",
    "bootstrap-vue": "^2.17.3",
    "jquery": "^3.5.1",
    "vue": "^2.6.12",
    "bootstrap-vue": "^2.22.0",
    "jquery": "^3.6.1",
    "vue": "^2.7.10",
    "vue-i18n": "^8.22.0",
    "vue-material-design-icons": "^4.9.0",
    "vue-runtime-helpers": "^1.1.2",
@@ -33,7 +31,9 @@
    "@semantic-release/gitlab": "^6.0.5",
    "@semantic-release/npm": "^7.0.6",
    "@semantic-release/release-notes-generator": "^9.0.1",
    "@types/node": "^14.14.20",
    "@types/jquery": "^3.5.14",
    "@types/node": "^18.7.14",
    "@types/vuelidate": "^0.7.15",
    "@typescript-eslint/eslint-plugin": "^4.12.0",
    "@typescript-eslint/parser": "^4.12.0",
    "@vue/cli-plugin-typescript": "^4.5.7",
@@ -42,13 +42,13 @@
    "core-js": "^3.8.2",
    "eslint": "^7.17.0",
    "semantic-release": "^17.3.1",
    "typescript": "~4.4.4",
    "vue-template-compiler": "^2.6.12"
    "typescript": "^4.8.2",
    "vue-template-compiler": "^2.7.10"
  },
  "repository": {
    "type": "git",
    "url": "https://git.rwth-aachen.de/coscine/frontend/apps/pidresolve.git"
  },
  "license": "MIT",
  "packageManager": "yarn@3.1.1"
  "packageManager": "yarn@3.2.3"
}
+42 −29
Original line number Diff line number Diff line
<template>
  <div id="wrap">
    <coscine-page-header
      :coscineImage="coscineImage"
      :coscineImageBlack="coscineImageBlack"
      :coscineImage="'.' + coscineImage"
      :locale="this.$root.$i18n.locale"
      @changeLocale="changeLocale"
    />
@@ -46,6 +45,7 @@
                :state="$v.form.name.$dirty ? !$v.form.name.$error : null"
                :placeholder="$t('name')"
                required="required"
                :disabled="!validPID"
              />
            </coscine-form-group>
            <coscine-form-group :mandatory="true" labelFor="email" :label="$t('emailLabel')">
@@ -56,6 +56,7 @@
                :state="$v.form.email.$dirty ? !$v.form.email.$error : null"
                :placeholder="$t('email')"
                required="required"
                :disabled="!validPID"
              />
            </coscine-form-group>
            <coscine-form-group :mandatory="true" labelFor="message" :label="$t('messageLabel')">
@@ -68,6 +69,7 @@
                :state="$v.form.message.$dirty ? !$v.form.message.$error : null"
                :placeholder="$t('message')"
                :required="true"
                :disabled="!validPID"
              />
            </coscine-form-group>
            <b-row>
@@ -84,7 +86,7 @@
                      type="submit"
                      variant="primary"
                      id="sendButton"
                      :disabled="$v.$invalid || !$v.$anyDirty"
                      :disabled="$v.$invalid || !$v.$anyDirty || !validPID"
                      name="send"
                      @click.prevent="sendMail"
                      style="display: inline"
@@ -105,7 +107,8 @@
<script lang="ts">
import Vue from 'vue';
import { GuidUtil } from '@coscine/app-util';
import { PIDApi } from '@coscine/api-connection';
import { PidApi } from '@coscine/api-client';
import type { MessageObject } from "@coscine/api-client/dist/types/Coscine.Api.Pid";
import {
  CoscinePageHeader,
  CoscineFormGroup,
@@ -114,7 +117,7 @@ import {
import '@coscine/component-library/dist/index.css';

import { validationMixin } from 'vuelidate';
import { required, minLength, maxLength, email } from 'vuelidate/lib/validators';
import { required, maxLength, email } from 'vuelidate/lib/validators';

import coscineImagePath from './assets/logo-rwth.svg';
import linkWhitePath from './assets/link_white.svg';
@@ -126,11 +129,6 @@ import { ToastPlugin, BIconClipboard } from 'bootstrap-vue';
Vue.use(ToastPlugin);

let scriptPath = '';
let imageEnabled = false;
if (document.currentScript !== undefined) {
  scriptPath = (document.currentScript as any).src as string;
  imageEnabled = true;
}
const scriptUrl = scriptPath === '' ? '/' : scriptPath.substring(0, scriptPath.indexOf('app.js'));
const rootUrl = scriptPath.indexOf('/js') !== -1 ? scriptUrl.replace('/js', '') : scriptUrl;

@@ -179,7 +177,8 @@ export default Vue.extend({
        name: '',
        email: '',
        message: '',
      },
      } as MessageObject,
      validPID: true,
    };
  },
  methods: {
@@ -193,23 +192,20 @@ export default Vue.extend({
    copyPID() {
      navigator.clipboard.writeText(this.form.pid);
    },
    sendMail() {
      PIDApi.sendMailToOwner(
        this.form,
        (response: any) => {
    async sendMail() {
      try {
        await PidApi.pidSendMailToOwner(this.form);
        this.makeToast(
          this.$t('toastMessageSuccessBody').toString(),
          this.$t('toastMessageSuccessHeader').toString(),
        );
        this.resetForm();
        },
        (error: any) => {
      } catch {
        this.makeToast(
          this.$t('toastMessageFailureBody').toString(),
          this.$t('toastMessageFailureHeader').toString(),
        );
        },
      );
      }
    },
    makeToast(text: string = 'Message', givenTitle: string = 'Title') {
      this.$bvToast.toast(text, {
@@ -226,9 +222,26 @@ export default Vue.extend({
      this.$v.$reset();
    },
  },
  created() {
  async created() {
    this.form.guid = GuidUtil.getPIDSuffix();
    this.form.pid = GuidUtil.getPID();
    try {
      const response = await PidApi.pidIsValid(this.form.pid);
    } catch (e) {
      if (e.response.status === 403) {
        this.makeToast(
          this.$t('toastMessageDeletedBody').toString(),
          this.$t('toastMessageDeletedHeader').toString(),
        );
        this.validPID = false;
      } else if (e.response.status !== 200) {
        this.makeToast(
          this.$t('toastMessageNotValidBody').toString(),
          this.$t('toastMessageNotValidHeader').toString(),
        );
        this.validPID = false;
      }
    }
  },
});
</script>
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ export default {

    pidInformationHeadline: 'PID Informationen:',

    pidInformationDescription: 'Diese PID gehört zu Daten in einer CoScInE-Ressource. Die referenzierten Daten sind Teil eines Forschungsprojekts in CoScInE',
    pidInformationDescription: 'Diese PID gehört zu Daten in einer Coscine-Ressource. Die referenzierten Daten sind Teil eines Forschungsprojekts in Coscine',

    pid: 'Persistent Identifier (PID)',
    pidLabel: 'Persistent Identifier (PID):',
@@ -17,7 +17,7 @@ export default {
    pidToClipboard: 'PID in Zwischenablage kopiert.',

    contactHeadline: 'Kontakt zu PID-Besitzer aufnehmen:',
    contactDescription: 'In den meisten Fällen sind die referenzierten Daten nicht öffentlich zugänglich. Sie können sich daher an den Besitzer der Daten wenden und um Zugang bitten. Der Besitzer dieser Ressource wird dann von CoScInE kontaktiert. Die Informationen, die Sie im Formular angeben, werden so an den Besitzer weitergeleitet.',
    contactDescription: 'In den meisten Fällen sind die referenzierten Daten nicht öffentlich zugänglich. Sie können sich daher an den Besitzer der Daten wenden und um Zugang bitten. Der Besitzer dieser Ressource wird dann von Coscine kontaktiert. Die Informationen, die Sie im Formular angeben, werden so an den Besitzer weitergeleitet.',

    name: 'Ihr Name',
    nameLabel: 'Ihr Name:',
@@ -41,5 +41,11 @@ export default {
    toastMessageFailureHeader: 'Fehler beim Senden',
    toastMessageFailureBody:  'Die Nachricht konnte nicht gesendet werden. Bitte versuchen Sie es erneut. Falls der Fehler wieder Auftritt, wenden Sie sich bitte an servicedesk@itc.rwth-aachen.de',

    toastMessageNotValidHeader: 'Keine valide PID',
    toastMessageNotValidBody: 'Die erhaltene PID ist nicht valide.',

    toastMessageDeletedHeader: 'Projekt/Ressource de PID gelöscht',
    toastMessageDeletedBody: 'Das/Die zugewiesene Projekt/Ressource dieser PID wurde gelöscht.',

    character: 'Zeichen',
};
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ export default {

    pidInformationHeadline: 'PID Information:',

    pidInformationDescription: 'This PID belongs to data stored in a CoScInE resource. The data referenced by this PID is part of a research project in CoScInE',
    pidInformationDescription: 'This PID belongs to data stored in a Coscine resource. The data referenced by this PID is part of a research project in Coscine',

    pid: 'Persistent Identifier (PID)',
    pidLabel: 'Persistent Identifier (PID):',
@@ -41,5 +41,11 @@ export default {
    toastMessageFailureHeader: 'Failed to send message',
    toastMessageFailureBody: 'The message could not be sent. Please try again. If the problem persists contact servicedesk@itc.rwth-aachen.de',

    toastMessageNotValidHeader: 'Not a valid PID',
    toastMessageNotValidBody: 'The received PID is not valid.',

    toastMessageDeletedHeader: 'Project/Resource of PID deleted',
    toastMessageDeletedBody: 'The assigned Project/Resource of this PID has been deleted.',

    character: 'Character',
};
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@ declare module '*.vue' {
  export default Vue;
}

declare module '@coscine/api-connection';
declare module '@coscine/app-util';
declare module '@coscine/component-library';

+4 −1
Original line number Diff line number Diff line
@@ -39,5 +39,8 @@
  ],
  "exclude": [
    "node_modules"
  ]
  ],
  "vueCompilerOptions": {
    "target": 2.7
  }
}
+1988 −1007

File changed.

Preview size limit exceeded, changes collapsed.