Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-webui
Merge requests
!90
F citation cff
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
F citation cff
f-citation-cff
into
dev
Overview
1
Commits
7
Pipelines
1
Changes
1
Closed
Alexander Schlemmer
requested to merge
f-citation-cff
into
dev
2 years ago
Overview
1
Commits
7
Pipelines
1
Changes
1
Adding a citation.cff file, see:
https://citation-file-format.github.io/
0
0
Merge request reports
Viewing commit
5b3b7c5c
Prev
Next
Show latest version
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5b3b7c5c
FIX: Problems with retrieving heading attributes with active preview.
· 5b3b7c5c
Alexander Schlemmer
authored
4 years ago
src/core/js/caosdb.js
+
3
−
3
View file @ 5b3b7c5c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -404,12 +404,13 @@ function getIDfromHREF(el) {
/**
* Return an entity heading attribute from an element.
*
* @param element The element holding the entity.
* @return The value of the entity heading attribute or undefined if it is not present.
*/
function
getEntityHeadingAttribute
(
element
,
attribute_name
)
{
var
res
=
e
lement
.
getElementsByClassName
(
"
caosdb-entity-heading-attr
"
)
;
var
res
=
findE
lement
ByConditions
(
element
,
x
=>
x
.
classList
.
contains
(
"
caosdb-entity-heading-attr
"
)
,
x
=>
x
.
classList
.
contains
(
"
caosdb-preview-container
"
));
for
(
var
i
=
0
;
i
<
res
.
length
;
i
++
)
{
var
subres
=
res
[
i
].
getElementsByClassName
(
"
caosdb-entity-heading-attr-name
"
);
if
(
subres
.
length
!=
1
)
{
@@ -444,7 +445,6 @@ function getEntityDescription(element) {
* @return A list of objects with name and id of the parents.
*/
function
getParents
(
element
)
{
// var res = element.getElementsByClassName("caosdb-parent-name");
var
res
=
findElementByConditions
(
element
,
x
=>
x
.
classList
.
contains
(
"
caosdb-parent-name
"
),
x
=>
x
.
classList
.
contains
(
"
caosdb-preview-container
"
));
var
list
=
[];
Loading