I'm trying to write a search in our Wagn which is analogous to this one in Group Patterns Wiki:
http://grouppatternlanguage.org/wagn/Patterns_by_category
{"type": "Category",
"sort": "name",
"append": "patterns view",
"view": "content"
}
http://grouppatternlanguage.org/wagn/patterns_view does not seem to have any content or settings or a related +*right card, unlike some of the other searches in that wiki - I can't tell where this is implemented at all.
Some of the other views have visible searches such as: http://grouppatternlanguage.org/wagn/pattern_category_view+*right+*content
Re the "patterns view", there is nothing special about that word, it's just an arbitrary plus card configured through "patterns view+*right" settings. You can create as many of these kinds of plus cards as you like. You currently do this just by creating these cards by hand -- there's not a lot of interface for it.
Do I understand correctly that you want to create a listing of Organizations grouped by org type? If so, you'll first want to create a search that produces all the orgtypes. How this works depends on how you have organized your org type cards. If, for example, you have a cardtype called "orgtype", you may just want something as simple as:
type: orgtype, sort: name
This might return something like:
Nonprofit
For-profit
Government
..whatever
Then, basically, you want to take each of these orgtypes and make a special plus card that shows its name and a search of the organizations that have that type. for example, if you decide to call it "+org type summary", then you would add this to the search:
append: org type summary
and it would return
Nonprofit+org type summary
For-profit+org type summary
.... etc
Having done that, the challenge is to configure each of these cards using the "org type summary+*right" set. you set the content for members of that set using the *content setting.
For example, it might look something like this:
{"type":"organization", "plus":["org type", {"refer_to":"_self"}]}
In the context of "Nonprofit + org type summary", _left would refer to "Nonprofit". So "_left+organization list" would refer to "Nonprofit+organization list".
At that point, you can configure another search to show the list of organizations in that list with "organization list+*right" settings. Presumably, you'd want to set +*content to something like:
{"type":"organization", "plus":["org type", {"refer_to":"_self"}]}
I'm sure this would all need tweaking to work, but I hope it gives you some sense of how the pieces fit together.
-ethan
It looks like the right hand search is not evaluating - not sure what is wrong with the syntax.
http://hub.personaldataecosystem.org/wagn/orgs_by_type_view+*right+*content
{"type":"organization", "plus":["org type", {"refer_to":"_self"}]}
http://hub.personaldataecosystem.org/wagn/Organizations_by_type
Government Agency —
{"type":"organization", "plus":["org type", {"refer_to":"_self"}]}
Nonprofit Advocacy Group —
{"type":"organization", "plus":["org type", {"refer_to":"_self"}]}
Also set up http://hub.personaldataecosystem.org/wagn/orgs_by_type_view+*right+*content
{"type":"organization", "plus":["org type", {"refer_to":"_self"}]}
--Joseph Boyle.....Mon May 02 18:13:29 -0700 2011
Sent Ethan invitation to an account on hub.
--Joseph Boyle.....Mon May 02 18:37:13 -0700 2011
Oh, you were very very close.
The inclusion wasn't evaluating because the html looked like this:
<span>{</span>{ _left + ......
I deleted those spans and it worked fine. I also had to change "org type" to "orgtype" in the query to match the name you'd used. Seems to be working now.
--Ethan McCutchen.....Tue May 03 12:09:37 -0700 2011