Artifact single view display
The design for the single artifact is here: https://www.figma.com/file/LA1138Ao8EqY1YcG5NLKhiZy/CDLI?node-id=2428%3A10905
-
Under the title, the introductory sentence should be tweaked. Each part of the sentence should be optional based on availability of data. (CAPITALIZE FIRST LETTER of sentence) {genre} {object type} written in {written_in provenience}, excavated from {Provenience}, now kept in the {Collections (iterate)}. If there is no provenience, do not show "excavated from", etc. -
Add the EDIT button, visible to those with access only #474 (closed) -
Add the "Cite this page" with formatted citation, copy to clipboard thing etc. Can reuse the one for articles. -
In the export button drop down, add "CoNLL-U" and "Brat" in the Annotation section
Digital assets:
-
Only display the image viewing block if there is at least one public image to show -
Show the main image of the artifact in the image viewing box (main image is photo, if no photo line art, if no line art detail photo, if not, then enveloppe photo, if not, detail line art, if not, SVG, then nothing) -
thumbnail must not be reduced in size ( it it way too small right now) -
Plan how to show the links to all dl assets available (make a few examples and discuss with mentor)
Possible dl assets:
-
main photo
-
detail photo
-
envelope (photo)
-
line art
-
detail line art
-
pdf
-
rti surfaces (many)
-
3D render (many) [UPDATED]
-
SVG [UPDATED]
-
In the summary, change categories names "Museum collection(s)", Material(s), "Genre / Subgenre(s)", "Language(s)". For all those that can have more than one make sure it displays properly. For the genres, show Parent > child (still linking back to entity). -
In the Summary, if any of the values are uncertain, add a space then ? after the value. -
In the Summary, if any of the values are missing, add a dash instead of the value.
Inscriptions
-
Change title to "Inscription and annotations" -
Display the inscription -
Offer a switch to "print ready (UTF-8)" version of the inscription. -
Should be utf8 by default if user had that in search settings (to be added to settings) -
Show treebanking display #54 (closed) -
Keep in mind that in the future we will want to display translation side by side instead of inline -
Add a link "Consult previous versions and their differences" can make it /inscriptions/history/artifact_id for now ( the page doesn't exist yet) @larsgw
Physical Information
Column 1 :
-
- Collection(s): -
- Artifact type (if is_artifact_type_uncertain = 1 then write "[identification uncertain]") -
- Material(s): (list with commas, capitalize) -
- Artifact Preservation: -
- Surface Preservation: -
- Condition Description: -
- If the flag is_fake = 1 add "This artifact was made in modern times." -
- Artifact comments:
Column 2:
-
- Measurements (mm): x (thickness) x (hight) x (width) -
- Weight (grams): -
- This artifact is composed of fragments. (If has_fragments =1)
Text information
-
- Genre / Subgenre(s) (if is_genre_uncertain = 1 then write "[identification uncertain]") -
- If text Is_school_text = 1 " This text is a school text" -
- Language(s)
Publication Data
-
Full bibliographic reference for each linked publication. -
Also display publication_type, bibtex key, publication designation, exact reference, and publication_comments -
Link publication entry on the bibtex key or publication designation.
Identifiers
-
- Designation -
- CDLI No. -
- Composite No. -
- Seal No. -
- Museum No. -
- Accession No. -
- Excavation No. -
- Ark No.
Provenience & Excavation information
Column 1:
-
- Provenience: (if is_provenience_uncertain = 1 then write "[identification uncertain]") -
- Provenience Comments:
Column 2:
-
- Elevation: -
- Stratigraphic Level: -
- Findspot Square: -
- Findspot Comments: -
- Excavation No:
Chronology
-
- Period: (if is_period_uncertain = 1 then write "[identification uncertain]") -
- Period Comments: -
- Accounting Period: -
- Date(s) Referenced: (list) -
- Date Comments: -
- Alternative Years: -
Add a table with Date data from the extended date model, each entity item linking back to the entity
Composites and Witnesses
For each type below, display artifact_designation + (P no), then the intro sentence like at the top of the page.
-
If the artifact is a composite, list witnesses: "This artifact is a composite text. See below of a list of it's witness(es):" List P entries using artifacts.composite_no as key and find associated artifact_id (s) in artifacts_composites -
If the artifact it a witness, display composite:
"This artifact is the witness of a composite text. See below the the composite text:"
display P entry which has the Q no in artifacts.composite_no -
If the artifact is a seal ( physical or composite) list impressed artifacts: "This artifact is a physical seal, it was impressed on the following artifacts:" List P entries using artifacts.seal_no as key and find associated artifact_id (s) in artifacts_seals -
If artifact is impressed, list original seal: "This artifact has been impressed with a seal, see below for the associated seal": display P entry which has the S no in artifacts.seal_no -
If the artifact is a seal or is impressed with a seal, add artifacts.seal_information
External Resources
"Consult this artifact as presented on the website of collections and projects:"
-
Here list links to external resources one per line:
"<a href=".{external_resources.project_url}.">".{external_resources.external_resource}."</a>
<a href=". rtrim({external_resources.base_url},"/")."/".{artifacts_external_resources.external_resource_key}."> ".{Artifact designation + P no.}."</a>"
Credits and comments
Will be fixed separately #676 (closed)
other items
-
- We can keep the sections in that order for now and discuss it later when we can look at the implemented page. Information inside the sections should stay in the order defined here). -
- Columns are suggestions, no need to follow that suggestion -
If keeping the shadow section, make it visible only to admins for now
Remove :
-
Collections, Related collections, genres, languages