How to modify  the search results of the GUI for subscribing to calendars

How to modify the search results of the GUI for subscribing to calendars
Note:
<OL>
<LI>The following information applies only to iPlanet Calendar Server 5.0
Patch 3.
<LI>All of the cases for which the XSLT changes will work have not been
verified.
<LI>The following is only an example of an XSLT customization.
</OL>
The example below shows a sample customization of the
search_for_calendars
dialog. This customization will result in the Display Name being included as
part of the search results in the GUI, which would normally show just the
calendar ID. It will render the returned calendars in the following format:
<P>
Display Name - <I>description</I>
<P>
Normally, the format would be as follows:
<P>
Calendar-ID - <I>description</I>
<P>
</A>
The example consists of the following two files:
<P>
<OL>
<LI>search_for_calendars_common.xsl
(the entire XSLT file)
<P>
<LI>diffctx.txt
(the context sensitive diff patch file,
which basically shows only the changes that need to be made)
</OL>
<P>
<HR>
</A><B>
search_for_calendars_common.xsl</B>
<?xml version="1.0" ?>
<!DOCTYPE xsl:stylesheet (View Source for full doctype...)>
- <!--
set the output properties
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
result-ns="http://www.w3.org/TR/REC-html40">
-->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
- <!-- set the output properties
-->
<xsl:output method="html" encoding="ISO-8859-1" />
<xsl:include href="data/common.xsl" />
<xsl:include href="data/i18n.xsl" />
<xsl:include href="data/date_format.xsl" />
<xsl:include href="data/dialog_tabs.xsl" />
- <xsl:template match="/">
<xsl:apply-templates select="calendar" />
</xsl:template>
- <xsl:template match="calendar">
- <xsl:choose>
- <xsl:when test="@top='true'">
- <xsl:variable name="Frame1">
<xsl:value-of select="frame[1]" />
</xsl:variable>
- <xsl:variable name="Frame2">
<xsl:value-of select="frame[2]" />
</xsl:variable>
- <xsl:variable name="Frame3">
<xsl:value-of select="frame[3]" />
</xsl:variable>
- <xsl:variable name="tab_value">
<xsl:value-of select="@tab" />
</xsl:variable>
- <HTML>
- <HEAD>
<xsl:call-template name="contextJavascript" />
<TITLE>Calendars Search: Calendar Express - iPlanet</TITLE>
</HEAD>
- <FRAMESET border="0" frameborder="0" rows="77,*,71">
<FRAME name="tab" marginheight="0" marginwidth="0" scrolling="no"
scrollbars="no" src="{$Frame1}" />
<FRAME name="main" frameborder="0" src="{$Frame2}" />
<FRAME name="button" marginheight="0" marginwidth="0" scrolling="no"
scrollbars="no" frameborder="0" src="{$Frame3}" />
</FRAMESET>
</HTML>
</xsl:when>
- <xsl:when test="@view='searchProperties'">
- <xsl:for-each select="group">
- <xsl:if test="@name='searchProperties'">
<xsl:call-template name="search_toolbar" />
</xsl:if>
</xsl:for-each>
</xsl:when>
- <xsl:when test="@view='main'">
- <xsl:for-each select="group">
- <xsl:if test="@name='main'">
<xsl:call-template name="main" />
</xsl:if>
</xsl:for-each>
</xsl:when>
- <xsl:when test="@view='button'">
- <xsl:for-each select="group">
- <xsl:if test="@name='button'">
<xsl:call-template name="button_root" />
</xsl:if>
</xsl:for-each>
</xsl:when>
- <xsl:otherwise>
- <html>
What's this view? (search_for_cals.xsl) -
<xsl:value-of select="@view" />
</html>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
- <xsl:template name="search_toolbar">
- <HTML>
<xsl:call-template name="emit_frame_head_tag" />
- <BODY bgcolor="{$bgcolor_background}" background="imx/tdbg.gif"
marginwidth="0" marginheight="0" onload="window.focus()">
- <FORM>
- <xsl:attribute name="action">
<xsl:value-of select="./formdata@action" />
</xsl:attribute>
<xsl:attribute name="name">form</xsl:attribute>
<xsl:attribute name="onSubmit">document.forms[0]['find'].click(); return false;
</xsl:attribute>
<xsl:apply-templates select="formdata" />
- <CENTER>
- <TABLE border="0" cellpadding="2" cellspacing="0" width="100%" height="100%">
- <TR>
- <TD align="center">
- <TABLE border="0" cellpadding="3" cellspacing="1">
- <TR>
- <TD colspan="4">
<FONT size="{$font_size_big_2}" face="{$font_name}">Find all calendars where
the calendar</FONT>
</TD>
</TR>
- <TR>
- <TD valign="baseline">
- <FONT size="{$font_size_big_2}" face="{$font_name}">
- <SELECT name="which">
<OPTION value="name;calid">name or ID</OPTION>
<OPTION value="name">name</OPTION>
<OPTION value="primaryOwner">primary owner</OPTION>
<OPTION value="calid">ID</OPTION>
</SELECT>
</FONT>
</TD>
- <TD valign="baseline">
- <FONT size="{$font_size_big_2}" face="{$font_name}">
- <SELECT name="how">
<OPTION value="0">contains</OPTION>
<OPTION value="1">begins with</OPTION>
</SELECT>
</FONT>
</TD>
- <TD valign="baseline">
<INPUT type="text" name="what" />
</TD>
- <TD valign="baseline">
- <FONT size="{$font_size_big_2}" face="{$font_name}">
- <INPUT type="button" name="find" value="Find">
- <xsl:attribute name="onClick">
<xsl:value-of select="./button[@name='find']" />
</xsl:attribute>
</INPUT>
</FONT>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</CENTER>
</FORM>
</BODY>
</HTML>
</xsl:template>
- <xsl:template name="main">
- <HTML>
<xsl:call-template name="emit_frame_head_tag" />
- <BODY bgcolor="{$bgcolor_background}" background="imx/tdbg.gif"
marginwidth="0" marginheight="0">
- <FORM name="form" method="post">
- <xsl:attribute name="action">
<xsl:value-of select="./formdata@action" />
</xsl:attribute>
<xsl:attribute name="name">form</xsl:attribute>
<xsl:apply-templates select="formdata" />
<INPUT type="hidden" name="how" value="0" />
<INPUT type="hidden" name="which" value="name;calid" />
<INPUT type="hidden" name="what" value=" />
<INPUT type="hidden" name="selectedGroup" />
- <xsl:if test="(./calsearchresults/nomatch)">
- <!-- print no match found
-->
&#38;nbsp;
&#38;nbsp;
No Match Found
</xsl:if>
- <xsl:for-each select="./calsearchresults/searchresultcal">
- <P>
&#38;nbsp;
&#38;nbsp;
- <FONT size="{$font_size_big_2}" face="{$font_name}">
- <FONT size="{$font_size_big}" face="{$font_name}">
Owner:
<xsl:value-of select="@owner" />
<FONT size="{$font_size_big}" face="{$font_name}" color="{$bgcolor_wend_mid}">|
</FONT>
Calendar ID:
<xsl:value-of select="@id" />
<BR />
</FONT>
- <FONT size="{$font_size_big_2}" face="{$font_name}">
- <xsl:choose>
- <xsl:when test="@subscribed='false'">
&#38;nbsp;
&#38;nbsp;
- <INPUT type="checkbox" name="calendar">
- <xsl:attribute name="value">
<xsl:value-of select="@name" />
</xsl:attribute>
</INPUT>
&#38;nbsp;
&#38;nbsp;
- <A target="_blank">
- <xsl:attribute name="href">
<xsl:value-of select="@viewCommand" />
</xsl:attribute>
<xsl:value-of select="@name" />
</A>
</xsl:when>
- <xsl:otherwise>
&#38;nbsp;
&#38;nbsp;
- <A target="_blank">
- <xsl:attribute name="href">
<xsl:value-of select="@viewCommand" />
</xsl:attribute>
<xsl:value-of select="@name" />
</A>
&#38;nbsp;
(Subscribed)
</xsl:otherwise>
</xsl:choose>
- <xsl:if test="string-length(@description) > 0">
&#38;nbsp;
&#38;nbsp;
- <FONT size="{$font_size_big}" face="{$font_name}">
<xsl:value-of select="@description" />
</FONT>
</xsl:if>
</FONT>
</FONT>
</P>
</xsl:for-each>
</FORM>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
<P>
<A HREF="#back">Back</A>
<P>
<HR>
</A>
<B>diffctx.txt</B>
Index: search_for_calendars_common.xsl
===================================================================
RCS file: /m/src/ns/server/msg/calendar/core/html/search_for_calendars_common.xsl,v
retrieving revision 1.1.2.14
diff -c -r1.1.2.14 search_for_calendars_common.xsl
*** search_for_calendars_common.xsl 2000/12/12 23:10:43 1.1.2.14
--- search_for_calendars_common.xsl 2001/03/15 23:55:19
*** 182,188 ****
&#38;nbsp; &#38;nbsp;
<INPUT type="checkbox" name="calendar">
<xsl:attribute name="value">
! <xsl:value-of select="@id"/>
</xsl:attribute>
</INPUT>
&#38;nbsp; &#38;nbsp;
--- 182,188 ----
&#38;nbsp; &#38;nbsp;
<INPUT type="checkbox" name="calendar">
<xsl:attribute name="value">
! <xsl:value-of select="@name"/>
</xsl:attribute>
</INPUT>
&#38;nbsp; &#38;nbsp;
*** 190,196 ****
<xsl:attribute name="href">
<xsl:value-of select="@viewCommand"/>
</xsl:attribute>
! <xsl:value-of select="@id"/>
</A>
</xsl:when>
<xsl:otherwise>
--- 190,196 ----
<xsl:attribute name="href">
<xsl:value-of select="@viewCommand"/>
</xsl:attribute>
! <xsl:value-of select="@name"/>
</A>
</xsl:when>
<xsl:otherwise>
*** 199,205 ****
<xsl:attribute name="href">
<xsl:value-of select="@viewCommand"/>
</xsl:attribute>
! <xsl:value-of select="@id"/>
</A>
&#38;nbsp;(Subscribed)
</xsl:otherwise>
--- 199,205 ----
<xsl:attribute name="href">
<xsl:value-of select="@viewCommand"/>
</xsl:attribute>
! <xsl:value-of select="@name"/>
</A>
&#38;nbsp;(Subscribed)
</xsl:otherwise>
<P>
<A HREF="#back">Back</A>

Maybe on the Google API s page?

Similar Messages

  • In iTunes 11.0.2.26, an Albums search by track names returns albums as if they only have one track on them, but I still want to access the entire album. How can I have the search results show the entire album (with just the searched for name highlighted)?

    Hello, all.
    In iTunes 11.0.2.26, an Albums search by track names returns albums as if they only have one track on them, but I still want to access the entire album. How can I have the search results show the entire album (with just the searched for name highlighted)? For instance, I'm wanting to play an album with a particular track on it or I'm searching for albums that include that track. iTunes incorrectly assumes that all I'm after is that one track and then incorrectly displays the album as if there is only one ttrack on it. This is a bonkers default setting. Can I change this?

    Click the search magnifying glass and uncheck "Search entire library".
    Type in the name of the track.
    Click the album of interest to show tracks.
    Select the track.
    Press the X in the search box to clear the search.
    Double click the track you want to start playing first.
    tt2

  • I use google search.When I click on a suggestion in the search results tab, I want it to open in a new tab and keep the search results in the original tab.How?

    For example, when I enter the search term "armoires" and get a search results page/tab with suggestions such as Sears, JCPenney, or Amazon, I want to be able to click on Sears and have the Sears page open in a new page/tab. I want to be able to close the Sears tab and be able to use the search results tab again.

    In order to change your Firefox Configuration please do the following steps :
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''' to continue to the about:config page.
    # Look to '''browser.search.openintab''' change its value to '''true'''.
    With this configuration your search will be open in a new tab

  • Searching paragraphs using automator and deleting the search results from the original body of text

    How do I search paragraphs of a text document using automator and then have the search results deleted from the text document after those search results are exported to a textedit document?

    How do I search paragraphs of a text document using automator and then have the search results deleted from the text document after those search results are exported to a textedit document?

  • How to customize the search results window

    hi,
    in my search results page, i need to add a link/button for every document searched. on click of this link/ button i need to capture the document/file url and  insert it into  a splist.
    is it possible to customize  the search results window? 
    below is the snapshot: i need to add the link/button Add link to DB on each and every document retrieved by the crawler.
     help is highly appreciated ! 

    hi
    thnx for the reply. i am using the default search box in my sub site. and i am able to get the search results with the  help of default search  results.
    but i dont know how to replace this search results web part with a  content search web part, such that i can insert html link or button  or jquery.
    Can you pls  elaborate , how can i replace the existing search results web part with the content search WP such that ,  the other display detals - document link, description, etc are intact-.

  • How to display the detailed navigation with the Search Results

    Hello Gurus,
    I was able to display the search results in the same frame rather than opening the new window and getting it displayed. Now when the search results are displayed, my detailed navigation and portal favorites etc.. all the iviews are automatically suppressed.
    Please help me displaying the search results with Navigation Panel.
    Regards
    V.

    Hi Vaibhav,
    What do you mean by suppressed?
    Is it gone, or just closed?
    If it is just closed, you can try 2 things:
    1. Check if the property "Initial State of Navigation Panel" of the page has any influence.
    2. There is a javascript method that opens it.
    You can see it by importing the file '<b>com.sap.portal.layouts.framework.par.bak</b>'.
    Navigate to
    System Administration -> Support -> Support Desk -> Portal Runtime -> Browse deployment
    then the folder
    ROOT/WEB-INF/deployment/pcd
    and press download.
    Import from par to Developer Studio, and check the javascript files under dist/PORTAL-INF for a function called something like 'expandTray'.
    Hope that helps,
    Yoav.

  • When using the search bar, is it possible to get the search results in a new tab?

    In the old Google toolbar, it was possible to view the search results in a new tab. Google toolbar is compatible with Firefox 7, so I have to use the Firefox Search Bar. However, it always gets the search results in the current tab. Can this be modified?

    Yes. Open a new tab and type or paste ''about:config'' into the location bar, hit enter, and hit enter again to get past the warning. Then paste ''browser.search.openintab'' into the filter box that shows, then double-click on the ''browser.search.openintab'' line to toggle it (it will switch to bold).
    If you'd rather an addon just do the above for you and add a menu option for it, try this:
    https://addons.mozilla.org/firefox/addon/searchontab/
    Alternatively, you can type a search into the search bar and press ''alt+enter'' instead of just enter to open your search in a new tab.

  • How do I display search results in a new window?

    Our current search feature (http://mainedreamvacation.businesscatalyst.com/business-search) displays the search results in the same page. When someone clicks to see the details page, the goes "back" the browser displays an alert asking the user if they want to re-submit the form.
    Is there a way for the search results to display in a new window? My hope is that by loading results into a new window, a user could click to see the detail, then return without the alert message.
    I'm open to simply suppressing the alert message, but I don't think that's possible.
    I should point out that this is NOT a site search. Also, I have tried  {module_webappsresults,,_blank} without success.
    Thanks!

    Hi Tim,
    The approach would be similar to customizing this for normal site search. 
    You'll need to locate the page where you inserted the web app search access the html and locate the pageID in the form action.  Use the same method found in the site search to apply the specific page.
    - http://helpx.adobe.com/business-catalyst/partner/add-search-form.html> Point to the results page
    **Ensure you please the {module_webappsresults} on the custom page to have the content display as well. 
    Kind regards,
    -Sidney

  • How can I remove the Location column from the search results in a .chm file?

    How can I remove the Location column from the search results in a .chm file?
    I generated the file in Robohelp HTML 9.
    As far as I know it's used when you've combined more than one source into the final help file. It is possible (though I don't remember doing it) that I did that once a couple of years ago but now I'm only using one source - the project that's generating the .chm.
    Can anyone tell me how I can remove it?
    Thanks
    Tom

    In Project Setup look at the Window properties. I think you will find Advanced Search is ticked.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • In a Google search, clicking on a search result causes the new page to open with the search terms highlighted in yellow -- how can I turn off th

    In a Google search within a Firefox session, clicking on a search result causes the new page to open with the search terms highlighted in yellow -- how can I turn off this highlighting?

    Try to clear the Google cookies and redo those Google options.
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • How Can I View Only The Search Results

    I'm very frustrated trying to display only my 5 star rated images so that I can export them.  WhenI search I get all the five star images plus all the other images in stacks with them.  How can I just ge the search result images?

    For that you would need to unstack your images from the stack. If your image is a part of the stack and it meets the desired search criteria ( in your case 5 star), then complete stack is shown in the search results.
    If you want to bypass complete stack out of your search , you can use Find by Details (Metadata) search as -
    Rating is 5
    And
    Stack is not in a stack

  • How to display the search result without reloading the whole page

    HI,
    I have separate fragments for Search Box to enter keyword and Search Result to display the result. Also I have different sections within the page to put these fragments. So how could I display the results without reloading the whole page.
    Also if I have next button in my search result area, how could I display the search results in next page without reloading all other sections present in our page. Please let me know if any service or idoc function present such that result could be shown in search result section without reloading whole page.
    Please let me know how to restrict page reload for every action within a page.
    Thanks,
    Ramesh
    Edited by: Ramesh_Est on May 27, 2010 3:14 AM
    Edited by: Ramesh_Est on May 27, 2010 8:39 PM

    This is default behaviour of the template of your space. You can create a new page template and than you can create a region for the search results.
    Or you can create a custom taskflow were you use the webcenter taskflows to search for the space.
    Take a look at this white paper:
    Extending webcenter spaces: http://www.oracle.com/technology/products/webcenter/pdf/owcs_r11_extend_spaces_wp.pdf
    and this one:
    Customizing site templates: http://www.oracle.com/technology/products/webcenter/pdf/owcs_ps1_site_template_wp.pdf
    Edited by: Yannick.O on 13-Apr-2010 02:32

  • How do I get the top links in the search results page to display the folder?

    In the search results page, if you click on the top link from each result, it only brings up the description. Not much use as a link, so was wondering how you display the folder from this link.

    Is this for the general public or just for you?  If it is for the general public then insert this code at the top of the page:
    <TITLE>---</TITLE>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    </HEAD>
    And also at the end of the file after the closing body tag:
    </BODY>
    <HEAD>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    </HEAD>
    </HTML>
    It is unorthodox but it works.

  • How can I reduce the width between search results and the preview fly-out?

    Hello, I am using a custom masterpage that reduces the overall width of page content but I am seeing an issue with my enterprise search site. The search results look fine but there is a large horizontal gap between the results and document preview window
    (when mousing over a word/excel/powerpoint result). This means that the preview fly-out is hardly visible unless the user scrolls horizontally to the right. Can someone tell me how to set a reduced width between the results web part and the preview window?
    Example:

    I think the issue is with the Callout orientation, have you customized the page and if so then you can customize the callout.
    check "beakOrientation" and you can set values like topBottom, leftRight as per your requirement.
    see here for more information -
    http://msdn.microsoft.com/en-us/library/office/dn135236(v=office.15).aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How to make Firefox open the search results in a new tab instead of on top of already opened page?

    When I do the search through the search window on the top right corner, the search results open on top of the page I'm viewing at that moment, instead of in a new tab, so I have to keep remembering to open a new tab before each search. How do I change this, that the results would open up in a new tab?

    about:config
    set browser.search.openintab to true

Maybe you are looking for

  • Reg. Chart of account assignment problem

    Dear Experts I have created new company code NCP in ECC 6 ides and create one new chart of account NCCA, In this case I cann't assigned the chart of account in OB62,if I do so, the following error occured Different chart of account is assigned NCCP -

  • Mercury Playback Engine GPU not available

    I've been reading through forum postings and have not found a solution, so I apologize if there is a solution posted elsewhere. I have a 27" iMac (late 2012) with NVIDIA GeForce GTX 680MX graphics card running Mac OS 10.8.5. I'm using Adobe Premiere

  • TNS listener failure

    Hi I am a newbie to programming and to Oracle. I have Oracle SQL Developer installed on my machine. But I have having a hard time connecting to my database. I keep getting the fol error from the Database Connection window: "Status: Failure-Listener r

  • SPARC-10 Boot Failure-HELP!

    We routinely use ufsdump/ufsrestore to pre-configure systems before field deployment. Suddenly, disks built this way won't boot! Errors are: short read 0x2000 characters read disk read error <above repeated 2 - 6 times> boot: can't find /misc/krtld b

  • Firefox performed an automatic update on my machine and now my firefox will not connect to the internet

    today firefox performed an unexpected update and now it doesn't work (connect to the internet)