Re: [Wikidata-tech] lexeme fulltext search display

2018-06-18 Thread Leszek Manicki
On 19 June 2018 at 01:35, Stas Malyshev wrote: > Hi! > > > I can reimplement it manually, but I would be largely duplicating what > > HtmlPageLinkRendererBeginHookHandler is supposed to do. The problem > > seems to be that it is not doing it right. When the code works on the > > link like

Re: [Wikidata-tech] lexeme fulltext search display

2018-06-18 Thread Stas Malyshev
Hi! > I can reimplement it manually, but I would be largely duplicating what > HtmlPageLinkRendererBeginHookHandler is supposed to do. The problem > seems to be that it is not doing it right. When the code works on the > link like /wiki/Lexeme:L2#L2-F1, it does this: > > $entityId =

Re: [Wikidata-tech] lexeme fulltext search display

2018-06-18 Thread Stas Malyshev
Hi! > You can use an EntityTitleLookup to get the Title object for an EntityId. In > case of a Form, it will point to the appropriate section. You can use the OK, I see it's just adding form id as a fragment, so it's easy I guess. > LinkRenderer service to make a link. Or you use an

Re: [Wikidata-tech] lexeme fulltext search display

2018-06-18 Thread Daniel Kinzler
Am 18.06.2018 um 19:25 schrieb Stas Malyshev: > 1. What the link will be pointing to? I haven't found the code to > generate the link to specific Form. You can use an EntityTitleLookup to get the Title object for an EntityId. In case of a Form, it will point to the appropriate section. You can

Re: [Wikidata-tech] lexeme fulltext search display

2018-06-18 Thread Stas Malyshev
Hi! >> color/colour (L123) >> colors: plural for color (L123): English noun > > I'd rather have this: > > colors/colours (L123-F2) > plural of color (L123): English noun This part is a bit trickier since the title is still L123, so the system now is generating the link for L123. I could

Re: [Wikidata-tech] lexeme fulltext search display

2018-06-18 Thread Daniel Kinzler
Hi Stas! Your proposal is pretty much what I envision. Am 14.06.2018 um 19:39 schrieb Stas Malyshev: > I plan to display Lemma match like this: > > title (LN) > Synthetic description > > e.g. > > color/colour (L123) > English noun > > Meaning, the first line with link would be standard