Skip to content
Snippets Groups Projects
Verified Commit 8b02d65b authored by Martin Weise's avatar Martin Weise
Browse files

Fixed Persist dialog

parent b1fe78f4
No related branches found
No related tags found
2 merge requests!387Wrong model,!384Wrong model
No preview for this file type
......@@ -84,10 +84,9 @@ public class View {
@ToString.Exclude
@EqualsAndHashCode.Exclude
@org.springframework.data.annotation.Transient
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumns({
@JoinColumn(name = "vdbid", referencedColumnName = "id", insertable = false, updatable = false)
@JoinColumn(name = "vdbid", referencedColumnName = "id")
})
private Database database;
......
......@@ -1391,9 +1391,10 @@ export default {
this.loadingPublish = true
const identifierService = useIdentifierService()
identifierService.publish(this.identifier.id)
.then(() => {
.then((identifier) => {
const toast = useToastInstance()
toast.success(this.$t('success.pid.published'))
this.identifier = identifier
this.cacheStore.reloadDatabase()
this.loadingPublish = false
})
......
......@@ -331,9 +331,9 @@ CREATE TABLE IF NOT EXISTS `mdb_identifiers`
(
id VARCHAR(36) NOT NULL DEFAULT UUID(),
dbid VARCHAR(36) NOT NULL,
qid VARCHAR(36) NOT NULL,
vid VARCHAR(36) NOT NULL,
tid VARCHAR(36) NOT NULL,
qid VARCHAR(36),
vid VARCHAR(36),
tid VARCHAR(36),
publisher VARCHAR(255) NOT NULL,
language VARCHAR(2),
publication_year INT NOT NULL,
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment