informatics-isi-edu / mesh-viewer

3D mesh viewer
1 stars 1 forks source link

handling Label and Label_Alt #54

Closed robes closed 5 years ago

robes commented 5 years ago

there are situations where the Label_Alt provides some additional information that helps to refine the "Label". For example, if we project an anatomical term as the Label for a landmark, there may be a more meaningful explanation (more precise) passed in the Label_Alt.

Revise logic for display label presentation. For this pseudocode, let's say that Display_Label is what we are going to show to the user.

IF Label AND Label_Alt THEN
  Display_Label = "Label (Label_Alt)"
ELSE IF Label:
  Display_Label = "Label"
ELSE IF Label_Alt:
  Display_Label = "Label_Alt"
ELSE
  Display_Label = basename(URL)

When combined with a Label_RID, the whole Display_Label should form the text for the link. That is, we don't need to make only the Label part be the link text.

robes commented 5 years ago

tested on dev