Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2017-04-24 15:07:25



Reply to topic  [ 5 posts ] 
Search using SLURL 
Author Message

Joined: 2016-06-19 21:33:37
Posts: 56
Reply with quote
I'm not sure this is a viewer issue but the <category> portion of a SLURL for searching seems to have no limiting effect and the results are shown for what appears to be 'all'. According to http://wiki.secondlife.com/wiki/Viewer_URI_Name_Space, a SLURL of the format: secondlife:///app/search/places/park would search for 'park' in Places. I have tried various forms of the term 'places' (camel case, enclosed in quotes, escaped, etc) and the results of the search always seem relative to the 'all' category not the one I specify.


2017-04-06 15:51:33
Profile

Joined: 2009-03-17 18:42:51
Posts: 3534
Reply with quote
Yes, this is the expected behaviour, since the search category for search SLURLs is not yet implemented (see the sources, in indra/newview/llfloaterdirectory.cpp) and still marked "TODO".

Well, it will be supported now, starting with next release...


2017-04-06 18:28:23
Profile WWW

Joined: 2016-06-19 21:33:37
Posts: 56
Reply with quote
Quote:
Well, it will be supported now, starting with next release...
Very cool. I guess my use cases lead to finding 'odd' things. :-) I am using Lua to implement a quick 'command line/chat' search on /find <category> <term(s)>.


2017-04-06 18:34:22
Profile

Joined: 2016-06-19 21:33:37
Posts: 56
Reply with quote
Thanks for adding in category find/search functionality. I have tested it out and it works as expected.

On the topic of SLURLs though, I have discovered something and not sure if it is intended behavior or not. The following description may even belong in the Lua help section.

When entering a SLURL of format 'secondlife:///app/agent/<id>/displayname' in a chat line, it is rendered in the chat history as a link with the avatar's name (i.e. Zane Zimer). That's cool formatting and carries over if I use the Lua print function as well (i.e. Lua: Zane Zimer). However, when I use OpenNotification(0, 'secondlife:///app/agent/<id>/displayname'), the notification is formatted the same way as mentioned above for the notification but the mirrored, chat history test is the fully expanded link/SLURL. This does not happen for type 1 notifications as they don't mirror to the chat history. Not anything major, but I thought I would mention it. If it should be a separate topic, I can create one.


2017-04-08 16:48:19
Profile

Joined: 2009-03-17 18:42:51
Posts: 3534
Reply with quote
ZaneZimer wrote:
When entering a SLURL of format 'secondlife:///app/agent/<id>/displayname' in a chat line, it is rendered in the chat history as a link with the avatar's name (i.e. Zane Zimer). That's cool formatting and carries over if I use the Lua print function as well (i.e. Lua: Zane Zimer). However, when I use OpenNotification(0, 'secondlife:///app/agent/<id>/displayname'), the notification is formatted the same way as mentioned above for the notification but the mirrored, chat history test is the fully expanded link/SLURL. This does not happen for type 1 notifications as they don't mirror to the chat history. Not anything major, but I thought I would mention it. If it should be a separate topic, I can create one.
Yes, that's because the notification text is added to the chat history, not to the chat itself, and the SLURLs resolution scheme is only implemented for the latter... For next release, I reworked the code to move the resolution stuff into its own method and added a call to that method for the notification text in chat history...


2017-04-08 17:31:18
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.