Skip to content

Commit

Permalink
hide funding information fields in author mode if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
olvidalo committed Sep 1, 2022
1 parent d05d823 commit f50e3d8
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions css/epidoc_c.less
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,18 @@ fileDesc titleStmt title {
display: block;
font-weight: bold;
font-size: 2em;
margin: 1em 0;
margin: 1em 0 0.5em 0;
-oxy-placeholder-content: "Titel des Textträgers (optional)";
}

fileDesc titleStmt {
-oxy-editable: false;

funder {
display: none;
}

funder:has(name:not(:empty)) {
display: block;
margin-bottom: 1rem;

Expand All @@ -233,9 +237,9 @@ fileDesc titleStmt {


name {
-oxy-display-tags: none;
display: block;

-oxy-display-tags: none;

&[type=institution]:before {
content: oxy_label(text, "Institution: ", width, 10em, text-align, right);
}
Expand All @@ -245,7 +249,7 @@ fileDesc titleStmt {
}
}

&:has(name:not(:empty)):after {
&:after {
display:block;
-oxy-foldable: true;
-oxy-folded: true;
Expand Down Expand Up @@ -323,8 +327,9 @@ publicationStmt * {

publicationStmt availability {
display: block;
margin: none;
content:
oxy_checkbox(edit, "status", values, "restricted", uncheckedValues, "", labels, "Datensatz für unregistrierte Benutzer verbegen")
oxy_checkbox(edit, "status", values, "restricted", uncheckedValues, "", labels, "Datensatz für unregistrierte Benutzer verbergen")
;
}

Expand Down

0 comments on commit f50e3d8

Please sign in to comment.