ucsdlib / damspas

UC San Diego DAMS Hydra Head
Other
7 stars 5 forks source link

Re-ordering of DAMS elements #720

Closed VivianChu closed 4 years ago

VivianChu commented 4 years ago

References #632, https://github.com/ucsdlib/damsmanager/issues/368

Local Checklist

What does this PR do?

Re-ordering of DAMS elements in the UI.

Where should a reviewer start?

It's deployed to qa

Manual testing steps?

For example //rdc object http://libraryqa.ucsd.edu/dc/object/bb04139816 http://libraryqa.ucsd.edu/dc/object/bb2018464v

//non-rdc object http://libraryqa.ucsd.edu/dc/object/bb5157099g http://libraryqa.ucsd.edu/dc/object/bb1574705v http://libraryqa.ucsd.edu/dc/object/bb2083712b

@ucsdlib/developers - please review

VivianChu commented 4 years ago

Thanks @mcritchlow for reviewing. @hjsyoo already reviewed on QA. https://github.com/ucsdlib/damspas/issues/632#issuecomment-542932437

gamontoya commented 4 years ago

@VivianChu This adjustment looks good.

lsitu commented 4 years ago

@VivianChu I looks good and I just have a little question. Maybe we also need a test to validate cite this work are displayed for ldcp collections while preferred_citation_note are displayed for dlp collections?

hjsyoo commented 4 years ago

@lsitu For clarification, Cite This Work should be the displayed label for all objects regardless of Unit/Repository. Unit should only affect the relative placement of Note:Preferred citation. https://github.com/ucsdlib/damsmanager/issues/368#issuecomment-542347090

lsitu commented 4 years ago

@hjsyoo Thank for the clarification. Is it only the label change to Cite this Work for all objects for Note:Preferred citation? What do you mean for Unit should only affect the relative placement of Note:Preferred citation? It seems like the implementation may not reflect it.

hjsyoo commented 4 years ago

@lsitu Sorry about the confusion. I should have updated the specs, and will do so now. The related ticket, https://github.com/ucsdlib/damsmanager/issues/368, has new specs as discussed at the last dams-wg meeting, so the name of the ticket is currently misleading. To summarize https://github.com/ucsdlib/damspas/issues/632 and https://github.com/ucsdlib/damsmanager/issues/368, we would like the DAMS elements to be re-ordered as indicated in https://docs.google.com/spreadsheets/d/1n7REAqpt2vh_BQWXFhTbAyVQY5kI7JPOuBAhg8WYTmU/edit#gid=0, which I updated just now with better color-coding (I didn't touch the order of elements). In a nutshell, the elements for all objects and collections should be in the order indicated on the spreadsheet, noting the following conditional: 1) if the Unit is RDC, then Note:Preferred Citation should be placed near the top. 2) If Unit is non-RDC, then Note:Preferred Citation should be located near the bottom. 3) Both Notes should have the label, "Cite This Work".

VivianChu commented 4 years ago

@lsitu - You mentioned "the implementation may not reflect it". I did use the conditional statement to check for the unit and place the Note:Preferred Citation to different place.

https://github.com/ucsdlib/damspas/blob/262c157ba5d7dddc22290eb4a01d07ecc0684d77/app/views/shared/fields/_show_raw.erb#L12

https://github.com/ucsdlib/damspas/blob/262c157ba5d7dddc22290eb4a01d07ecc0684d77/app/views/shared/fields/_show_raw.erb#L102

lsitu commented 4 years ago

@hjsyoo @VivianChu Thanks for the clarification. I think it looks good and I can merge it. 👍 But the context of using dams:preferredCitationNote and Note:preferred citation that @VivianChu mentioned above is confusing.

hjsyoo commented 4 years ago

@arwenhutt Can you confirm that dams:preferredCitationNote is no longer used? I'm familiar with Note:preferred citation, but not dams:preferredCitationNote, if they are two different fields.

lsitu commented 4 years ago

@VivianChu I am moving forward to merge the PR now. I think we can create another ticket to cleanup the codes for dams:preferredCitationNote when needed.

VivianChu commented 4 years ago

Thanks @lsitu - Sounds good.

hjsyoo commented 4 years ago

Note from @arwenhutt : I think I can confirm that we don't use dams:preferredCitationNote currently. ...There could be old data, but we are currently using the "Note:preferred citation"