sciencehistory / chf-sufia

sufia-based hydra app
Other
9 stars 4 forks source link

Add related URL label for Oral History Collection #1183

Closed yonyitz closed 5 years ago

yonyitz commented 6 years ago

Within Oral History Collection (https://digital.sciencehistory.org/collections/gt54kn818) please update "Related URL" to read "View Oral History catalog" instead.

eddierubeiz commented 6 years ago

@yonyitz -- let's discuss this on Monday. I think this is a great idea, but it might be worth broadening the scope of this to include more than collections. Also, I'm pretty sure there are other related feature requests which we might want to consider before starting work.

yonyitz commented 6 years ago

Sounds like a plan! Thanks!

jrochkind commented 6 years ago

@yonyitz Thanks for filing the issue, filing an issue is always good and fine!

@eddierubeiz I'm trying to keep us to a general procedure of not dropping whatever we're working on to look at every issue that gets filed -- and not needing to talk on Monday about every issue that gets filed either -- but instead relying on @HKativa to prioritize issues and decide when/if we should talk about/plan/implement them.

I think that's what keeps us sane as a development team -- not always interupting our work for everything new that comes in -- as well as ensures we are spending our time on what brings business value to the organization.

I see this one has been marked with a "please triage" label, which is great, probably useful to @HKativa and @yonyitz in keeping track of issues that haven't yet been brought to the table. Which is great.

eddierubeiz commented 6 years ago

Duly noted!

HKativa commented 6 years ago

Just following up on the thread above: per a conversation with @jrochkind re Github prioritization and workflow, I've asked @yonyitz to file any issues in "backlog" and label them "please triage." I'll regularly review both the "prioritized work" and "backlog" milestones and prioritize/move issues accordingly. As confirmed with @jrochkind, the development team will continue to actively work off of issues in the "prioritized work" milestone, which should match up with what we discuss in our weekly meeting.

jrochkind commented 6 years ago

We will plan to do this based on re-using the HTML-enabled description fields we have for items.

This code "sanitizes" HTML to only allow certain tags, on both form editing, and on display (to be double extra safe). The code used for items can be re-used for Collections.

HKativa commented 6 years ago

As discussed at the Tech check-in on 11/12/18, this issue specifically applies to the Collections form and desire to provide added context when linking to the homepage of the oral history microsite. See #1184 for related issue involving adding more context/description when linking to individual oral histories on Works form.

yonyitz commented 5 years ago

I'm reopening this after a conversation with Hillary and Eddie about enabling target="_blank" for collection descriptions so users aren't taken away from our site right away. Thanks for working on this, @eddierubeiz !

eddierubeiz commented 5 years ago

Yup! No problem at all; not a big change.

eddierubeiz commented 5 years ago

Per discussions on Slack, we're amending how we want this to work: For both collection description and item description, all links, regardless of where they point to, shall be automatically decorated with a target-"_blank" attribute.

Practically speaking, all link attributes will be stripped on the way into the database; the HTML will be decorated with the target attribute on the way out, just before the description is shown to the user.

eddierubeiz commented 5 years ago

I need a bit more guidance; we should discuss:

Should we keep either or both of these features? If so, for what class of URLs ?

jrochkind commented 5 years ago

Me and @eddierubeiz had a brief chat about above.

I had forgotten or not known about that existing functionality, nice find. Looking at it, I believe that existing functionality just came with sufia, and we've always had it but maybe never known or paid attention to having it.

The existing functionality automatically makes a link of a bare URL you include in a description, like if you just write http://example.com. Actually just like github does: http://example.com . As you can see there, it's a linked URL as text, but doesn't let you specify the text that should appear on screen, it's just the URL.

So the existing functionality doesn't meet the current requirements given here (with target blank, and the assumption of specifying the on-screen link text) -- we have to implement new functionality anyway, as a separate thing.

I don't think we need to add additional work by changing the existing func, which came from sufia -- it's probably fine just to leave it there, rather than adding more work to remove it, since it doesn't interfere with the new func.