Project

General

Profile

Actions

Bug #2357

open

Wrong direction for external references with files

Added by Stefan Eichert 10 days ago. Updated 4 days ago.

Status:
In Progress
Priority:
Normal
Category:
CRM
Target version:
Start date:
2024-10-08
Estimated time:
Found in version:

Description

When adding a reference to a file this should mark the file to be referred to by the reference. E.g. for citing the publication where an image has been scanned from.
See for example https://thanados.openatlas.eu/entity/196385#tab-reference respectively the query:

SELECT l.id, e.name, e.id, l.property_code, e2.name, e2.id FROM model.link l JOIN model.entity e ON e.id = l.domain_id JOIN model.entity e2 ON e2.id = l.range_id WHERE 196385 IN (domain_id, range_id) AND property_code = 'P67'

this results in:

link_id name1 id1 property_code name2 id2
671041 Portrait of Ferdinand von Hochstetter 196385 P67 Ferdinand von Hochstetter 196330
671042 Hochstetter 1885 196077 P67 Portrait of Ferdinand von Hochstetter 196385
899449 Portrait of Ferdinand von Hochstetter 196385 P67 https://doi.org/10.57756/b291ht 237493

The first link means that the portrait (196385 - file) of Hochstetter shows him (196330) and is correct.
The second means that the book (196077 document) refers to the image (196385 - file) respectively that the image is from the book.
The third one seems buggy as it should like the second: The external reference (in this case a random doi) should refer to the file not the file to the external reference.,

Actions

Also available in: Atom PDF