Managed Metadata Refiner and Displaying the Full Path

Does anyone know how best to work with the metadata refiner for a column that is set to show the full path of the tag?  We need to display the full path for this column when used in various views; however, when the full path is shown is the search refiner
it is too long and run out into the search results.  (see picture)
Is there a way to only show the tag name and not the full path to the tag within the refiner but still have it show the full path within libraries?  Thank you

Daniel,
Thank you for this article.  It looks like it would help, but when I replace the xslt with what's suggested in the article my refinement panel disappears.  Perhaps I'm not implementing it correctly.  I have a couple of managed metadata refiners
listed as the first two refiners in the panel in addition to the usual ones such as author, date, site.
What I did is that I replaced the xslt inside the <a> tags with the xlst mentioned in the article.
<a class="ms-searchref-filterlink" href="{$SecureUrl}" title="{$RefineByHeading}: {$UrlTooltip}">
<xsl:value-of select="Value"/></a>
with
<a class="ms-searchref-filterlink" href="{$SecureUrl}" title="{$RefineByHeading}: {$UrlTooltip}">
<xsl:variable name="PartOfValue">
<xsl:call-template name="substring-after-last">
<xsl:with-param name="string" select="Value" />
<xsl:with-param name="delimiter" select="':'" />
</xsl:call-template>
</xsl:variable>
<xsl:variable name="PartOfTooltip">
<xsl:call-template name="substring-after-last">
<xsl:with-param name="string" select="$UrlTooltip" />
<xsl:with-param name="delimiter" select="':'" />
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="($FilterCategoryType = 'Microsoft.Office.Server.Search.WebControls.TaxonomyFilterGenerator') and ($PartOfValue != '')">
<xsl:if test="not(contains($PartOfValue, '…'))">
<xsl:value-of select="$PartOfValue"/>
</xsl:if>
<xsl:if test="contains($PartOfValue, '…')">
<xsl:value-of select="$PartOfTooltip"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Value"/>
</xsl:otherwise>
</xsl:choose>
</a>
Is this correct? Thanks for the help.
Matthew

Similar Messages

  • How do I obtain the full path string for my file?

    Many Mac applications are particularly bad at guessing what folder I want to grab a file from.  As a result, I waste a great deal of time fishing all through my directory tree in order to put and take my files in and from the right location.  It does seem to be better is some applications but still the nuisance is an issue.  Of course in Windows this can happen too except there I have a workaround to help out the foolish applications.  I can copy the full literal path to the clipboard from Explorer.  Then when the file access dialog comes up I can paste the full literal path ahead of the filename and snap to the correct folder.  On my mac, I have had mixed success approximating this strategy.  Sometimes, if the target folder isn't empty, I can use the Finder to browse to the target folder and open the Get Info dialog for a file and copy the full path from within that dialog.  This does not work though when the folder is empty and Mac does not support the create new text file on the fly feature.  Furthermore, I have noticed some strange behavior even when I do have the full path copied.  One such example is using TextEdit, pasting this full path has resulted in the application using the full path as a really long filename for the new file which still resides in the folder the application incorrectly assumed.
    There is a list box in most Mac file access dialogs with _some_ of the recent folders I accessed listed for quick selection but nine times out for ten the folder I just came from isn't among them.  That detail really surprises me.  Do regular Mac users have habits that prevent problems like this, or is there a better way to _bank_ a literal folder location I know I'll need to use soon and often, or do I just need to get used to fishing for folders during file access?

    Welcome to Apple Support Communities. Most of us are users here.
    Create folders and drag those 'frequently used' folders to the left-hand FAVORITES column/sidebar in Finder.
    Then just drag your files to the destination folders, or click on them to select them as destinations from your applications.
    When you no longer need these folders, right-click to remove them from the FAVORITES sidebar.
    They'll still be in the original location where they were created, just no longer visible in the sidebar.
    Another thing to note is that the full path of your current destination is shown at the bottom of the screen in Finder. In this case Macintosh HD, Users, (Home folder name), Desktop.

  • How to open a file and display the complete file path?

    In my script, I want to create a dialog that prompts the user to define a few variables for the script. One of those variables is the path to a template file. I want it to work the same way that an upload form works. You click the browse button, the dialog appears so that you can browse for the file and then when you click OK or Open, the full path of the file is displayed in the text box next to it. How do I do this with JavaScript? I got this far and it seems to be working, but the wrong text is being displayed in the text box. Plus: How do I properly restrict the file types to PSD. The code doesn't seem to work, despite the fact that there are no errors reported. Initially the Text box is blank, but After I browse for the file, the text box says: "File". Here is the problem area:
    defineVars.STPnl.STBrowse.onClick = function browseST() {
    var stbFile = File.openDialog("Select the Single Mugshot Key Template File", "File Types: *.psd, *.PSD");
    defineVars.STPnl.STPath.text = stbFile;
    Thank you to whoever assists me! :)

    Change this:
    defineVars.STPnl.STPath.text = stbFile;
    To this:
    defineVars.STPnl.STPath.text = stbFile.fullName;
    The reason is that stbFile is a File object, you need to access its properties in order to get the full path.

  • Can not connect the database via query string (C#). The SQL Server Management Studio is showing the full path of a location instead of database name.

    I can not connect to the database via C#. The database is showing full path of the database file instead of the database name. See the pic: a database showing only name 'emart' and the other database showing the full path.
    : Robby

    Hi,
    According to your post, I know that the database name is showing file path of the database rather than the database name in SQL Server Management Studio. You were not able to
    establish a connection to the database using C#.
    As Olaf said, was any error message thrown out when the connection failed? How did you create these databases?
    You can use the following T-SQL to attach the database and see if the issue persists.
    CREATE DATABASE
    databasename
        ON (FILENAME = 'filepath _Data.mdf'),
        (FILENAME = 'filepath_Log.ldf')
    FOR ATTACH;
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How can I display and use the full RAW file?

    Hi,
    my camera (Canon S95) has a sensor with 4:3 aspect ratio and thus saves all RAW files in this format. Additionally, the camera can automatically create JPGs with a cropped ratio (e.g. 3:2 or 16:9). This is very helpful because you can see the target format already on the camera screen (with black bars on top and bottom), which helps the composition. However, when processing the photos on the big screen afterwards, it often also helps the photo to adjust the ratio a little bit and therefore use the additional information saved in the bigger 4:3 RAW file. This works very well with many of the freely available software tools.
    The problem found in Lightroom is now that it only shows the RAW photo in the cropped format and up to know I have found no way to display or use the full RAW format. So my question is: Which settings do I have to change to use the full format? What do I need to change?
    Searching a little bit on the web I found many other photographes having the exactly same problem with many different cameras. However none of them reported to have a solution for this. Still I am pretty sure that there must be a solution, since otherwise this would be a really heavy bug within Lightroom and I cannot imagine that Adobe would leave this matter unsolved.
    So I would really appreciate if someone could help me with this.
    Many Thanks
    Martin

    Hi Jao, Victoria, Lee Jay,
    Thanks for clearification. Do you have additional information about when this fix will be available and whether at least some popular old cameras will be supported?
    What I do not get is why Adobe would need to redo all existing cameras. I think this is a more general issue, where Lightroom misinterpretes the exif data which includes both the exif image height/width as well as the cropped image height/width. Intepreting this information correctly, any software should be able to display both - the full image and the cropped area (as shown by many cheap or free software tools). In the internet I found another workaround for the issue in Lightroom, which is undermining this point: When setting the cropped image height/width to the numbers of exif image height/width manually (e.g. with exif tools), Lightroom actually is able to display the full 4:3 picture.
    So this bug should be easily fixed for all cameras and I have no clue why Adobe still has no fixed it with Lightroom already available in version 4.2.
    Cheers
    Martin

  • How do I get the full path and filename of the current document?

    I'm writing a format plug-in. How do I obtain the full path and filename of the current image (document) from within my plug-in? Any help would be greatly appreciated!

    I actually just figured this out. For anyone else who would like to know, check out the propetizer sample code in the photoshop sdk. It makes a "filter" plug-in that just spits out all the properties of the document you could ever want to know about. The function I used to get the full path and filename of the current document is PIGetDocumentName(). I hope this helps someone eventually...

  • HT1202 The manual mode to transfer music to my iTune from my iPhone does not work as described. When I click on Manually manage... it displays the warning message that all music on my iPhone will be erased and replaced by iTune music.

    The manual mode to transfer music to my iTune from my iPhone does not work as described. When I click on Manually manage... it displays the warning message that all music on my iPhone will be erased and replaced by iTune music.
    How can I transfer my music to a second computer iTune?
    Thanks,

    See this user tip
    Syncing iPhone to a "New" Computer or replacing a "crashed" Hard Drive

  • How to get the full path of a file

        If the user selects a file through a browse button, Is there a way, I can get the full path of the file. The file can be from his local hard drive as well.. Can someone advise    

    To upload multiple files (example is for 3), try something like this.
    == Form section ==
    There would be three(3) file form fields for the selection of a file/document to upload, which
    each being uniquely named.
    <div style="clear: both;">
    <cfinput type="file" name="upload_01" dir="ltr" lang="en" size="70" xml:lang="en">
    </div>
    <div style="clear: both;">
    <cfinput type="file" name="upload_02" dir="ltr" lang="en" size="70" xml:lang="en">
    </div>
    <div style="clear: both;">
    <cfinput type="file" name="upload_03" dir="ltr" lang="en" size="70" xml:lang="en">
    </div>
    == Processing section ==
    Checks to see if any files / documents were selected for upload. If none were, then
    displays an alert indicating as such. If at least one file/document was selected, then
    the process would process the upload.
    <cfif isdefined('form.upload_01') and trim(form.upload_01) eq "" and
    isdefined('form.upload_02') and trim(form.upload_02) eq "" and
    isdefined('form.upload_03') and trim(form.upload_03) eq ""
    >
        <p>Did not select any files to upload</p>
    <cfelse>
        <cfif isdefined('form.upload_01') and trim(form.upload_01) neq "">
            <cffile
                action="upload"
                destination="C:\path\to\upload\files\to"
                filefield="upload_01"
                nameconflict="overwrite"
                accept="
                  application/msword
                , application/vnd.openxmlformats-officedocument.wordprocessingml.document
                , application/vnd.ms-excel
                , application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
                , application/pdf">
                <cfcookie name="upload_01_doc" value="#cffile.serverfile#">
                <cfcookie name="upload_01_doc_ext" value="#cffile.serverfileext#">
        </cfif>
        <cfif isdefined('form.upload_02') and trim(form.upload_02) neq "">
            <cffile
                action="upload"
                destination="C:\path\to\upload\files\to"
                filefield="upload_02"
                nameconflict="overwrite"
                accept="
                  application/msword
                , application/vnd.openxmlformats-officedocument.wordprocessingml.document
                , application/vnd.ms-excel
                , application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
                , application/pdf">
                <cfcookie name="upload_02_doc" value="#cffile.serverfile#">
                <cfcookie name="upload_02_doc_ext" value="#cffile.serverfileext#">
        </cfif>
        <cfif isdefined('form.upload_03') and trim(form.upload_03) neq "">
        <cffile
            action="upload"
            destination="C:\path\to\upload\files\to"
            filefield="upload_03"
            nameconflict="overwrite"
            accept="
                  application/msword
                , application/vnd.openxmlformats-officedocument.wordprocessingml.document
                , application/vnd.ms-excel
                , application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
                , application/pdf">
            <cfcookie name="upload_03_doc" value="#cffile.serverfile#">
            <cfcookie name="upload_03_doc_ext" value="#cffile.serverfileext#">
        </cfif>
        <cflocation url="completed.cfm" addtoken="no">
    </cfif>
    == Completed section ==
    Can confirm to the person what files were actually uploaded, by displaying file name and file extension.
    You can you use the file extension information to display a respective icon for the file type.
    <cfoutput>
    <cfif isdefined('cookie.upload_01_doc')>
    01. #cookie.upload_01_doc# - #cookie.upload_01_doc_ext#<br /></cfif>
    <cfif isdefined('cookie.upload_02_doc')>
    02. #cookie.upload_02_doc# - #cookie.upload_02_doc_ext#<br /></cfif>
    <cfif isdefined('cookie.upload_03_doc')>
    03. #cookie.upload_03_doc# - #cookie.upload_03_doc_ext#<br /></cfif>
    </cfoutput>
    Leonard B

  • How do I see the full path in Yosemite's spotlight?

    How do I see the full path in Yosemite's spotlight? (cmd shows only partial path)
    Seeing the full path would make work much easier finding my articles which I have put in distinct catalogues.

    CazooMAC,
    Holding ( Command ) to show the path of a file that is displayed at the bottom of the preview pane in Spotlight is the only way to display the path in the Spotlight app its self.
    If you hold ( Command ) and double click the item you are looking to get a path of it will open that items containing folder in Finder. From there you can get the full path using a bunch of different methods. An Example would be using Finders Get Info option. The Keyboard shortcut is ( Command ) ( I ).
    There is another thread that covers the topic of getting a clean path in Finder. Or basically a path that one doesn't have to type out manually, without those little arrows in between folders. It can be found here: How to get a clean file path in OS X Yosemite?
    My Suggestion to get a clean path there is as follows:
    Another way you can get the path, and yes I'm aware its cumbersome, is you can open the "Go to Folder" window and drag your folder or file into it and it will give you the path. Free of modifiers and without opening another application.
    I find it works best if when you start there is no Finder windows open. If you leave one open you just have to open another one as it doesn't let you drag and drop from the one with the "Go to Folder" window in it.
    Finder has to be Active > Select Go ( Menubar ) > Go to Folder...
    Or you can use the keyboard shortcut ( Command ) ( Shift ) ( G )
    At this point I like to clear out the address field as if there is anything in there it will stay.
    Next Open a new Finder window.
    Examples on how to: Select File > New Window, or the keyboard shortcut ( Command ) ( N )
    Find the File or Folder your interested in then drag and drop it in the Address Field of the "Go to Folder" window and it will give you the path.
    If you would like to send Apple feedback about this you can do so here: https://www.apple.com/feedback/macosx.html
    Hope that helps,
    Weston

  • Displaying the full version of Acrobat Standard within another application

    We are developing a document management application where users can edit documents within the application. Ideally, we would like to display Acrobat within a Window's Form Control, and have the full functionality of Acrobat Standard available. We can accomplish this by using the Window's API to "stuff" the entire Acrobat window, menus and all, inside of the Window's Form, using the SetParent function. However, when we do that, we find that for certain functionality, we encounter errors. For example, the print dialog does not display correctly, and dragging toolbars around causes the application to crash with a memory access error.
    Looking at the Acrobat SDK 9.0, the OpenWindowEx() function would seem the other alternative to display Acrobat Standard within our application. However, this only provides a small subset of the functionality that you get with Acrobat Standard. I've been able to re-add some functionality, like commenting, but not everything, especially options under the Document menu.
    I should add that once we have a Windows Form control that contains the Adobe Standard application, we host it in IE so that it can display within a web application (this feature is built in to .NET/IE).
    Is there any way to make the entire set of Acrobat Standard features available within a Windows application? Or a Web application? Some modification of either of the above methods, or a third alternative?
    All the users of this application have Adobe Acrobat already installed.

    No, there is no way to host the entire Acrobat application outside of Acrobat - only a limited set of functions are available in "external applications". This is by design.

  • I am trying to build a basic TCL skeleton script that reads a remote SNMP OID and displays the value on the screen.

    I am trying to build a basic TCL skeleton script that reads a remote SNMP OID and displays the value on the screen.
    I don't want it to be an EEM Event, I just want to run it from the (tcl)# prompt.
    So I guess I'm asking if you can use cli_exec and other commands in the "namespace import ::cisco::eem::*" in a normal non-EEM script - can I do that?
    This is the error I get:
    OTN.159(tcl)#source flash:TCL_SNMP_Remote_Read.tcl
    invalid command name "::cisco::eem::event_register_none"             ^
    % Invalid input detected at '^' marker.
    What am I missing?
    =================  TCL_SNMP_Remote_Read.tcl  ==============================
    ::cisco::eem::event_register_none
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    if [catch {cli_open} RESULT]
        { error $RESULT $errorInfo }
        else { array set cli1 $RESULT }
    if [catch {cli_exec $cli1(fd) "snmp get v2c 192.168.1.100 public timeout 1 oid 1.3.6.1.2.1.1.1.0" } RESULT]
           { error $RESULT $errorInfo  }
           else { set SnmpSysDesc $RESULT }
    if [catch {cli_close $cli1(fd) $cli1(tty_id)} RESULT] {
                error $RESULT $errorInfo
    puts $SnmpSysDesc
    =========================================================================
    In the sho-run config I have:
    event manager directory user policy "flash:/"
    event manager session cli username "cisco"
    Any help to get me started would be greatly appreciated!
    Tim

    If you don't want an EEM policy, then don't use any of the EEM constructs.  Instead, all you need is this:
    set output [exec "snmp get v2c 192.168.1.100 public timeout 1 oid 1.3.6.1.2.1.1.1.0"]puts $output

  • Want to open a new browser window and display the html file in locale disk.

    Hi,
    I want to open a new browser window and display the html file in local drive. The below html applet work in local system successfully. But i deploy the same in web server (Tomcat) and try the same in client machine it does not work. Please help.
    Note:
    The class below fileopen.FileOpen.class i make it as a jar and put it in jre\ext folder at the client machine.
    ------------------------------------FileOpen.html(Tomcat)-----------------------------------------------------
    <html>
    <body >
    <applet code="OpenFile.class" archive="loadfile.jar" width="100" height="100">
    <param name="path" value="file://c:/open.html" />
    </applet>
    </body>
    </html>
    -------------OpenFile.java in server(Tomcat)--------------------------------------------
    public class OpenFile extends Applet implements ActionListener{
    String path = "";
    fileopen.FileOpen open = null;
    Button b = null;
    public void init(){
    path = getParameter("path");
    b = new Button("Open");
    b.addActionListener(this);
    add(b);
    public void actionPerformed(ActionEvent ae){
    try
    open = new fileopen.FileOpen(this,path);
    catch (Exception e){
    e.printStackTrace();
    -------------------------------------------FileOpen.java /Client JRE/ext----------------------------------------------------
    package fileopen;
    public class FileOpen
    AppletContext context = null;
    URL url = null;
    public FileOpen(Applet applet,String path)
    try
    if(null != applet){
    context = applet.getAppletContext();
    if (null != path)
    url = new URL(path);
    context.showDocument(url, "_blank");
    }catch(Exception ex)
    ex.printStackTrace();
    Please help to solve this issue very urgent.
    Thanks in advance.
    By,
    Saravanan.K.

    zzsara wrote:
    I want to open a new browser window and display the html file in local drive. ...Did you ever pause to consider how ridiculous that is?
    The best audience for applets is people off the internet. 'People off the internet' might be using a computer that has no (what was it?) 'open.html' in the root of the C: drive. In fact (shock horror) they may not even be running Windows, and would therefore probably have no 'C:' drive at all.
    If you do not intend to distribute this to people off the web, an application makes a lot more sense, but even then, you cannot rely on the document being there unless you 'put it there' (during installation, for instance).
    As the other poster intimated, applets can load documents off the local disk as long as they are trusted. Here is an example*, but note that it is not so rash as to presume any particular path or file, and instead leaves it to the user to choose the document to display.
    * The short code can be seen at SDNShare on the [Defensive Loading of Trusted Applets|http://sdnshare.sun.com/view.jsp?id=2315] post.
    On the other hand, a sandboxed applet can load any document coming from its own server via URL, or get showDocument(URL) to work. In that case, the JRE must recognize that the URL is from its own server, so the best way to form URLs for applet use is via the URL constructor
    new URL(getDocumentBase(), "path/to/open.html");That is how I form the URL in this [ sandboxed example of formatting source|http://pscode.org/fmt/sbx.html?url=/jh%2FHelpSetter.java&col=2&fnt=2&tab=2&ln=0]. Of course, in this case the applet loads the document, then parses the text to draw the formatted version, but the point is that an URL produced this way will work with showDocument(URL).
    I am pretty sure showDocument() in an applet off the internet will work with an URL pointing to a foreign (not its own) server, but it will not be able to load documents off the end user's local disks.
    I suggest a couple of things.
    - Try to express this problem in terms of what feature it is that you want to offer the end user. Your question jumps directly to a bad strategy for achieving ..who knows what? An example of a feature is "Shows the applet 'help' files on pressing F1".
    - A good way to indicate interest in a solution is to offer [Duke stars|http://wikis.sun.com/display/SunForums/Duke+Stars+Program+Overview] to match that interest.
    Edit 1:
    ..and please figure out how to use the CODE tags.
    Edited by: AndrewThompson64 on Sep 12, 2008 11:14 PM

  • How can I show the full path in terminal?

    By default I only see the current folder
    How can I toggle it so that I see the full path instead?
    I say toggle - I'd like to switch on and off
    Thanks
    Omar

    @arthur, awesome! thats better than what i was trying to do!
    i only wanted to get the path so that i could cd to it
    but then i have to add quotes around because of spaces
    the method u suggested escapes all required chars and means i can just type cd and then drag the folder and then press enter
    @barney: super helpful - i need to re-remember my unix commands. lol

  • How to get the full path of the fmx's directory.

    Hi all,
    I will ship my project to a customer. So I must install forms runtime at the customer's machine.
    I put all of the fmx files of my project into a certain directory at the customer's machine, and I create a desktop shortcut of the forms runtime. In the "start in" field of the shortcut property I put the full path of the directory where I put the fmx files. And in the target field of the shortcut property I put after the ifrun60.exe the name of the fmx file which to call first.
    Now , in one of my forms file I want to get the full path of this directory because I must call Ora_Ffi.Load_Library. And the library which I want to load resides on that directory.
    So how to get programatically the directory where the fmx files reside.
    I know that there is the registry entry FORMS60_PATH, but we plan to ship many projects to that customer; so if I use the FORMS60_PATH variable then there will be an error because there will be many directories. And the customer can launch many of the projects at the same time.
    So how to get it.
    Thank you very much indeed.

    If you are using the d2kwutil library, then you can use the win_api_environment.Get_Working_Directory() function.
    If not, I doubt that there is anyway to get it since the get_application_property(current_form) does not return the full path of the form as it used to in prior versions of Oracle forms such as 4.5.

  • Why do Analysis VIs need the full path to lvanlys.dll?

    I've noticed that all Analysis VIs contain the full pathname of the lvanlys.dll that is being called.  This means that the .lvproj file lists this fully qualified DLL filename as a dependency of the project.  This turns out to be an issue if the same project is opened in both 32-bit and 64-bit LabVIEW - the pathname changes from "Program Files (x86)/..." to "Program Files/...", and the project has a "dirty dot".  Some other VI libraries which also call DLLs located in the resource directory do not use the full path name (for example, the Vision VIs and the Wavelet Analysis VIs are two I noticed) and their dependencies are stored in the .lvproj file with the property "NI.PreserveRelativePath" set to "true".
    Is there a reason why the full path is necessary, and if not, can it be removed?  I've also notice that VIs calling lvinput.dll and lvsound2.dll have a full pathname, but haven't tracked through to see which others also do, or do not.

    Hi,
    Licensing and toolkit development are reasons for whether the full pathname is being used or the property "NI.PreserveRelativePath" is set to "true". There isn't a way to change it. Also, most toolkits will only work in 32-bit LabVIEW. According to this KB, as of 2009, NI Vision is the only toolkit that can be used in LabVIEW 64-bit. You maybe able to solve your dirty dot issue by mass compiling. 
    Rohama K.

Maybe you are looking for