mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2026-01-07 11:31:57 +00:00
Compare commits
21 Commits
v3.4.0
...
v3.7.1.dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1455cb8670 | ||
|
|
0bb5885a95 | ||
|
|
dbfda0cc00 | ||
|
|
e73fc3633d | ||
|
|
aa2c3112df | ||
|
|
62d23f104c | ||
|
|
07d7e6fa0e | ||
|
|
27f1501b31 | ||
|
|
6299da5ca2 | ||
|
|
9ec241684d | ||
|
|
c73571c2b7 | ||
|
|
db52ca8aad | ||
|
|
21b67cb3e0 | ||
|
|
f22e62dfb0 | ||
|
|
8eb5152963 | ||
|
|
a8a4aab191 | ||
|
|
2815c35590 | ||
|
|
fc13dc8228 | ||
|
|
2290dbe3cb | ||
|
|
15f4d5fce3 | ||
|
|
b76f27c037 |
75
CHANGES.rst
75
CHANGES.rst
@@ -7,6 +7,81 @@
|
|||||||
|
|
||||||
Changes
|
Changes
|
||||||
=======
|
=======
|
||||||
|
Version 3.7.1.dev2 (released 2022-01-13)
|
||||||
|
|
||||||
|
- modify: override record deposit template and increase upload size #256
|
||||||
|
|
||||||
|
Version 3.7.0 (released 2021-12-07)
|
||||||
|
|
||||||
|
- dep: bump config module #252
|
||||||
|
- docs: adjust sphinx to flask2 #251
|
||||||
|
- update register and login view #247
|
||||||
|
|
||||||
|
Version 3.6.1 (released 2021-09-01)
|
||||||
|
|
||||||
|
- fix: add font locally and remove google dependency #242
|
||||||
|
- fix: css for ui divider #243
|
||||||
|
|
||||||
|
Version 3.6.0 (released 2021-05-08)
|
||||||
|
|
||||||
|
- config: removes i18n config #239
|
||||||
|
- revert: removes override for details,deposit page #238
|
||||||
|
- styling: changes deposit form segment color #234
|
||||||
|
- refactor: views & deposit override #235
|
||||||
|
- login_user: extended user login template #230
|
||||||
|
|
||||||
|
Version 3.4.1 (released 2021-06-04)
|
||||||
|
|
||||||
|
- global: route blueprint migrated to config-tugraz #228
|
||||||
|
|
||||||
|
Version 3.4.0 (released 2021-06-01)
|
||||||
|
|
||||||
|
- documents: adds reference guide version 2 #225
|
||||||
|
- ui: change title to data-tooltip #224
|
||||||
|
- global: migrate inveniordm v4 #226
|
||||||
|
|
||||||
|
Version 3.0.3 (released 2021-06-01)
|
||||||
|
|
||||||
|
- bugfix: removes overrides item #222
|
||||||
|
|
||||||
|
Version 3.0.2 (released 2021-05-17)
|
||||||
|
|
||||||
|
- feature: adds credits to footer #217
|
||||||
|
- ui: adapt color badges #220
|
||||||
|
- badges(ui): adds tug theme badge colors #221
|
||||||
|
|
||||||
|
Version 3.0.1 (released 2021-05-07)
|
||||||
|
|
||||||
|
- override depsit & edit #210
|
||||||
|
- ui: display access badge #212
|
||||||
|
- documents: adds missing documents #216
|
||||||
|
|
||||||
|
Version 3.0.0 (released 2021-04-30)
|
||||||
|
|
||||||
|
- Migrated to invenioRDM v3 #209
|
||||||
|
|
||||||
|
Version 2.0.9 (released 2021-04-15)
|
||||||
|
|
||||||
|
- bugfix: created field using old metadata #196
|
||||||
|
- fix: blur link on click, clickable login with TUG button #194
|
||||||
|
|
||||||
|
Version 2.0.6 (released 2021-04-8)
|
||||||
|
|
||||||
|
- bugfixes: modified config vars #191
|
||||||
|
|
||||||
|
Version 1.9.0 (released 2021-03-11)
|
||||||
|
|
||||||
|
- DOI minting #161
|
||||||
|
- Zammad contact Form #156
|
||||||
|
|
||||||
|
Version 1.0.3 (released 2020-07-10)
|
||||||
|
|
||||||
|
- firefox compatibility: centering the menu underline #40
|
||||||
|
- adds font-family #50
|
||||||
|
|
||||||
|
Version 1.0.1 (released 2020-07-08)
|
||||||
|
|
||||||
|
- Login page modified #48
|
||||||
|
|
||||||
Version 0.1.0 (released TBD)
|
Version 0.1.0 (released TBD)
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ recursive-include invenio_theme_tugraz *.svg
|
|||||||
recursive-include invenio_theme_tugraz *.less
|
recursive-include invenio_theme_tugraz *.less
|
||||||
recursive-include invenio_theme_tugraz *.ico
|
recursive-include invenio_theme_tugraz *.ico
|
||||||
recursive-include invenio_theme_tugraz *.pdf
|
recursive-include invenio_theme_tugraz *.pdf
|
||||||
|
recursive-include invenio_theme_tugraz *.ttf
|
||||||
|
recursive-include invenio_theme_tugraz *.txt
|
||||||
|
|
||||||
recursive-include tests *.py
|
recursive-include tests *.py
|
||||||
recursive-include invenio_theme_tugraz *.jpg
|
recursive-include invenio_theme_tugraz *.jpg
|
||||||
recursive-include invenio_theme_tugraz *.gitkeep
|
recursive-include invenio_theme_tugraz *.gitkeep
|
||||||
|
|||||||
@@ -328,6 +328,8 @@ texinfo_documents = [
|
|||||||
# Example configuration for intersphinx: refer to the Python standard library.
|
# Example configuration for intersphinx: refer to the Python standard library.
|
||||||
intersphinx_mapping = {
|
intersphinx_mapping = {
|
||||||
"python": ("https://docs.python.org/", None),
|
"python": ("https://docs.python.org/", None),
|
||||||
|
"flask": ("https://flask.palletsprojects.com/", None),
|
||||||
|
"werkzeug": ("https://werkzeug.palletsprojects.com/", None),
|
||||||
# TODO: Configure external documentation references, eg:
|
# TODO: Configure external documentation references, eg:
|
||||||
# 'Flask-Admin': ('https://flask-admin.readthedocs.io/en/latest/', None),
|
# 'Flask-Admin': ('https://flask-admin.readthedocs.io/en/latest/', None),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// This file is part of InvenioRDM
|
// This file is part of InvenioRDM
|
||||||
// Copyright (C) 2020 CERN.
|
// Copyright (C) 2020 CERN.
|
||||||
// Copyright (C) 2020 Northwestern University.
|
// Copyright (C) 2020 Northwestern University.
|
||||||
// Copyright (C) 2021 Graz University of Technology.
|
// Copyright (C) 2022 Graz University of Technology.
|
||||||
//
|
//
|
||||||
// Invenio App RDM is free software; you can redistribute it and/or modify it
|
// Invenio App RDM is free software; you can redistribute it and/or modify it
|
||||||
// under the terms of the MIT License; see LICENSE file for more details.
|
// under the terms of the MIT License; see LICENSE file for more details.
|
||||||
@@ -20,6 +20,7 @@ import {
|
|||||||
FormFeedback,
|
FormFeedback,
|
||||||
IdentifiersField,
|
IdentifiersField,
|
||||||
LanguagesField,
|
LanguagesField,
|
||||||
|
SubjectsField,
|
||||||
LicenseField,
|
LicenseField,
|
||||||
PIDField,
|
PIDField,
|
||||||
PreviewButton,
|
PreviewButton,
|
||||||
@@ -34,6 +35,7 @@ import {
|
|||||||
} from "react-invenio-deposit";
|
} from "react-invenio-deposit";
|
||||||
import { AccordionField } from "react-invenio-forms";
|
import { AccordionField } from "react-invenio-forms";
|
||||||
import { Card, Container, Divider, Grid, Ref, Sticky } from "semantic-ui-react";
|
import { Card, Container, Divider, Grid, Ref, Sticky } from "semantic-ui-react";
|
||||||
|
import { i18next } from "@translations/invenio_app_rdm/i18next";
|
||||||
|
|
||||||
export class RDMDepositForm extends Component {
|
export class RDMDepositForm extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@@ -51,61 +53,20 @@ export class RDMDepositForm extends Component {
|
|||||||
metadata: {
|
metadata: {
|
||||||
...this.config.vocabularies,
|
...this.config.vocabularies,
|
||||||
|
|
||||||
titles: {
|
|
||||||
...this.config.vocabularies.titles,
|
|
||||||
},
|
|
||||||
|
|
||||||
descriptions: {
|
|
||||||
type: [
|
|
||||||
{ text: "Abstract", value: "abstract" },
|
|
||||||
{ text: "Methods", value: "methods" },
|
|
||||||
{ text: "Series Information", value: "seriesinformation" },
|
|
||||||
{ text: "Table of Contents", value: "tableofcontents" },
|
|
||||||
{ text: "Technical Info", value: "technicalinfo" },
|
|
||||||
{ text: "Other", value: "other" },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
|
|
||||||
creators: {
|
creators: {
|
||||||
|
...this.config.vocabularies.creators,
|
||||||
type: [
|
type: [
|
||||||
{ text: "Person", value: "personal" },
|
{ text: "Person", value: "personal" },
|
||||||
{ text: "Organization", value: "organizational" },
|
{ text: "Organization", value: "organizational" },
|
||||||
],
|
],
|
||||||
role: [
|
|
||||||
{ text: "Editor", value: "editor" },
|
|
||||||
{ text: "Data Curator", value: "datacurator" },
|
|
||||||
{ text: "Data Manager", value: "datamanager" },
|
|
||||||
{ text: "Project Manager", value: "projectmanager" },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
|
|
||||||
contributors: {
|
contributors: {
|
||||||
|
...this.config.vocabularies.creators,
|
||||||
type: [
|
type: [
|
||||||
{ text: "Person", value: "personal" },
|
{ text: "Person", value: "personal" },
|
||||||
{ text: "Organization", value: "organizational" },
|
{ text: "Organization", value: "organizational" },
|
||||||
],
|
],
|
||||||
role: [
|
|
||||||
{ text: "Editor", value: "editor" },
|
|
||||||
{ text: "Data Curator", value: "datacurator" },
|
|
||||||
{ text: "Data Manager", value: "datamanager" },
|
|
||||||
{ text: "Project Manager", value: "projectmanager" },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
|
|
||||||
dates: {
|
|
||||||
type: [
|
|
||||||
{ text: "Accepted", value: "accepted" },
|
|
||||||
{ text: "Available", value: "available" },
|
|
||||||
{ text: "Copyrighted", value: "copyrighted" },
|
|
||||||
{ text: "Collected", value: "collected" },
|
|
||||||
{ text: "Created", value: "created" },
|
|
||||||
{ text: "Issued", value: "issued" },
|
|
||||||
{ text: "Submitted", value: "submitted" },
|
|
||||||
{ text: "Updated", value: "updated" },
|
|
||||||
{ text: "Valid", value: "valid" },
|
|
||||||
{ text: "Withdrawn", value: "withdrawn" },
|
|
||||||
{ text: "Other", value: "other" },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// TODO: Replace with an API backend
|
// TODO: Replace with an API backend
|
||||||
@@ -150,98 +111,8 @@ export class RDMDepositForm extends Component {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
identifiers: {
|
identifiers: {
|
||||||
resource_type: this.config.vocabularies.resource_type,
|
...this.config.vocabularies.identifiers,
|
||||||
scheme: [
|
|
||||||
{ text: "ARK", value: "ark" },
|
|
||||||
{ text: "ARXIV", value: "arxiv" },
|
|
||||||
{ text: "BIBCODE", value: "bibcode" },
|
|
||||||
{ text: "DOI", value: "doi" },
|
|
||||||
{ text: "EAN13", value: "ean13" },
|
|
||||||
{ text: "EISSN", value: "eissn" },
|
|
||||||
{ text: "HANDLE", value: "handle" },
|
|
||||||
{ text: "IGSN", value: "igsn" },
|
|
||||||
{ text: "ISBN", value: "isbn" },
|
|
||||||
{ text: "ISSN", value: "issn" },
|
|
||||||
{ text: "ISTC", value: "istc" },
|
|
||||||
{ text: "LISSN", value: "lissn" },
|
|
||||||
{ text: "LSID", value: "lsid" },
|
|
||||||
{ text: "PMID", value: "pmid" },
|
|
||||||
{ text: "PURL", value: "purl" },
|
|
||||||
{ text: "UPC", value: "upc" },
|
|
||||||
{ text: "URL", value: "url" },
|
|
||||||
{ text: "URN", value: "urn" },
|
|
||||||
{ text: "W3ID", value: "w3id" },
|
|
||||||
],
|
|
||||||
relations: [
|
|
||||||
{ text: "Is cited by", value: "iscitedby" },
|
|
||||||
{ text: "Cites", value: "cites" },
|
|
||||||
{ text: "Is supplement to", value: "issupplementto" },
|
|
||||||
{ text: "Is supplemented by", value: "issupplementedby" },
|
|
||||||
{ text: "Is continued by", value: "iscontinuedby" },
|
|
||||||
{ text: "Continues", value: "continues" },
|
|
||||||
{ text: "Is described by", value: "isdescribedby" },
|
|
||||||
{ text: "Describes", value: "describes" },
|
|
||||||
{ text: "Has metadata", value: "hasmetadata" },
|
|
||||||
{ text: "Is metadata for", value: "ismetadatafor" },
|
|
||||||
{ text: "Has version", value: "hasversion" },
|
|
||||||
{ text: "Is version of", value: "isversionof" },
|
|
||||||
{ text: "Is new version of", value: "isnewversionof" },
|
|
||||||
{ text: "Is previous version of", value: "ispreviousversionof" },
|
|
||||||
{ text: "Is part of", value: "ispartof" },
|
|
||||||
{ text: "Has part", value: "haspart" },
|
|
||||||
{ text: "Is referenced by", value: "isreferencedby" },
|
|
||||||
{ text: "References", value: "references" },
|
|
||||||
{ text: "Is documented by", value: "isdocumentedby" },
|
|
||||||
{ text: "Documents", value: "documents" },
|
|
||||||
{ text: "Is compiled by", value: "iscompiledby" },
|
|
||||||
{ text: "Compiles", value: "compiles" },
|
|
||||||
{ text: "Is variant form of", value: "isvariantformof" },
|
|
||||||
{ text: "Is original form of", value: "isoriginalformof" },
|
|
||||||
{ text: "Is identical to", value: "isidenticalto" },
|
|
||||||
{ text: "Is reviewed by", value: "isreviewedby" },
|
|
||||||
{ text: "Reviews", value: "reviews" },
|
|
||||||
{ text: "Is derived from", value: "isderivedfrom" },
|
|
||||||
{ text: "Is source of", value: "issourceof" },
|
|
||||||
{ text: "Is required by", value: "isrequiredby" },
|
|
||||||
{ text: "Requires", value: "requires" },
|
|
||||||
{ text: "Is obsoleted by", value: "isobsoletedby" },
|
|
||||||
{ text: "Obsoletes", value: "obsoletes" },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
subjects: {
|
|
||||||
options: [
|
|
||||||
{
|
|
||||||
text: "Deep Learning",
|
|
||||||
value: {
|
|
||||||
subject: "Deep Learning",
|
|
||||||
scheme: "user",
|
|
||||||
identifier: "U1",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: "MeSH: Cognitive Neuroscience",
|
|
||||||
value: {
|
|
||||||
subject: "Cognitive Neuroscience",
|
|
||||||
scheme: "mesh",
|
|
||||||
identifier: "D000066494",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: "FAST: Glucagonoma",
|
|
||||||
value: {
|
|
||||||
subject: "Glucagonoma",
|
|
||||||
scheme: "fast",
|
|
||||||
identifier: "943672",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
limitToOptions: [
|
|
||||||
{ text: "All", value: "all" },
|
|
||||||
{ text: "MeSH", value: "mesh" },
|
|
||||||
{ text: "FAST", value: "fast" },
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -280,7 +151,7 @@ export class RDMDepositForm extends Component {
|
|||||||
<AccordionField
|
<AccordionField
|
||||||
fieldPath=""
|
fieldPath=""
|
||||||
active={true}
|
active={true}
|
||||||
label={"Files"}
|
label={i18next.t("Files")}
|
||||||
ui={this.accordionStyle}
|
ui={this.accordionStyle}
|
||||||
>
|
>
|
||||||
{this.noFiles && this.props.record.is_published && (
|
{this.noFiles && this.props.record.is_published && (
|
||||||
@@ -291,14 +162,14 @@ export class RDMDepositForm extends Component {
|
|||||||
cursor: "default !important",
|
cursor: "default !important",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<em>The record has no files.</em>
|
<em>{i18next.t("The record has no files.")}</em>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
<FileUploader
|
<FileUploader
|
||||||
isDraftRecord={!this.props.record.is_published}
|
isDraftRecord={!this.props.record.is_published}
|
||||||
quota={{
|
quota={{
|
||||||
maxFiles: 100,
|
maxFiles: 100,
|
||||||
maxStorage: 10 ** 10,
|
maxStorage: 10 ** 11,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</AccordionField>
|
</AccordionField>
|
||||||
@@ -306,16 +177,18 @@ export class RDMDepositForm extends Component {
|
|||||||
<AccordionField
|
<AccordionField
|
||||||
fieldPath=""
|
fieldPath=""
|
||||||
active={true}
|
active={true}
|
||||||
label={"Basic information"}
|
label={i18next.t("Basic information")}
|
||||||
ui={this.accordionStyle}
|
ui={this.accordionStyle}
|
||||||
>
|
>
|
||||||
{this.config.pids.map((pid) => (
|
{this.config.pids.map((pid) => (
|
||||||
<Fragment key={pid.scheme}>
|
<Fragment key={pid.scheme}>
|
||||||
<PIDField
|
<PIDField
|
||||||
|
btnLabelDiscardPID={pid.btn_label_discard_pid}
|
||||||
btnLabelGetPID={pid.btn_label_get_pid}
|
btnLabelGetPID={pid.btn_label_get_pid}
|
||||||
canBeManaged={pid.can_be_managed}
|
canBeManaged={pid.can_be_managed}
|
||||||
canBeUnmanaged={pid.can_be_unmanaged}
|
canBeUnmanaged={pid.can_be_unmanaged}
|
||||||
fieldPath={`pids.${pid.scheme}`}
|
fieldPath={`pids.${pid.scheme}`}
|
||||||
|
fieldLabel={pid.field_label}
|
||||||
isEditingPublishedRecord={
|
isEditingPublishedRecord={
|
||||||
this.props.record.is_published === true // is_published is `null` at first upload
|
this.props.record.is_published === true // is_published is `null` at first upload
|
||||||
}
|
}
|
||||||
@@ -324,6 +197,7 @@ export class RDMDepositForm extends Component {
|
|||||||
pidPlaceholder={pid.pid_placeholder}
|
pidPlaceholder={pid.pid_placeholder}
|
||||||
pidType={pid.scheme}
|
pidType={pid.scheme}
|
||||||
unmanagedHelpText={pid.unmanaged_help_text}
|
unmanagedHelpText={pid.unmanaged_help_text}
|
||||||
|
required
|
||||||
/>
|
/>
|
||||||
<Divider />
|
<Divider />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
@@ -335,11 +209,12 @@ export class RDMDepositForm extends Component {
|
|||||||
/>
|
/>
|
||||||
<TitlesField
|
<TitlesField
|
||||||
options={this.vocabularies.metadata.titles}
|
options={this.vocabularies.metadata.titles}
|
||||||
|
recordUI={this.props.record.ui}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<PublicationDateField required />
|
<PublicationDateField required />
|
||||||
<CreatibutorsField
|
<CreatibutorsField
|
||||||
label={"Creators"}
|
label={i18next.t("Creators")}
|
||||||
labelIcon={"user"}
|
labelIcon={"user"}
|
||||||
fieldPath={"metadata.creators"}
|
fieldPath={"metadata.creators"}
|
||||||
roleOptions={this.vocabularies.metadata.creators.role}
|
roleOptions={this.vocabularies.metadata.creators.role}
|
||||||
@@ -348,6 +223,7 @@ export class RDMDepositForm extends Component {
|
|||||||
/>
|
/>
|
||||||
<DescriptionsField
|
<DescriptionsField
|
||||||
options={this.vocabularies.metadata.descriptions}
|
options={this.vocabularies.metadata.descriptions}
|
||||||
|
recordUI={_get(this.props.record, "ui", null)}
|
||||||
editorConfig={{
|
editorConfig={{
|
||||||
removePlugins: [
|
removePlugins: [
|
||||||
"Image",
|
"Image",
|
||||||
@@ -392,12 +268,12 @@ export class RDMDepositForm extends Component {
|
|||||||
<AccordionField
|
<AccordionField
|
||||||
fieldPath=""
|
fieldPath=""
|
||||||
active={true}
|
active={true}
|
||||||
label={"Recommended information"}
|
label={i18next.t("Recommended information")}
|
||||||
ui={this.accordionStyle}
|
ui={this.accordionStyle}
|
||||||
>
|
>
|
||||||
<CreatibutorsField
|
<CreatibutorsField
|
||||||
addButtonLabel={"Add contributor"}
|
addButtonLabel={i18next.t("Add contributor")}
|
||||||
label={"Contributors"}
|
label={i18next.t("Contributors")}
|
||||||
labelIcon={"user plus"}
|
labelIcon={"user plus"}
|
||||||
fieldPath={"metadata.contributors"}
|
fieldPath={"metadata.contributors"}
|
||||||
roleOptions={this.vocabularies.metadata.contributors.role}
|
roleOptions={this.vocabularies.metadata.contributors.role}
|
||||||
@@ -407,22 +283,16 @@ export class RDMDepositForm extends Component {
|
|||||||
editLabel: "Edit contributor",
|
editLabel: "Edit contributor",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/**TODO: uncomment to use Subjects*/}
|
<SubjectsField
|
||||||
{/* <SubjectsField
|
initialOptions={_get(
|
||||||
initialOptions={_get(
|
this.props.record,
|
||||||
this.props.record,
|
"ui.subjects",
|
||||||
"metadata.subjects",
|
null
|
||||||
null
|
)}
|
||||||
)}
|
limitToOptions={
|
||||||
limitToOptions={
|
this.vocabularies.metadata.subjects.limit_to
|
||||||
this.vocabularies.metadata.subjects.limitToOptions
|
}
|
||||||
}
|
/>
|
||||||
/>
|
|
||||||
<ComingSoonField
|
|
||||||
fieldPath="metadata.subjects"
|
|
||||||
label="Subjects"
|
|
||||||
labelIcon="tag"
|
|
||||||
/> */}
|
|
||||||
|
|
||||||
<LanguagesField
|
<LanguagesField
|
||||||
initialOptions={_get(
|
initialOptions={_get(
|
||||||
@@ -449,7 +319,7 @@ export class RDMDepositForm extends Component {
|
|||||||
active={true}
|
active={true}
|
||||||
label={"Funding"}
|
label={"Funding"}
|
||||||
ui={this.accordionStyle}
|
ui={this.accordionStyle}
|
||||||
>
|
>
|
||||||
<FundingField options={this.vocabularies.metadata.funding} />
|
<FundingField options={this.vocabularies.metadata.funding} />
|
||||||
<ComingSoonField
|
<ComingSoonField
|
||||||
fieldPath="metadata.funding"
|
fieldPath="metadata.funding"
|
||||||
@@ -458,17 +328,17 @@ export class RDMDepositForm extends Component {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
</AccordionField> */}
|
</AccordionField> */}
|
||||||
|
|
||||||
<AccordionField
|
<AccordionField
|
||||||
fieldPath=""
|
fieldPath=""
|
||||||
active={true}
|
active={true}
|
||||||
label={"Alternate identifiers"}
|
label={i18next.t("Alternate identifiers")}
|
||||||
ui={this.accordionStyle}
|
ui={this.accordionStyle}
|
||||||
>
|
>
|
||||||
<IdentifiersField
|
<IdentifiersField
|
||||||
fieldPath="metadata.identifiers"
|
fieldPath="metadata.identifiers"
|
||||||
label="Alternate identifier(s)"
|
label={i18next.t("Alternate identifier(s)")}
|
||||||
labelIcon="barcode"
|
labelIcon="barcode"
|
||||||
schemeOptions={
|
schemeOptions={
|
||||||
this.vocabularies.metadata.identifiers.scheme
|
this.vocabularies.metadata.identifiers.scheme
|
||||||
@@ -479,7 +349,7 @@ export class RDMDepositForm extends Component {
|
|||||||
<AccordionField
|
<AccordionField
|
||||||
fieldPath=""
|
fieldPath=""
|
||||||
active={true}
|
active={true}
|
||||||
label={"Related works"}
|
label={i18next.t("Related works")}
|
||||||
ui={this.accordionStyle}
|
ui={this.accordionStyle}
|
||||||
>
|
>
|
||||||
<RelatedWorksField
|
<RelatedWorksField
|
||||||
@@ -513,7 +383,7 @@ export class RDMDepositForm extends Component {
|
|||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<AccessRightField
|
<AccessRightField
|
||||||
label={"Visibility"}
|
label={i18next.t("Visibility")}
|
||||||
labelIcon={"shield"}
|
labelIcon={"shield"}
|
||||||
/>
|
/>
|
||||||
</Sticky>
|
</Sticky>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import ReactDOM from "react-dom";
|
import ReactDOM from "react-dom";
|
||||||
import "semantic-ui-css/semantic.min.css";
|
import "semantic-ui-css/semantic.min.css";
|
||||||
|
import { i18next } from "@translations/invenio_app_rdm/i18next";
|
||||||
import { getInputFromDOM } from "react-invenio-deposit";
|
import { getInputFromDOM } from "react-invenio-deposit";
|
||||||
import { RDMDepositForm } from "./RDMDepositForm";
|
import { RDMDepositForm } from "./RDMDepositForm";
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2021 Graz University of Technology.
|
||||||
|
*
|
||||||
|
* invenio-theme-tugraz is free software; you can redistribute it and/or modify it
|
||||||
|
* under the terms of the MIT License; see LICENSE file for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// deposit form segment styling
|
||||||
|
.ui.inverted.brand.segment {
|
||||||
|
background-color: @greyLight !important;
|
||||||
|
color: @tugrazBlack !important;
|
||||||
|
label {
|
||||||
|
color: @tugrazBlack;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
Copyright 2010, 2012, 2014 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’.
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------
|
||||||
|
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
Binary file not shown.
Binary file not shown.
@@ -187,6 +187,7 @@ svg:not(:root) {
|
|||||||
.main-menu-underline-line {
|
.main-menu-underline-line {
|
||||||
border: 2px solid @greyLight !important;
|
border: 2px solid @greyLight !important;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
background-color: @greyLight;
|
||||||
}
|
}
|
||||||
|
|
||||||
#margin-divider{
|
#margin-divider{
|
||||||
|
|||||||
@@ -77,12 +77,25 @@ pre {
|
|||||||
background-color: @tugrazRed;
|
background-color: @tugrazRed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.button:hover,
|
/***
|
||||||
.ui.search.button:hover {
|
* accordion title
|
||||||
background-color: @primaryButtonHoverBackground;
|
***/
|
||||||
|
.ui.accordion.styled {
|
||||||
|
.title,
|
||||||
|
.title.active {
|
||||||
|
background-color: @greyLight;
|
||||||
|
color: rgba(0, 0, 0, 0.6);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.button:hover {
|
/***
|
||||||
|
* buttons hover and accordion hover
|
||||||
|
***/
|
||||||
|
.ui.button:hover,
|
||||||
|
.ui.search.button:hover,
|
||||||
|
.ui.accordion.styled .title:hover,
|
||||||
|
.ui.accordion.styled .accordion .title:hover {
|
||||||
|
background-color: @primaryButtonHoverBackground;
|
||||||
color: @primaryButton;
|
color: @primaryButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,6 +110,7 @@ pre {
|
|||||||
.ui.input > input, /* it seams redundant but it is not */
|
.ui.input > input, /* it seams redundant but it is not */
|
||||||
.ui.segment,
|
.ui.segment,
|
||||||
.ui.selection.dropdown,
|
.ui.selection.dropdown,
|
||||||
|
.ui.accordion.styled,
|
||||||
.ui.card,
|
.ui.card,
|
||||||
.ui.cards > .card,
|
.ui.cards > .card,
|
||||||
.ui.basic.button, .ui.basic.buttons .button,
|
.ui.basic.button, .ui.basic.buttons .button,
|
||||||
@@ -138,3 +152,17 @@ pre {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Source Sans Pro";
|
||||||
|
src: url('./fonts/SourceSansPro/SourceSansPro-Regular.ttf') format('truetype');
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Source Sans Pro";
|
||||||
|
src: url('./fonts/SourceSansPro/SourceSansPro-Italic.ttf') format('truetype');
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|||||||
@@ -14,8 +14,7 @@
|
|||||||
@import "search";
|
@import "search";
|
||||||
@import "macros";
|
@import "macros";
|
||||||
@import "login";
|
@import "login";
|
||||||
@import (css)
|
@import "deposit";
|
||||||
url("https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap");
|
|
||||||
|
|
||||||
/***
|
/***
|
||||||
**TODO:
|
**TODO:
|
||||||
|
|||||||
@@ -17,16 +17,20 @@
|
|||||||
|
|
||||||
// badge colors, accessibility
|
// badge colors, accessibility
|
||||||
@accessRight : #e9711c;
|
@accessRight : #e9711c;
|
||||||
@accessRightOpen : #e9711c;
|
@accessRightOpen : @accessRight;
|
||||||
@accessRightRestricted: #fbbd08;
|
@accessRightRestricted: #fbbd08;
|
||||||
@accessRightEmbargoed : #db2828;
|
@accessRightEmbargoed : #db2828;
|
||||||
@accessRightClosed : #db2828;
|
@accessRightClosed : @accessRightEmbargoed;
|
||||||
@accessRightMetadata : #2185D0;
|
@accessRightMetadata : #2185D0;
|
||||||
|
|
||||||
// primary colors TU Graz
|
// primary colors TU Graz
|
||||||
@tugrazBlack: #231f20;
|
@tugrazBlack: #231f20;
|
||||||
@tugrazRed : #e4154b;
|
@tugrazRed : #e4154b;
|
||||||
|
|
||||||
|
// general
|
||||||
|
@primaryBackground: #fff;
|
||||||
|
@primaryText : #000;
|
||||||
|
|
||||||
|
|
||||||
// accent colors
|
// accent colors
|
||||||
@greyDark : #777;
|
@greyDark : #777;
|
||||||
@@ -36,24 +40,19 @@
|
|||||||
|
|
||||||
|
|
||||||
// link and button colors
|
// link and button colors
|
||||||
@primaryLinkInverted : #000;
|
@primaryLinkInverted : @primaryText;
|
||||||
@primaryLinkBackgroundInverted: #fff;
|
@primaryLinkBackgroundInverted: @primaryBackground;
|
||||||
@primaryLink : #fff;
|
@primaryLink : @primaryBackground;
|
||||||
@primaryLinkHoverBackground : #000;
|
@primaryLinkHoverBackground : @primaryText;
|
||||||
@primaryButton : #fff;
|
@primaryButton : @primaryBackground;
|
||||||
@primaryButtonHoverBackground : #000;
|
@primaryButtonHoverBackground : @primaryText;
|
||||||
@primaryButtonInverted : #000f;
|
@primaryButtonInverted : #000f;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// general
|
|
||||||
@primaryBackground: #fff;
|
|
||||||
@primaryText : #000;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// account (signin, signup) specific
|
// account (signin, signup) specific
|
||||||
@primaryFormAccounts : #fff;
|
@primaryFormAccounts : @primaryBackground;
|
||||||
@formAccountsInputPlaceholder : silver;
|
@formAccountsInputPlaceholder : silver;
|
||||||
@fieldInputSelectionBackground: #50a2ce;
|
@fieldInputSelectionBackground: #50a2ce;
|
||||||
@signInBackground : #245b78;
|
@signInBackground : #245b78;
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
"""invenio module for TUGRAZ theme."""
|
"""invenio module for TUGRAZ theme."""
|
||||||
|
|
||||||
from flask_babelex import gettext as _
|
from flask_babelex import gettext as _
|
||||||
from invenio_app_rdm.config import RECORDS_UI_ENDPOINTS
|
|
||||||
|
|
||||||
INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = _("TU Graz Repository")
|
INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = _("TU Graz Repository")
|
||||||
"""Default value for the application."""
|
"""Default value for the application."""
|
||||||
@@ -81,15 +80,6 @@ SECURITY_REGISTER_USER_TEMPLATE = (
|
|||||||
)
|
)
|
||||||
"""Sigup template"""
|
"""Sigup template"""
|
||||||
|
|
||||||
# Invenio-I18N
|
|
||||||
# ============
|
|
||||||
# See https://invenio-i18n.readthedocs.io/en/latest/configuration.html
|
|
||||||
BABEL_DEFAULT_LOCALE = "en"
|
|
||||||
# Default time zone
|
|
||||||
BABEL_DEFAULT_TIMEZONE = "Europe/Vienna"
|
|
||||||
# Other supported languages (do not include BABEL_DEFAULT_LOCALE in list).
|
|
||||||
I18N_LANGUAGES = [("de", _("German"))]
|
|
||||||
|
|
||||||
# Invenio-app-rdm
|
# Invenio-app-rdm
|
||||||
# =============
|
# =============
|
||||||
# See https://invenio-app-rdm.readthedocs.io/en/latest/configuration.html
|
# See https://invenio-app-rdm.readthedocs.io/en/latest/configuration.html
|
||||||
@@ -119,7 +109,4 @@ DEPOSITS_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html"
|
|||||||
TUG_ROUTES = {
|
TUG_ROUTES = {
|
||||||
"index": "/",
|
"index": "/",
|
||||||
"comingsoon": "/comingsoon",
|
"comingsoon": "/comingsoon",
|
||||||
"guide": "/guide",
|
|
||||||
"terms": "/terms",
|
|
||||||
"gdpr": "/gdpr",
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,15 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Copyright (C) 2019-2021 CERN.
|
# Copyright (C) 2020-2022 Graz University of Technology.
|
||||||
# Copyright (C) 2019-2021 Northwestern University.
|
|
||||||
# Copyright (C) 2021 TU Wien.
|
|
||||||
# Copyright (C) 2021 Graz University of Technology.
|
|
||||||
#
|
#
|
||||||
# Invenio_theme_tugraz is free software; you can redistribute it and/or modify it
|
# invenio-theme-tugraz is free software; you can redistribute it and/or
|
||||||
# under the terms of the MIT License; see LICENSE file for more details.
|
# modify it under the terms of the MIT License; see LICENSE file for more
|
||||||
# https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/records_ui/views/deposits.py
|
# details.
|
||||||
"""Routes for record-related pages provided by Invenio-App-RDM."""
|
|
||||||
|
|
||||||
|
"""Routes for record-related pages provided by Invenio-App-RDM."""
|
||||||
|
|
||||||
from flask import render_template
|
from flask import render_template
|
||||||
from flask_login import login_required
|
from flask_login import login_required
|
||||||
from invenio_app_rdm.records_ui.utils import set_default_value
|
|
||||||
from invenio_app_rdm.records_ui.views.decorators import pass_draft, pass_draft_files
|
from invenio_app_rdm.records_ui.views.decorators import pass_draft, pass_draft_files
|
||||||
from invenio_app_rdm.records_ui.views.deposits import (
|
from invenio_app_rdm.records_ui.views.deposits import (
|
||||||
get_form_config,
|
get_form_config,
|
||||||
@@ -27,7 +23,7 @@ from invenio_rdm_records.resources.serializers import UIJSONSerializer
|
|||||||
def deposit_create():
|
def deposit_create():
|
||||||
"""Create a new deposit."""
|
"""Create a new deposit."""
|
||||||
return render_template(
|
return render_template(
|
||||||
"invenio_theme_tugraz/deposit/deposit.html",
|
"invenio_theme_tugraz/records/deposit.html",
|
||||||
forms_config=get_form_config(createUrl=("/api/records")),
|
forms_config=get_form_config(createUrl=("/api/records")),
|
||||||
searchbar_config=dict(searchUrl=get_search_url()),
|
searchbar_config=dict(searchUrl=get_search_url()),
|
||||||
record=new_record(),
|
record=new_record(),
|
||||||
@@ -42,11 +38,10 @@ def deposit_create():
|
|||||||
@pass_draft_files
|
@pass_draft_files
|
||||||
def deposit_edit(draft=None, draft_files=None, pid_value=None):
|
def deposit_edit(draft=None, draft_files=None, pid_value=None):
|
||||||
"""Edit an existing deposit."""
|
"""Edit an existing deposit."""
|
||||||
serializer = UIJSONSerializer()
|
record = UIJSONSerializer().serialize_object_to_dict(draft.to_dict())
|
||||||
record = serializer.serialize_object_to_dict(draft.to_dict())
|
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"invenio_theme_tugraz/deposit/deposit.html",
|
"invenio_theme_tugraz/records/deposit.html",
|
||||||
forms_config=get_form_config(apiUrl=f"/api/records/{pid_value}/draft"),
|
forms_config=get_form_config(apiUrl=f"/api/records/{pid_value}/draft"),
|
||||||
record=record,
|
record=record,
|
||||||
files=draft_files.to_dict(),
|
files=draft_files.to_dict(),
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Copyright (C) 2020-2021 Graz University of Technology.
|
# Copyright (C) 2020-2022 Graz University of Technology.
|
||||||
#
|
#
|
||||||
# invenio-theme-tugraz is free software; you can redistribute it and/or
|
# invenio-theme-tugraz is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the MIT License; see LICENSE file for more
|
# modify it under the terms of the MIT License; see LICENSE file for more
|
||||||
@@ -8,9 +8,10 @@
|
|||||||
|
|
||||||
"""invenio module for TUGRAZ theme."""
|
"""invenio module for TUGRAZ theme."""
|
||||||
|
|
||||||
|
from invenio_theme_tugraz.deposits import deposit_create, deposit_edit
|
||||||
|
|
||||||
from . import config
|
from . import config
|
||||||
from .deposits import deposit_create, deposit_edit
|
from .views import index
|
||||||
from .views import index, record_detail
|
|
||||||
|
|
||||||
|
|
||||||
class InvenioThemeTugraz(object):
|
class InvenioThemeTugraz(object):
|
||||||
@@ -26,7 +27,6 @@ class InvenioThemeTugraz(object):
|
|||||||
# add index route rule
|
# add index route rule
|
||||||
# https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.add_url_rule
|
# https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.add_url_rule
|
||||||
app.add_url_rule("/", "index", index)
|
app.add_url_rule("/", "index", index)
|
||||||
app.add_url_rule("/records/<pid_value>", "record_detail", record_detail)
|
|
||||||
app.add_url_rule("/uploads/new", "deposit_create", deposit_create)
|
app.add_url_rule("/uploads/new", "deposit_create", deposit_create)
|
||||||
app.add_url_rule("/uploads/<pid_value>", "deposit_edit", deposit_edit)
|
app.add_url_rule("/uploads/<pid_value>", "deposit_edit", deposit_edit)
|
||||||
self.init_config(app)
|
self.init_config(app)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,13 +10,14 @@
|
|||||||
|
|
||||||
|
|
||||||
{% from "invenio_accounts/_macros.html" import render_field, form_errors %}
|
{% from "invenio_accounts/_macros.html" import render_field, form_errors %}
|
||||||
|
{%- from "invenio_oauthclient/_macros.html" import oauth_button %}
|
||||||
{% block page_body %}
|
{% block page_body %}
|
||||||
<div class="spacer-long"></div>
|
<div class="spacer-long"></div>
|
||||||
<div class="spacer-long"></div>
|
<div class="spacer-long"></div>
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="ui centered grid padded">
|
<div class="ui centered grid padded">
|
||||||
|
|
||||||
<div class="ui padded segments huge form">
|
<div class="ui padded segments large form">
|
||||||
<div class="ui login segment padded">
|
<div class="ui login segment padded">
|
||||||
<div class="divider hidden"></div>
|
<div class="divider hidden"></div>
|
||||||
{%- block form_header %}
|
{%- block form_header %}
|
||||||
@@ -24,32 +25,54 @@
|
|||||||
{%- endblock form_header %}
|
{%- endblock form_header %}
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<!--Log in with SSO-->
|
<!--Log in with SSO-->
|
||||||
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
{% if config.OAUTHCLIENT_REMOTE_APPS or config.SSO_SAML_IDPS %}
|
||||||
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="login-page-button ui fluid large button">
|
<div class="ui form">
|
||||||
{% trans type='TUGRAZ' %} Log in with {{ type }}{% endtrans %}
|
{% for name in config.OAUTHCLIENT_REMOTE_APPS.keys() %}
|
||||||
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
{{ oauth_button(name, next=request.args.get('next')) }}
|
||||||
</a>
|
{% endfor %}
|
||||||
<div class="spacer-long"></div>
|
</div>
|
||||||
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
{% for name in config.SSO_SAML_IDPS.keys() %}
|
||||||
|
<div class="field">
|
||||||
|
<a class="login-page-button ui fluid large button" href="{{ url_for('sso_saml.sso', idp=name) }}">
|
||||||
|
{{
|
||||||
|
_('Log in with %(title)s', title=config.SSO_SAML_IDPS[name]['title']|default("SAML", true))
|
||||||
|
}}
|
||||||
|
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
{%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %}
|
||||||
|
<div class="ui horizontal divider">
|
||||||
|
{{ _("Or") }}
|
||||||
|
</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{%- block form_outer %}
|
{%- block form_outer %}
|
||||||
|
{%- if config.ACCOUNTS_LOCAL_LOGIN_ENABLED %}
|
||||||
{%- with form = login_user_form %}
|
{%- with form = login_user_form %}
|
||||||
<div style="padding-bottom: 20px;padding-top: 6px;">
|
{%- set accordion_active = "active" if form.errors else "" %}
|
||||||
<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form" class="ui big form">
|
<div class="ui styled accordion">
|
||||||
{{ form.hidden_tag() }}
|
<div class="title {{ accordion_active }}">
|
||||||
{{ form_errors(form) }}
|
{{ _('Log in with repository credentials') }}
|
||||||
{{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }}
|
<i class="user icon"></i>
|
||||||
{{ render_field(form.password, icon="lock icon", errormsg=False) }}
|
</div>
|
||||||
<button type="submit" class="ui fluid large submit button">
|
<div class="content {{ accordion_active }}">
|
||||||
<i class="ui sign-in icon"></i>{{ _('Log In') }}
|
<form action="{{ url_for_security('login') }}" method="POST" name="login_user_form" class="ui large form">
|
||||||
</button>
|
{{ form.hidden_tag() }}
|
||||||
</form>
|
{{ form_errors(form) }}
|
||||||
</div>
|
{{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }}
|
||||||
|
{{ render_field(form.password, icon="lock icon", errormsg=False) }}
|
||||||
|
<button type="submit" class="ui fluid large submit button">
|
||||||
|
<i class="ui sign-in icon"></i>{{ _('Log In') }}
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{%- endwith %}
|
{%- endwith %}
|
||||||
|
{%- endif %}
|
||||||
{%- endblock form_outer %}
|
{%- endblock form_outer %}
|
||||||
<div class="divider hidden"></div>
|
<div class="divider hidden"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{%- block registerable %}
|
{%- block registerable %}
|
||||||
|
|||||||
@@ -39,48 +39,58 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="column" id="switch_right">
|
<div class="column" id="switch_right">
|
||||||
|
|
||||||
|
|
||||||
|
<!--Sigup with SSO-->
|
||||||
|
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
||||||
|
<div class="ui divider"></div>
|
||||||
|
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="login-page-button ui fluid large button">
|
||||||
|
<span style="font-size: 18px;">{{ _('Sign up with TUGRAZ ') }}</span>
|
||||||
|
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
||||||
|
</a>
|
||||||
|
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
<!--Sigup with SSO-->
|
{%- block form_header %}
|
||||||
{%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %}
|
<!-- can add a header img-->
|
||||||
<div class="ui divider"></div>
|
{%- block form_outer %}
|
||||||
<a href="{{ url_for('sso_saml.sso', idp='idp') }}" class="login-page-button ui fluid large button">
|
{%- endblock form_outer %}
|
||||||
<span style="font-size: 18px;">{{ _('Sign up with TUGRAZ ') }}</span>
|
{%- endblock form_header %}
|
||||||
<img src="{{ url_for('static', filename=config.INVENIO_THEME_TUGRAZ_ICON)}}" height="20px" />
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="ui inverted horizontal divider"><span class="text-color">{{_ ("Or")}}</span></div>
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
{%- block form_header %}
|
{%- with form = register_user_form %}
|
||||||
<!-- can add a header img-->
|
{%- set accordion_active = "active" if form.errors else "" %}
|
||||||
{%- block form_outer %}
|
<div class="ui padded centered large form">
|
||||||
{%- endblock form_outer %}
|
<div class="ui styled accordion">
|
||||||
{%- endblock form_header %}
|
<div class="title {{ accordion_active }}">
|
||||||
{%- with form = register_user_form %}
|
{{ _('Sign up with repository credentials') }}
|
||||||
<form class="ui big form" action="{{ url_for_security('register') }}" method="POST" name="register_user_form">
|
<i class="user icon"></i>
|
||||||
{{ form_errors(form) }}
|
</div>
|
||||||
{{ form.hidden_tag() }}
|
<div class="content {{ accordion_active }}">
|
||||||
{%- block registration_form_fields scoped %}
|
<form class="ui large form" action="{{ url_for_security('register') }}" method="POST" name="register_user_form">
|
||||||
{{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }}
|
{{ form_errors(form) }}
|
||||||
{{ render_field(form.password, icon="lock icon", errormsg=False) }}
|
{{ form.hidden_tag() }}
|
||||||
{%- if form.password_confirm %}
|
{%- block registration_form_fields scoped %}
|
||||||
{{ render_field(form.password_confirm, icon="lock icon", errormsg=False) }}
|
{{ render_field(form.email, icon="user icon", autofocus=True, errormsg=False) }}
|
||||||
{%- endif %}
|
{{ render_field(form.password, icon="lock icon", errormsg=False) }}
|
||||||
{%- endblock registration_form_fields %}
|
{%- if form.password_confirm %}
|
||||||
|
{{ render_field(form.password_confirm, icon="lock icon", errormsg=False) }}
|
||||||
|
{%- endif %}
|
||||||
|
{%- endblock registration_form_fields %}
|
||||||
|
|
||||||
{%- if form.recaptcha %}
|
{%- if form.recaptcha %}
|
||||||
<div class="grouped fields">{{ form.recaptcha() }}</div>
|
<div class="grouped fields">{{ form.recaptcha() }}</div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
<div class="centered row">
|
<div class="centered row">
|
||||||
<button type="submit" class="ui fluid large submit button">
|
<button type="submit" class="ui fluid large submit button">
|
||||||
<i class="ui edit outline icon"></i>{{ _('Sign up') }}
|
<i class="ui edit outline icon"></i>{{ _('Sign up') }}
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</div>
|
||||||
{%- endwith %}
|
{%- endwith %}
|
||||||
|
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
{#
|
|
||||||
Copyright (C) 2020 CERN.
|
|
||||||
Copyright (C) 2020 Northwestern University.
|
|
||||||
Copyright (C) 2021 Graz University of Technology.
|
|
||||||
|
|
||||||
Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
||||||
under the terms of the MIT License; see LICENSE file for more details.
|
|
||||||
#}
|
|
||||||
{%- if not record.is_published and record.versions.index and record.versions.index > 1%}
|
|
||||||
{%- set title = _("New version") %}
|
|
||||||
{%- elif not record.is_published %}
|
|
||||||
{%- set title = _("New upload") %}
|
|
||||||
{% else %}
|
|
||||||
{%- set title = _("Edit upload") %}
|
|
||||||
{%- endif %}
|
|
||||||
{%- extends config.BASE_TEMPLATE %}
|
|
||||||
|
|
||||||
{%- block page_body %}
|
|
||||||
{%- if record %}
|
|
||||||
<input id="deposits-record" type="hidden" name="deposits-record" value='{{record | tojson }}'></input>
|
|
||||||
{%- endif %}
|
|
||||||
{%- if files %}
|
|
||||||
<input id="deposits-record-files" type="hidden" name="deposits-record-files" value='{{files | tojson }}'></input>
|
|
||||||
{%- endif %}
|
|
||||||
{%- if forms_config %}
|
|
||||||
<input type="hidden" name="deposits-config" value='{{forms_config | tojson }}'></input>
|
|
||||||
{%- endif %}
|
|
||||||
{%- if permissions %}
|
|
||||||
<input id="deposits-record-permissions" type="hidden" name="deposits-record-permissions" value='{{permissions | tojson }}'></input>
|
|
||||||
{%- endif %}
|
|
||||||
<div id="deposit-form"></div>
|
|
||||||
{%- endblock page_body %}
|
|
||||||
|
|
||||||
{%- block javascript %}
|
|
||||||
{{ super() }}
|
|
||||||
{{ webpack['invenio-theme-tugraz-rdm-deposit.js'] }}
|
|
||||||
{%- endblock %}
|
|
||||||
@@ -34,7 +34,7 @@ details.
|
|||||||
{{_ ("Documentation")}} <i class="external alternate icon"></i>
|
{{_ ("Documentation")}} <i class="external alternate icon"></i>
|
||||||
</a>
|
</a>
|
||||||
<br>
|
<br>
|
||||||
<a href="{{ url_for('invenio_theme_tugraz.guide') }}"
|
<a href="{{ url_for('invenio_config_tugraz.guide') }}"
|
||||||
title="Quick guide" target="_blank">
|
title="Quick guide" target="_blank">
|
||||||
{{_ ("Reference Guide")}} <i class="download icon"></i>
|
{{_ ("Reference Guide")}} <i class="download icon"></i>
|
||||||
</a>
|
</a>
|
||||||
@@ -44,12 +44,12 @@ details.
|
|||||||
{{_ ("Search Guide")}}<i class="angle right icon"></i>
|
{{_ ("Search Guide")}}<i class="angle right icon"></i>
|
||||||
</a>
|
</a>
|
||||||
<br>
|
<br>
|
||||||
<a href="{{ url_for('invenio_theme_tugraz.gdpr') }}"
|
<a href="{{ url_for('invenio_config_tugraz.gdpr') }}"
|
||||||
title="General Data Protection Rights" target="_blank">
|
title="General Data Protection Rights" target="_blank">
|
||||||
{{_ ("Data Protection")}} <i class="download icon"></i>
|
{{_ ("Data Protection")}} <i class="download icon"></i>
|
||||||
</a>
|
</a>
|
||||||
<br>
|
<br>
|
||||||
<a href="{{ url_for('invenio_theme_tugraz.terms') }}"
|
<a href="{{ url_for('invenio_config_tugraz.terms') }}"
|
||||||
title="Terms and Conditions" target="_blank">
|
title="Terms and Conditions" target="_blank">
|
||||||
{{_ ("Terms and Conditions")}} <i class="download icon"></i>
|
{{_ ("Terms and Conditions")}} <i class="download icon"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -108,22 +108,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--Disabled on feb-relase - enable when stable-->
|
|
||||||
<!-- <div class="right floated column">
|
|
||||||
<span class="access-right">
|
|
||||||
<i class="icon lock open"></i>
|
|
||||||
{{ r.access.access_right | make_dict_like('access_right') | vocabulary_title('access_right') }}
|
|
||||||
{%- for right in r.metadata.rights %}
|
|
||||||
<a target="_blank" href="{{right.url}}">{{ '(' ~ right.identifier ~ ')' }}</a>
|
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
</span>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
<!----TODO: more versions
|
|
||||||
-->
|
|
||||||
|
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{% if records %}
|
{% if records %}
|
||||||
|
|||||||
@@ -1,205 +0,0 @@
|
|||||||
{#
|
|
||||||
Copyright (C) 2020-2021 CERN.
|
|
||||||
Copyright (C) 2020-2021 Northwestern University.
|
|
||||||
Copyright (C) 2021 TU Wien.
|
|
||||||
Copyright (C) 2021 Graz University of Technology.
|
|
||||||
|
|
||||||
Invenio RDM Records is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the MIT License; see LICENSE file for more details.
|
|
||||||
#}
|
|
||||||
|
|
||||||
{%- extends config.BASE_TEMPLATE %}
|
|
||||||
|
|
||||||
{%- from "invenio_app_rdm/records/macros/files.html" import file_list_box, preview_file_box %}
|
|
||||||
{%- from "invenio_app_rdm/records/macros/detail.html" import show_detail %}
|
|
||||||
|
|
||||||
{%- set title = record.metadata.title -%}
|
|
||||||
{%- set metadata = record.metadata %}
|
|
||||||
|
|
||||||
{%- block page_body %}
|
|
||||||
<div class="banners">
|
|
||||||
{% if is_preview %}
|
|
||||||
<div class="ui info flashed top-attached manage message">
|
|
||||||
<div class="ui container">
|
|
||||||
<div class="ui relaxed grid">
|
|
||||||
<div class="column">
|
|
||||||
<div class="row">
|
|
||||||
<div class="header">
|
|
||||||
<i class="eye icon"></i> Preview
|
|
||||||
</div>
|
|
||||||
<p>
|
|
||||||
{% if record.is_published %}
|
|
||||||
You are previewing changes that have not yet been published.
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if not record.is_published and record.versions.index == 1 %}
|
|
||||||
You are previewing a new record that has not yet been published.
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if not record.is_published and record.versions.index > 1 %}
|
|
||||||
You are previewing a new record version that has not yet been published.
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% if permissions is defined and permissions.can_edit and not is_preview %}
|
|
||||||
<div class="ui warning flashed top-attached manage message">
|
|
||||||
<div class="ui container">
|
|
||||||
<div id="recordManagement" data-record='{{ record | tojson }}' data-permissions='{{ permissions | tojson }}'></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% if (not record.versions.is_latest and not is_preview) or (is_preview and not record.versions.is_latest_draft) %}
|
|
||||||
<div class="ui warning flashed top-attached manage message">
|
|
||||||
<div class="ui container">
|
|
||||||
<div class="ui relaxed grid">
|
|
||||||
<div class="column">
|
|
||||||
<div class="row">
|
|
||||||
<p>
|
|
||||||
{% trans link_start=('<a href="' + record.links.latest_html + '"><b>')|safe, link_end='</b></a>'|safe %}
|
|
||||||
There is a {{ link_start }}newer version{{ link_end }} of the record available.
|
|
||||||
{% endtrans %}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="ui container">
|
|
||||||
<div class="ui relaxed grid">
|
|
||||||
<div class="two column row top-padded">
|
|
||||||
<div class="eleven wide column">
|
|
||||||
{% if record.access.record == 'restricted' %}
|
|
||||||
<div class="ui {{ record.ui.access_status.message_class }} message">
|
|
||||||
<strong><i class="{{ record.ui.access_status.icon }} icon"></i>{{ record.ui.access_status.title_l10n }}</strong> {{ record.ui.access_status.description_l10n }}
|
|
||||||
{% if record.access.embargo.reason %}
|
|
||||||
<p>Reason: {{ record.access.embargo.reason }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{%- block record_body -%}
|
|
||||||
{%- block record_header -%}
|
|
||||||
<div class="ui grid middle aligned">
|
|
||||||
<div class="two column row">
|
|
||||||
<div class="left floated left aligned column">
|
|
||||||
<span class="ui" title="Publication date">{{ record.ui.publication_date_l10n_long }}</span>
|
|
||||||
<span class="label text-muted"> | Version {{ record.ui.version }}</span>
|
|
||||||
</div>
|
|
||||||
<div class="right floated right aligned column">
|
|
||||||
<span class="ui label small grey">{{ record.ui.resource_type.title_l10n }}</span>
|
|
||||||
<span class="ui label small access-status {{ record.ui.access_status.id }}" data-tooltip="{{ record.ui.access_status.description_l10n }}" data-inverted="">
|
|
||||||
{% if record.ui.access_status.icon %}<i class="icon {{ record.ui.access_status.icon }}"></i>{% endif %}
|
|
||||||
{{ record.ui.access_status.title_l10n }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{%- endblock record_header -%}
|
|
||||||
{%- block record_title -%}
|
|
||||||
<h1>{{ metadata.title }}</h1>
|
|
||||||
<p>{%- include "invenio_app_rdm/records/details/creators.html" %}</p>
|
|
||||||
{%- endblock record_title -%}
|
|
||||||
{%- block record_content -%}
|
|
||||||
<p>{%- include "invenio_app_rdm/records/details/contributors.html" %}</p>
|
|
||||||
<p>{%- include "invenio_app_rdm/records/details/doi.html" %}</p>
|
|
||||||
{%- include "invenio_app_rdm/records/details/subjects.html" %}
|
|
||||||
<div class="top-padded">
|
|
||||||
{%- include "invenio_app_rdm/records/details/description.html" %}
|
|
||||||
</div>
|
|
||||||
<div class="top-padded">
|
|
||||||
{%- include "invenio_app_rdm/records/details/licenses.html" %}
|
|
||||||
</div>
|
|
||||||
{%- endblock record_content -%}
|
|
||||||
|
|
||||||
{# files #}
|
|
||||||
{%- block record_files -%}
|
|
||||||
{%- if record.files.enabled -%}
|
|
||||||
{%- if permissions.can_read_files -%}
|
|
||||||
{# record has files AND user can see files #}
|
|
||||||
{%- set files = files|order_entries %}
|
|
||||||
{%- if files|has_previewable_files -%}
|
|
||||||
{%-set preview_file = files|select_preview_file(default_preview=record.files.default_preview) %}
|
|
||||||
{{ preview_file_box(preview_file, pid, is_preview, record) }}
|
|
||||||
{%- endif -%}
|
|
||||||
{{ file_list_box(files, pid, is_preview, record) }}
|
|
||||||
{% else %}
|
|
||||||
{# record has files BUT user cannot see files #}
|
|
||||||
<div class="panel-spacing">
|
|
||||||
<div class="ui accordion panel {{ record.ui.access_status.id }}" id="preview" href="#collapsablePreview">
|
|
||||||
<div class="active title panel-heading {{ record.ui.access_status.id }}">
|
|
||||||
{{ _("Files") }}
|
|
||||||
<i class="angle down icon"></i>
|
|
||||||
</div>
|
|
||||||
<div id="collapsablePreview" class="active content">
|
|
||||||
<div class="ui {{ record.ui.access_status.message_class }} message file-box-message">
|
|
||||||
<i class="ui {{ record.ui.access_status.icon }} icon"></i><b>{{ record.ui.access_status.title_l10n }}</b>
|
|
||||||
<p>{{ record.ui.access_status.description_l10n }}</p>
|
|
||||||
{% if record.access.embargo.reason %}
|
|
||||||
<p>{{_("Reason")}}: {{record.access.embargo.reason}}</p>
|
|
||||||
{% endif%}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{%- endif %}
|
|
||||||
{%- endif %}
|
|
||||||
{%- endblock record_files -%}
|
|
||||||
|
|
||||||
{%- block record_details -%}
|
|
||||||
{# More details #}
|
|
||||||
<div class="top-padded">
|
|
||||||
{%- include "invenio_app_rdm/records/details/details.html" %}
|
|
||||||
</div>
|
|
||||||
{%- endblock record_details -%}
|
|
||||||
{%- block record_footer -%}
|
|
||||||
<div class="ui grid">
|
|
||||||
<div class="two column row top-bottom-padded font-small">
|
|
||||||
<div class="four wide column">
|
|
||||||
<p><b>Upload information</b></p>
|
|
||||||
</div>
|
|
||||||
<div class="twelve wide column">
|
|
||||||
<span class="label text-muted">
|
|
||||||
<b>Created:</b> {{ record.ui.created_date_l10n_long }} | <b>Modified:</b> {{ record.ui.updated_date_l10n_long }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{%- endblock record_footer -%}
|
|
||||||
{%- block jump -%}
|
|
||||||
<div class="ui grid">
|
|
||||||
<div class="centered row" id="jump-btn">
|
|
||||||
<a style="cursor: pointer;">
|
|
||||||
<span class="ui button">
|
|
||||||
<i class="arrow alternate circle up outline icon"></i>Jump up</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{%- endblock jump -%}
|
|
||||||
{%- endblock record_body %}
|
|
||||||
</div>
|
|
||||||
<div class="five wide column">
|
|
||||||
{% block record_sidebar %}
|
|
||||||
{%- include "invenio_app_rdm/records/details/side_bar.html" %}
|
|
||||||
{% endblock record_sidebar %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{%- endblock page_body %}
|
|
||||||
|
|
||||||
{%- block javascript %}
|
|
||||||
{{ super() }}
|
|
||||||
{{ webpack['invenio-app-rdm-landing-page.js'] }}
|
|
||||||
{# Communities management -- TODO include again when communities are ready #}
|
|
||||||
{# {{ webpack['invenio-communities-records.js'] }} #}
|
|
||||||
{{ webpack['previewer_theme.js'] }}
|
|
||||||
{%- endblock javascript %}
|
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
{#
|
||||||
|
Copyright (C) 2020 CERN.
|
||||||
|
Copyright (C) 2020 Northwestern University.
|
||||||
|
Copyright (C) 2022 Graz University of Technology.
|
||||||
|
|
||||||
|
Invenio App RDM is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the MIT License; see LICENSE file for more details.
|
||||||
|
#}
|
||||||
|
{%- if not record.is_published and record.versions.index and record.versions.index > 1%}
|
||||||
|
{%- set title = _("New version") %}
|
||||||
|
{%- elif not record.is_published %}
|
||||||
|
{%- set title = _("New upload") %}
|
||||||
|
{% else %}
|
||||||
|
{%- set title = _("Edit upload") %}
|
||||||
|
{%- endif %}
|
||||||
|
{%- extends config.BASE_TEMPLATE %}
|
||||||
|
|
||||||
|
{%- block page_body %}
|
||||||
|
{%- if record %}
|
||||||
|
<input id="deposits-record" type="hidden" name="deposits-record" value='{{record | tojson }}'></input>
|
||||||
|
{%- endif %}
|
||||||
|
{%- if files %}
|
||||||
|
<input id="deposits-record-files" type="hidden" name="deposits-record-files" value='{{files | tojson }}'></input>
|
||||||
|
{%- endif %}
|
||||||
|
{%- if forms_config %}
|
||||||
|
<input type="hidden" name="deposits-config" value='{{forms_config | tojson }}'></input>
|
||||||
|
{%- endif %}
|
||||||
|
{%- if permissions %}
|
||||||
|
<input id="deposits-record-permissions" type="hidden" name="deposits-record-permissions" value='{{permissions | tojson }}'></input>
|
||||||
|
{%- endif %}
|
||||||
|
<div id="deposit-form"></div>
|
||||||
|
{%- endblock page_body %}
|
||||||
|
|
||||||
|
{%- block javascript %}
|
||||||
|
{{ super() }}
|
||||||
|
{{ webpack['invenio-theme-tugraz-rdm-deposit.js'] }}
|
||||||
|
|
||||||
|
{%- endblock %}
|
||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: invenio-theme-tugraz 1.0.4\n"
|
"Project-Id-Version: invenio-theme-tugraz 1.0.4\n"
|
||||||
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
||||||
"POT-Creation-Date: 2021-05-10 10:36+0200\n"
|
"POT-Creation-Date: 2021-11-02 15:12+0100\n"
|
||||||
"PO-Revision-Date: 2020-10-06 10:27+0200\n"
|
"PO-Revision-Date: 2020-10-06 10:27+0200\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
@@ -17,21 +17,17 @@ msgstr ""
|
|||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=utf-8\n"
|
"Content-Type: text/plain; charset=utf-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Generated-By: Babel 2.9.1\n"
|
"Generated-By: Babel 2.9.0\n"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:14 invenio_theme_tugraz/config.py:63
|
#: invenio_theme_tugraz/config.py:13 invenio_theme_tugraz/config.py:62
|
||||||
msgid "TU Graz Repository"
|
msgid "TU Graz Repository"
|
||||||
msgstr "TU Graz Repository"
|
msgstr "TU Graz Repository"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:66
|
#: invenio_theme_tugraz/config.py:65
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:30
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:30
|
||||||
msgid "Repository"
|
msgid "Repository"
|
||||||
msgstr "Repository"
|
msgstr "Repository"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:91
|
|
||||||
msgid "German"
|
|
||||||
msgstr "Deutsche"
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:26
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:26
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html:26
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html:26
|
||||||
msgid "Invenio"
|
msgid "Invenio"
|
||||||
@@ -47,7 +43,7 @@ msgid ""
|
|||||||
"long as TU Graz library exists."
|
"long as TU Graz library exists."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Ihre Forschung ist in der Bibliothek der TU Graz für die Zukunft "
|
"Ihre Forschung ist in der Bibliothek der TU Graz für die Zukunft "
|
||||||
"gespeichert,solange die Bibliothek der TU Graz existiert."
|
"gespeichert, solange die Bibliothek der TU Graz existiert."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:4
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html:4
|
||||||
msgid "Trusted"
|
msgid "Trusted"
|
||||||
@@ -198,22 +194,36 @@ msgid "to change the font size."
|
|||||||
msgstr "Um die Schriftgröße zu ändern."
|
msgstr "Um die Schriftgröße zu ändern."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:117
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:117
|
||||||
#, python-format
|
#, fuzzy, python-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"<strong>Powered by</strong>\n"
|
"<strong>Powered by</strong>\n"
|
||||||
" <a href=\"%(invenio_rdm)s\" target=\"_blank\">"
|
" <a href=\"%(invenio_rdm)s\" target=\"_blank\" "
|
||||||
msgstr ""
|
"title=\"invenioRDM\">"
|
||||||
"<strong>Powered by</strong> <a href=\"%(invenio_rdm)s\" "
|
msgstr "<strong>Powered by</strong> <a href=\"%(invenio_rdm)s\" target=\"_blank\">"
|
||||||
"target=\"_blank\">"
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:127
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:126
|
||||||
#, python-format
|
#, fuzzy, python-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"<strong>Enabled by</strong>\n"
|
"<strong>Enabled by</strong>\n"
|
||||||
" <a href=\"%(fair_data)s\" target=\"_blank\">"
|
" <a href=\"%(fair_data)s\" target=\"_blank\" title=\"Fair Data"
|
||||||
|
" Austria\">"
|
||||||
|
msgstr "<strong>Enabled by</strong> <a href=\"%(fair_data)s\" target=\"_blank\">"
|
||||||
|
|
||||||
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:140
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"\n"
|
||||||
|
" <a href=\"%(oea)s\" target=\"_blank\" title=\"Open Education "
|
||||||
|
"Austria\">"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:157
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"\n"
|
||||||
|
" <a href=\"%(re3data)s\" target=\"_blank\" title=\"Registry of "
|
||||||
|
"Research Data Repositories\">"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"<strong>Enabled by</strong> <a href=\"%(fair_data)s\" "
|
|
||||||
"target=\"_blank\">"
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:61
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:61
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:11
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:11
|
||||||
@@ -257,52 +267,51 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr "Hochgeladen am %(date)s\n"
|
msgstr "Hochgeladen am %(date)s\n"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:131
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:118
|
||||||
msgid "More"
|
msgid "More"
|
||||||
msgstr "Mehr"
|
msgstr "Mehr"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:141
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:128
|
||||||
msgid "Need help?"
|
msgid "Need help?"
|
||||||
msgstr "Brauchen Sie Hilfe?"
|
msgstr "Brauchen Sie Hilfe?"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:145
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:132
|
||||||
msgid "Contact us"
|
msgid "Contact us"
|
||||||
msgstr "Kontaktiere uns"
|
msgstr "Kontaktiere uns"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:150
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:137
|
||||||
msgid "prioritizes all Recent uploads."
|
msgid "prioritizes all Recent uploads."
|
||||||
msgstr "reiht die neuesten Uploads vor."
|
msgstr "reiht die neuesten Uploads vor."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:140
|
||||||
msgid "We can help with:"
|
msgid "We can help with:"
|
||||||
msgstr "Dabei können wir helfen:"
|
msgstr "Dabei können wir helfen:"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:158
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:145
|
||||||
msgid "Uploading your research data, software, preprints, etc."
|
msgid "Uploading your research data, software, preprints, etc."
|
||||||
msgstr "Hochladen Ihrer Forschungsdaten, Software, Preprints usw."
|
msgstr "Hochladen Ihrer Forschungsdaten, Software, Preprints usw."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:159
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:146
|
||||||
msgid "One-on-one with"
|
msgid "One-on-one with"
|
||||||
msgstr "One-on-one mit"
|
msgstr "One-on-one mit"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:159
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:146
|
||||||
msgid "supporters."
|
msgid "supporters."
|
||||||
msgstr "Unterstützern"
|
msgstr "Unterstützern"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:160
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:147
|
||||||
msgid "Quota increases beyond our default policy."
|
msgid "Quota increases beyond our default policy."
|
||||||
msgstr "Quota Erhöhungen über unsere Standard Policy hinaus."
|
msgstr "Quota Erhöhungen über unsere Standard Policy hinaus."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:161
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:148
|
||||||
msgid "Scripts for automated uploading of larger datasets."
|
msgid "Scripts for automated uploading of larger datasets."
|
||||||
msgstr "Skripte zum automatisierten Hochladen größerer Datensätze."
|
msgstr "Skripte zum automatisierten Hochladen größerer Datensätze."
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:166
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153
|
||||||
msgid "Why use"
|
msgid "Why use"
|
||||||
msgstr "Warum"
|
msgstr "Warum"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:66
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/navbar.html:66
|
||||||
#, fuzzy
|
|
||||||
msgid "REPOSITORY"
|
msgid "REPOSITORY"
|
||||||
msgstr "Repository"
|
msgstr "Repository"
|
||||||
|
|
||||||
@@ -323,10 +332,10 @@ msgid "TECHNOLOGY"
|
|||||||
msgstr "LEIDENSCHAFT"
|
msgstr "LEIDENSCHAFT"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:59
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:82
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:78
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:86
|
||||||
msgid "Sign up"
|
msgid "Sign up"
|
||||||
msgstr "Registrierung"
|
msgstr "Registrieren"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:15
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:15
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
@@ -336,30 +345,34 @@ msgstr "Einloggen"
|
|||||||
msgid "Sign out"
|
msgid "Sign out"
|
||||||
msgstr "Ausloggen"
|
msgstr "Ausloggen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:23
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:24
|
||||||
msgid "Log in to Repository"
|
msgid "Log in to Repository"
|
||||||
msgstr "Anmelden"
|
msgstr "Anmelden"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:29
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:38
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid " Log in with %(type)s"
|
msgid "Log in with %(title)s"
|
||||||
msgstr "Einloggen mit"
|
msgstr "Einloggen mit %(title)s"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:33
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:46
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:52
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:51
|
||||||
msgid "Or"
|
msgid "Or"
|
||||||
msgstr "Oder"
|
msgstr "Oder"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:45
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:57
|
||||||
|
msgid "Log in with repository credentials"
|
||||||
|
msgstr "Loggen Sie sich mit Ihrem Repository-Account ein"
|
||||||
|
|
||||||
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:67
|
||||||
msgid "Log In"
|
msgid "Log In"
|
||||||
msgstr "Einloggen"
|
msgstr "Einloggen"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:58
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:81
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "New to %(sitename)s?"
|
msgid "New to %(sitename)s?"
|
||||||
msgstr "Neu im %(sitename)s?"
|
msgstr "Neu im %(sitename)s?"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:68
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:91
|
||||||
msgid "Forgot password?"
|
msgid "Forgot password?"
|
||||||
msgstr "Passwort vergessen"
|
msgstr "Passwort vergessen"
|
||||||
|
|
||||||
@@ -403,42 +416,11 @@ msgstr "Gebaut basierend auf Expertise derTU Graz im Bereich Data Management"
|
|||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:48
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:48
|
||||||
msgid "Sign up with TUGRAZ "
|
msgid "Sign up with TUGRAZ "
|
||||||
msgstr "Mit Ihrem TUGonline-Account einloggen"
|
msgstr "Mit Ihrem TUGonline-Account registrieren"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:10
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:65
|
||||||
msgid "New version"
|
msgid "Sign up with repository credentials"
|
||||||
msgstr "neue Version"
|
msgstr "Mit Ihren Repository Daten registrieren"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:12
|
|
||||||
msgid "New upload"
|
|
||||||
msgstr "Neuer upload"
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:14
|
|
||||||
msgid "Edit upload"
|
|
||||||
msgstr "Upload bearbeiten"
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:63
|
|
||||||
#, python-format
|
|
||||||
msgid ""
|
|
||||||
"\n"
|
|
||||||
" There is a %(link_start)snewer version%(link_end)s of the "
|
|
||||||
"record available.\n"
|
|
||||||
" "
|
|
||||||
msgstr ""
|
|
||||||
"Es ist eine %(link_start)sneuere Version%(link_end)s des Eintrags "
|
|
||||||
"verfügbar."
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:138
|
|
||||||
msgid "Files"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:146
|
|
||||||
msgid "Reason"
|
|
||||||
msgstr "Grund"
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:52
|
|
||||||
msgid "Uploads"
|
|
||||||
msgstr "Hochladen"
|
|
||||||
|
|
||||||
#~ msgid "Version"
|
#~ msgid "Version"
|
||||||
#~ msgstr "Version"
|
#~ msgstr "Version"
|
||||||
@@ -452,7 +434,6 @@ msgstr "Hochladen"
|
|||||||
#~ msgid "Handbook"
|
#~ msgid "Handbook"
|
||||||
#~ msgstr "Handbuch"
|
#~ msgstr "Handbuch"
|
||||||
|
|
||||||
|
|
||||||
#~ msgid "RDM DOI Badge"
|
#~ msgid "RDM DOI Badge"
|
||||||
#~ msgstr "RDM DOI Abzeichen"
|
#~ msgstr "RDM DOI Abzeichen"
|
||||||
|
|
||||||
@@ -470,3 +451,34 @@ msgstr "Hochladen"
|
|||||||
#~ " <a href=\"%(fair_data)s\" target=\"_blank\">"
|
#~ " <a href=\"%(fair_data)s\" target=\"_blank\">"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
|
|
||||||
|
#~ msgid "Uploads"
|
||||||
|
#~ msgstr "Hochladen"
|
||||||
|
|
||||||
|
#~ msgid "German"
|
||||||
|
#~ msgstr "Deutsche"
|
||||||
|
|
||||||
|
#~ msgid "New version"
|
||||||
|
#~ msgstr "neue Version"
|
||||||
|
|
||||||
|
#~ msgid "New upload"
|
||||||
|
#~ msgstr "Neuer upload"
|
||||||
|
|
||||||
|
#~ msgid "Edit upload"
|
||||||
|
#~ msgstr "Upload bearbeiten"
|
||||||
|
|
||||||
|
#~ msgid ""
|
||||||
|
#~ "\n"
|
||||||
|
#~ " There is a %(link_start)snewer "
|
||||||
|
#~ "version%(link_end)s of the record available."
|
||||||
|
#~ "\n"
|
||||||
|
#~ " "
|
||||||
|
#~ msgstr ""
|
||||||
|
#~ "Es ist eine %(link_start)sneuere "
|
||||||
|
#~ "Version%(link_end)s des Eintrags verfügbar."
|
||||||
|
|
||||||
|
#~ msgid "Files"
|
||||||
|
#~ msgstr "Dateien"
|
||||||
|
|
||||||
|
#~ msgid "Reason"
|
||||||
|
#~ msgstr "Grund"
|
||||||
|
|
||||||
|
|||||||
@@ -4,33 +4,28 @@
|
|||||||
# invenio-theme-tugraz project.
|
# invenio-theme-tugraz project.
|
||||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
|
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
|
||||||
#
|
#
|
||||||
#, fuzzy
|
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: invenio-theme-tugraz 3.0.1\n"
|
"Project-Id-Version: invenio-theme-tugraz 3.6.1\n"
|
||||||
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
|
||||||
"POT-Creation-Date: 2021-05-10 10:36+0200\n"
|
"POT-Creation-Date: 2021-11-02 15:12+0100\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=utf-8\n"
|
"Content-Type: text/plain; charset=utf-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Generated-By: Babel 2.9.1\n"
|
"Generated-By: Babel 2.9.0\n"
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:14 invenio_theme_tugraz/config.py:63
|
#: invenio_theme_tugraz/config.py:13 invenio_theme_tugraz/config.py:62
|
||||||
msgid "TU Graz Repository"
|
msgid "TU Graz Repository"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:66
|
#: invenio_theme_tugraz/config.py:65
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:30
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:30
|
||||||
msgid "Repository"
|
msgid "Repository"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/config.py:91
|
|
||||||
msgid "German"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:26
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:26
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html:26
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/base.html:26
|
||||||
msgid "Invenio"
|
msgid "Invenio"
|
||||||
@@ -190,14 +185,32 @@ msgstr ""
|
|||||||
#, python-format
|
#, python-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"<strong>Powered by</strong>\n"
|
"<strong>Powered by</strong>\n"
|
||||||
" <a href=\"%(invenio_rdm)s\" target=\"_blank\">"
|
" <a href=\"%(invenio_rdm)s\" target=\"_blank\" "
|
||||||
|
"title=\"invenioRDM\">"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:127
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:126
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"<strong>Enabled by</strong>\n"
|
"<strong>Enabled by</strong>\n"
|
||||||
" <a href=\"%(fair_data)s\" target=\"_blank\">"
|
" <a href=\"%(fair_data)s\" target=\"_blank\" title=\"Fair Data"
|
||||||
|
" Austria\">"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:140
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"\n"
|
||||||
|
" <a href=\"%(oea)s\" target=\"_blank\" title=\"Open Education "
|
||||||
|
"Austria\">"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:157
|
||||||
|
#, python-format
|
||||||
|
msgid ""
|
||||||
|
"\n"
|
||||||
|
" <a href=\"%(re3data)s\" target=\"_blank\" title=\"Registry of "
|
||||||
|
"Research Data Repositories\">"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:61
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html:61
|
||||||
@@ -242,47 +255,47 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:131
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:118
|
||||||
msgid "More"
|
msgid "More"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:141
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:128
|
||||||
msgid "Need help?"
|
msgid "Need help?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:145
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:132
|
||||||
msgid "Contact us"
|
msgid "Contact us"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:150
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:137
|
||||||
msgid "prioritizes all Recent uploads."
|
msgid "prioritizes all Recent uploads."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:140
|
||||||
msgid "We can help with:"
|
msgid "We can help with:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:158
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:145
|
||||||
msgid "Uploading your research data, software, preprints, etc."
|
msgid "Uploading your research data, software, preprints, etc."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:159
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:146
|
||||||
msgid "One-on-one with"
|
msgid "One-on-one with"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:159
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:146
|
||||||
msgid "supporters."
|
msgid "supporters."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:160
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:147
|
||||||
msgid "Quota increases beyond our default policy."
|
msgid "Quota increases beyond our default policy."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:161
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:148
|
||||||
msgid "Scripts for automated uploading of larger datasets."
|
msgid "Scripts for automated uploading of larger datasets."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:166
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:153
|
||||||
msgid "Why use"
|
msgid "Why use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -307,8 +320,8 @@ msgid "TECHNOLOGY"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:8
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:59
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:82
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:78
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:86
|
||||||
msgid "Sign up"
|
msgid "Sign up"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -320,30 +333,34 @@ msgstr ""
|
|||||||
msgid "Sign out"
|
msgid "Sign out"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:23
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:24
|
||||||
msgid "Log in to Repository"
|
msgid "Log in to Repository"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:29
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:38
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid " Log in with %(type)s"
|
msgid "Log in with %(title)s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:33
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:46
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:52
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:51
|
||||||
msgid "Or"
|
msgid "Or"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:45
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:57
|
||||||
|
msgid "Log in with repository credentials"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:67
|
||||||
msgid "Log In"
|
msgid "Log In"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:58
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:81
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "New to %(sitename)s?"
|
msgid "New to %(sitename)s?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:68
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html:91
|
||||||
msgid "Forgot password?"
|
msgid "Forgot password?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -385,35 +402,7 @@ msgstr ""
|
|||||||
msgid "Sign up with TUGRAZ "
|
msgid "Sign up with TUGRAZ "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:10
|
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html:65
|
||||||
msgid "New version"
|
msgid "Sign up with repository credentials"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:12
|
|
||||||
msgid "New upload"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/deposit/deposit.html:14
|
|
||||||
msgid "Edit upload"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:63
|
|
||||||
#, python-format
|
|
||||||
msgid ""
|
|
||||||
"\n"
|
|
||||||
" There is a %(link_start)snewer version%(link_end)s of the "
|
|
||||||
"record available.\n"
|
|
||||||
" "
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:138
|
|
||||||
msgid "Files"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/landingpage/detail.html:146
|
|
||||||
msgid "Reason"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:52
|
|
||||||
msgid "Uploads"
|
|
||||||
msgstr ""
|
|
||||||
@@ -12,4 +12,4 @@ This file is imported by ``invenio_theme_tugraz.__init__``,
|
|||||||
and parsed by ``setup.py``.
|
and parsed by ``setup.py``.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = "3.4.0"
|
__version__ = "3.7.1.dev2"
|
||||||
|
|||||||
@@ -12,17 +12,8 @@ import binascii
|
|||||||
from os import environ
|
from os import environ
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
|
||||||
import requests
|
|
||||||
from elasticsearch_dsl.utils import AttrDict
|
from elasticsearch_dsl.utils import AttrDict
|
||||||
from flask import Blueprint, current_app, g, redirect, render_template, request, url_for
|
from flask import Blueprint, render_template
|
||||||
from flask_babelex import get_locale
|
|
||||||
from flask_login import login_required
|
|
||||||
from flask_menu import current_menu
|
|
||||||
from invenio_app_rdm.records_ui.views.decorators import (
|
|
||||||
pass_is_preview,
|
|
||||||
pass_record_files,
|
|
||||||
pass_record_or_draft,
|
|
||||||
)
|
|
||||||
from invenio_rdm_records.resources.serializers import UIJSONSerializer
|
from invenio_rdm_records.resources.serializers import UIJSONSerializer
|
||||||
|
|
||||||
from .search import FrontpageRecordsSearch
|
from .search import FrontpageRecordsSearch
|
||||||
@@ -41,9 +32,6 @@ def ui_blueprint(app):
|
|||||||
|
|
||||||
blueprint.add_url_rule(routes["index"], view_func=index)
|
blueprint.add_url_rule(routes["index"], view_func=index)
|
||||||
blueprint.add_url_rule(routes["comingsoon"], view_func=comingsoon)
|
blueprint.add_url_rule(routes["comingsoon"], view_func=comingsoon)
|
||||||
blueprint.add_url_rule(routes["guide"], view_func=guide)
|
|
||||||
blueprint.add_url_rule(routes["terms"], view_func=terms)
|
|
||||||
blueprint.add_url_rule(routes["gdpr"], view_func=gdpr)
|
|
||||||
|
|
||||||
@blueprint.app_template_filter("make_dict_like")
|
@blueprint.app_template_filter("make_dict_like")
|
||||||
def make_dict_like(value: str, key: str) -> Dict[str, str]:
|
def make_dict_like(value: str, key: str) -> Dict[str, str]:
|
||||||
@@ -82,45 +70,3 @@ def index():
|
|||||||
def comingsoon():
|
def comingsoon():
|
||||||
"""Comingsoon."""
|
"""Comingsoon."""
|
||||||
return render_template("invenio_theme_tugraz/comingsoon.html")
|
return render_template("invenio_theme_tugraz/comingsoon.html")
|
||||||
|
|
||||||
|
|
||||||
def guide():
|
|
||||||
"""TUGraz_Repository_Guide."""
|
|
||||||
locale = get_locale()
|
|
||||||
return redirect(url_for('static',
|
|
||||||
filename=f'documents/TUGraz_Repository_Guide_02_{locale}.pdf',
|
|
||||||
_external=True))
|
|
||||||
|
|
||||||
|
|
||||||
def terms():
|
|
||||||
"""Terms_And_Conditions."""
|
|
||||||
locale = get_locale()
|
|
||||||
return redirect(url_for('static',
|
|
||||||
filename=f'documents/TUGraz_Repository_Terms_And_Conditions_{locale}.pdf',
|
|
||||||
_external=True))
|
|
||||||
|
|
||||||
|
|
||||||
def gdpr():
|
|
||||||
"""General_Data_Protection_Rights."""
|
|
||||||
locale = get_locale()
|
|
||||||
return redirect(url_for('static',
|
|
||||||
filename=f'documents/TUGraz_Repository_General_Data_Protection_Rights_{locale}.pdf',
|
|
||||||
_external=True))
|
|
||||||
|
|
||||||
|
|
||||||
@pass_is_preview
|
|
||||||
@pass_record_or_draft
|
|
||||||
@pass_record_files
|
|
||||||
def record_detail(record=None, files=None, pid_value=None, is_preview=False):
|
|
||||||
"""Record detail page (aka landing page)."""
|
|
||||||
files_dict = None if files is None else files.to_dict()
|
|
||||||
|
|
||||||
return render_template(
|
|
||||||
"invenio_theme_tugraz/landingpage/detail.html",
|
|
||||||
record=UIJSONSerializer().serialize_object_to_dict(record.to_dict()),
|
|
||||||
pid=pid_value,
|
|
||||||
files=files_dict,
|
|
||||||
permissions=record.has_permissions_to(['edit', 'new_version', 'manage',
|
|
||||||
'update_draft', 'read_files']),
|
|
||||||
is_preview=is_preview,
|
|
||||||
)
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
# Copyright (C) 2020 TUGRAZ.
|
# Copyright (C) 2022 TUGRAZ.
|
||||||
#
|
#
|
||||||
# invenio-theme-tugraz is free software.
|
# invenio-theme-tugraz is free software.
|
||||||
|
|
||||||
@@ -17,25 +17,10 @@ theme = WebpackThemeBundle(
|
|||||||
entry={
|
entry={
|
||||||
"invenio-theme-tugraz-theme": "./less/invenio_theme_tugraz/theme.less",
|
"invenio-theme-tugraz-theme": "./less/invenio_theme_tugraz/theme.less",
|
||||||
"invenio-theme-tugraz-js": "./js/invenio_theme_tugraz/theme.js",
|
"invenio-theme-tugraz-js": "./js/invenio_theme_tugraz/theme.js",
|
||||||
# overrides RDM deposit form
|
"invenio-theme-tugraz-rdm-deposit": "./js/invenio_theme_tugraz/deposit/index.js",
|
||||||
'invenio-theme-tugraz-rdm-deposit': './js/invenio_theme_tugraz/deposit/index.js',
|
|
||||||
},
|
},
|
||||||
dependencies={
|
dependencies={
|
||||||
# add any additional npm dependencies here...
|
# add any additional npm dependencies here...
|
||||||
# Keep these dep: in sync with releases
|
|
||||||
"@babel/runtime": "^7.9.0",
|
|
||||||
'formik': '^2.1.4',
|
|
||||||
'luxon': '^1.23.0',
|
|
||||||
'path': '^0.12.7',
|
|
||||||
'prop-types': '^15.7.2',
|
|
||||||
'react-dnd': '^11.1.3',
|
|
||||||
'react-dnd-html5-backend': '^11.1.3',
|
|
||||||
'react-invenio-deposit': '^0.14.0',
|
|
||||||
'react-invenio-forms': '^0.7.0',
|
|
||||||
'react-dropzone': "^11.0.3",
|
|
||||||
'yup': '^0.27.0',
|
|
||||||
'@ckeditor/ckeditor5-build-classic': '^16.0.0',
|
|
||||||
'@ckeditor/ckeditor5-react': '^2.1.0',
|
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ trap cleanup EXIT
|
|||||||
|
|
||||||
|
|
||||||
python -m check_manifest --ignore ".*-requirements.txt"
|
python -m check_manifest --ignore ".*-requirements.txt"
|
||||||
python -m sphinx.cmd.build -qnNW docs docs/_build/html
|
python -m sphinx.cmd.build -qnN docs docs/_build/html
|
||||||
eval "$(docker-services-cli up --db ${DB:-postgresql} --search ${SEARCH:-elasticsearch} --cache ${CACHE:-redis} --env)"
|
eval "$(docker-services-cli up --db ${DB:-postgresql} --search ${SEARCH:-elasticsearch} --cache ${CACHE:-redis} --env)"
|
||||||
python -m pytest
|
python -m pytest
|
||||||
tests_exit_code=$?
|
tests_exit_code=$?
|
||||||
python -m sphinx.cmd.build -qnNW -b doctest docs docs/_build/doctest
|
python -m sphinx.cmd.build -qnN -b doctest docs docs/_build/doctest
|
||||||
exit "$tests_exit_code"
|
exit "$tests_exit_code"
|
||||||
|
|||||||
5
setup.py
5
setup.py
@@ -18,6 +18,7 @@ history = open("CHANGES.rst").read()
|
|||||||
tests_require = [
|
tests_require = [
|
||||||
"pytest-invenio>=1.4.0",
|
"pytest-invenio>=1.4.0",
|
||||||
"invenio-app>=1.3.0,<2.0.0",
|
"invenio-app>=1.3.0,<2.0.0",
|
||||||
|
"invenio-app-rdm>=7.0.1,<8.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Should follow invenio-app-rdm
|
# Should follow invenio-app-rdm
|
||||||
@@ -30,7 +31,7 @@ extras_require = {
|
|||||||
"postgresql": [f"invenio-db[postgresql,versioning]{invenio_db_version}"],
|
"postgresql": [f"invenio-db[postgresql,versioning]{invenio_db_version}"],
|
||||||
"sqlite": [f"invenio-db[versioning]{invenio_db_version}"],
|
"sqlite": [f"invenio-db[versioning]{invenio_db_version}"],
|
||||||
"docs": [
|
"docs": [
|
||||||
"Sphinx>=3",
|
"Sphinx==4.2.0",
|
||||||
],
|
],
|
||||||
"tests": tests_require,
|
"tests": tests_require,
|
||||||
}
|
}
|
||||||
@@ -56,7 +57,7 @@ install_requires = [
|
|||||||
"Flask-WebpackExt>=1.0.0",
|
"Flask-WebpackExt>=1.0.0",
|
||||||
"invenio-assets>=1.2.0",
|
"invenio-assets>=1.2.0",
|
||||||
"invenio-i18n>=1.2.0",
|
"invenio-i18n>=1.2.0",
|
||||||
"invenio_config_tugraz>=0.6.0",
|
"invenio_config_tugraz>=0.7.0,<0.8.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
packages = find_packages()
|
packages = find_packages()
|
||||||
|
|||||||
Reference in New Issue
Block a user