Skip to content

Commit 7bf5f4a

Browse files
committed
pkp/pkp-lib#7505 Support for JATS files/content added
1 parent c2aa1fe commit 7bf5f4a

File tree

3 files changed

+442
-28
lines changed

3 files changed

+442
-28
lines changed

src/components/Container/WorkflowPage.vue

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script type="text/javascript">
22
import Page from './Page.vue';
33
import ContributorsListPanel from '@/components/ListPanel/contributors/ContributorsListPanel.vue';
4+
import JatsListPanel from '@/components/ListPanel/jats/SubmissionJatsListPanel.vue';
45
import Composer from '@/components/Composer/Composer.vue';
56
import Dropdown from '@/components/Dropdown/Dropdown.vue';
67
import Modal from '@/components/Modal/Modal.vue';
@@ -17,6 +18,7 @@ export default {
1718
Dropdown,
1819
Modal,
1920
PkpHeader,
21+
JatsListPanel,
2022
},
2123
extends: Page,
2224
mixins: [LocalizeSubmission, dialog, ajaxError],

src/components/ListPanel/contributors/ContributorsListPanel.vue

+28-28
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ export default {
366366
this.$emit('updated:contributors', newContributors);
367367
}
368368
this.closeFormModal();
369+
370+
this.getAndUpdatePublication();
369371
},
370372
371373
/**
@@ -374,20 +376,7 @@ export default {
374376
openPreviewModal() {
375377
this.isLoading = true;
376378
377-
$.ajax({
378-
url: this.publicationApiUrl,
379-
type: 'GET',
380-
context: this,
381-
error: this.ajaxErrorCallback,
382-
success(publication) {
383-
this.$emit('updated:publication', publication);
384-
385-
this.isModalOpenedPreview = true;
386-
},
387-
complete(r) {
388-
this.isLoading = false;
389-
},
390-
});
379+
this.getAndUpdatePublication();
391380
},
392381
393382
/**
@@ -445,6 +434,8 @@ export default {
445434
},
446435
);
447436
this.$emit('updated:contributors', newContributors);
437+
438+
this.getAndUpdatePublication();
448439
},
449440
complete(r) {
450441
this.isLoading = false;
@@ -529,6 +520,8 @@ export default {
529520
cancelOrdering() {
530521
this.$emit('updated:contributors', this.itemsBeforeReordering);
531522
523+
this.getAndUpdatePublication();
524+
532525
this.itemsBeforeReordering = null;
533526
this.isOrdering = false;
534527
},
@@ -563,20 +556,7 @@ export default {
563556
success(contributors) {
564557
this.$emit('updated:contributors', contributors);
565558
566-
// Update the publication in the background so that
567-
// any author strings are updated
568-
$.ajax({
569-
url: this.publicationApiUrl,
570-
context: this,
571-
type: 'GET',
572-
success(publication) {
573-
this.$emit('updated:publication', publication);
574-
},
575-
complete() {
576-
this.isLoading = false;
577-
this.isOrdering = false;
578-
},
579-
});
559+
this.getAndUpdatePublication();
580560
},
581561
error: this.ajaxErrorCallback,
582562
complete() {
@@ -651,6 +631,26 @@ export default {
651631
652632
this.$emit('updated:contributors', newItems);
653633
},
634+
635+
/**
636+
* Update the publication in the background so that
637+
* any author strings are updated
638+
*/
639+
getAndUpdatePublication() {
640+
$.ajax({
641+
url: this.publicationApiUrl,
642+
context: this,
643+
type: 'GET',
644+
success(publication) {
645+
this.$emit('updated:publication', publication);
646+
},
647+
complete() {
648+
this.isLoading = false;
649+
this.isOrdering = false;
650+
},
651+
});
652+
},
653+
654654
},
655655
};
656656
</script>

0 commit comments

Comments
 (0)