Line 224: |
Line 224: |
| | | |
| === 4. Search Select Branch === | | === 4. Search Select Branch === |
− | This very simple mod adds branch selection box to the end-user pull-down people search, but only for users who are logged in. | + | This very simple mod adds a branch selection box to the end-user pull-down people search, but only for users who are logged in. |
| <!-- *** BEGIN DOUBLE TOGGLE --><span class="mw-collapsible mw-customtoggle-selectbranch1 mw-customtoggle-selectbranch2" id='mw-customcollapsible-selectbranch1' style="text-decoration:underline;color:#0645ad;">[See Details]</span>. | | <!-- *** BEGIN DOUBLE TOGGLE --><span class="mw-collapsible mw-customtoggle-selectbranch1 mw-customtoggle-selectbranch2" id='mw-customcollapsible-selectbranch1' style="text-decoration:underline;color:#0645ad;">[See Details]</span>. |
| <div class="mw-customtoggle-selectbranch1 mw-customtoggle-selectbranch2" class='mw-collapsible mw-collapsible-content mw-collapsed' id='mw-customcollapsible-selectbranch2' style="border:thin solid grey;"><!-- BEGIN TOGGLED CONTENT --> | | <div class="mw-customtoggle-selectbranch1 mw-customtoggle-selectbranch2" class='mw-collapsible mw-collapsible-content mw-collapsed' id='mw-customcollapsible-selectbranch2' style="border:thin solid grey;"><!-- BEGIN TOGGLED CONTENT --> |
− | <div class="mw-customtoggle-selectbranch1 mw-customtoggle-selectbranch2" style="text-decoration:underline;color:#0645ad;float:right;">[Hide Details]</div>Here's a screen clip from my one-tree test site.<br>[[Image:search_select_branch-1tree.jpg]]<br>When the user has an assigned branch, that branch is listed first.<br>[[Media:search_select_branch_v12.0.0.0.zip|search_select_branch_v12.0.0.0]] | + | <div class="mw-customtoggle-selectbranch1 mw-customtoggle-selectbranch2" style="text-decoration:underline;color:#0645ad;float:right;">[Hide Details]</div> |
| + | If the user is assigned to a tree or branch, then that tree or branch is listed first, then "All". I think that users will want "All" most of the time, so I added an "All" button that lets users select "All" without having to click on the selection box, possibly scroll up to the top and select "All" there. |
| + | Here's a screen clip from my one-tree test site.<div>[[Image:search_select_branch-1tree.jpg]]</div>And here's a screen shot from a multi-tree site, where the trees are selectable by themselves, and all branches are identified as {tree}/{branch}<br><div>[[Image:search_select_branch-1tree.jpg]]</div>[[Media:search_select_branch_v12.0.0.0.zip|search_select_branch_v12.0.0.0]] |
| | | |
− | ==== Questions ==== | + | ==== Enhancements & Questions ==== |
− | # It appears that the Branch selection box in the Advanced People Search form only shows branches if the user is assigned to a branch, but it does show all branches. I don't really understand why it would not let all users select a branch to search. Should this mod work the same way that the Advanced People Search does? | + | # It appears that the Branch selection box in the Advanced People Search form only shows branches if the user is assigned to a branch, but it does show all branches. I don't really understand why the native branch search option works the way it does - if a user assigned to branch x can see and select branches y and z, I would expect logged in users who aren't assigned to a branch to be able to select branches y and z (and x, of course). But it is what it is. Should this branch selection in the drop-down search work the same way as the selection in the Advanced search form? |
− | # What else? | + | # We don't often see "option groups" in selection boxes, but the tree/branch hierarchy could quite readily be represented by option groups, thus removing the tree name from the front of every branch name. What do you think? |
| + | # Anything else? |
| <!-- BUTTON AT THE BOTTOM OF TOGGLED CONTENT --><div class="mw-customtoggle-selectbranch1 mw-customtoggle-selectbranch2" style="text-decoration:underline;color:#0645ad;text-align:right;">[Hide the Search Select Branch Documentation]</div> | | <!-- BUTTON AT THE BOTTOM OF TOGGLED CONTENT --><div class="mw-customtoggle-selectbranch1 mw-customtoggle-selectbranch2" style="text-decoration:underline;color:#0645ad;text-align:right;">[Hide the Search Select Branch Documentation]</div> |
| </div><!-- END TOGGLED CONTENT and END DOUBLE TOGGLE --> | | </div><!-- END TOGGLED CONTENT and END DOUBLE TOGGLE --> |