Showing posts with label Managed Metadata Service. Show all posts
Showing posts with label Managed Metadata Service. Show all posts

Tuesday, 9 December 2014

How to Implement Metadata Navigation in SharePoint 2010


How to implement Metadata navigation in SharePoint 2010
  1. Open your site
  2. Verify that no navigational hierarchies or key filters are displayed in the left-hand column below the Quick Launch control.

    MtDtShr1.jpg
Plan the Navigational Hierarchies and Key Filters

Part of the implementation of metadata navigation is planning the fields to use for hierarchies and filters, which requires an understanding of the user's requirements and the content.

  1. Navigate to the Library Settings page for the document library and click on the Library ribbon tab.

    MtDtShr2.jpg
     
  2. Click the Library Settings ribbon button.

    MtDtShr3.jpg
     
  3. Click the Metadata navigation settings link located in the General Settings column.

    MtDtShr4.jpg
     
  4. Review the list of available hierarchy fields. Remember the navigation hierarchies should be broader in scope than the key filters.
  5. Determine the fields to configure as navigational hierarchies. In this lab we configure the following four navigational hierarchies:
    • Geography
    • Product Category
    • Project
    • Vertical Industry

    These four columns are broad categories that are effective in limiting our queries to a smaller set.
     
  6. Review the list of available Key Filter fields. The Key Filter fields are narrower than the configured hierarchies and are used to narrow the number of results viewed.
  7. Determine effective Key Filter fields. In this lab we configure six key filters:
    • Company Size
    • Content Type
    • Deal Owner
    • Exec Sponsor
    • Product Manager
    • Sales Lead
These six Key Filters enable us to narrow our results down to an acceptable size for our queries.

Configure Metadata Navigation

  1. Select Geography located in the Available Hierarchy Fields list box and click the Add button.

    MtDtShr5.jpg
     
  2. Select Product Category located in the Available Hierarchy Fields list box and click the Add button.
  3. Select Project located in the Available Hierarchy Fields list box and click the Add button.
  4. Select Vertical Industry located in the Available Hierarchy Fields list box and click the Add button.
  5. Select CompanySize from the Available Key Filter Fields list box and click the associated Add button.
  6. Select Content TypeSize from the Available Key Filter Fields list box and click the Add button.
  7. Select Deal Owner from the Available Key Filter Fields list box and click the Add button.
  8. Select Exec SponsorSize from the Available Key Filter Fields list box and click the Add button.
  9. Select Sales LeadSize from the Available Key Filter Fields list box and click the Add button.

    MtDtShr6.jpg
     
  10. Verify that Automatically manage column indices on this list is selected.

    MtDtShr7.jpg
     
  11. Review your Navigational Hierarchy and Key Filter selections.
  12. Click OK to finalize configuration of the Metadata Navigation feature.
  13. In the Library Settings page, scroll down below the list of columns and click the Indexed columns link to view the indexed columns.

    MtDtShr8.jpg
     
  14. Review the indices created for the list by the Metadata Navigation feature.
Configure Metadata Navigation

You have just configured metadata navigation in the document library. You can now use metadata navigation to locate content in the document library.

  1. Using Internet Explorer navigate to the documents library
  2. Verify the Navigational Hierarchies and Key Filter controls display in the left-hand column below the Quick Launch control.

    MtDtShr9.jpg
     
  3. Select Documents from the Navigational Hierarchy control.
  4. Select Sales Contract Content Type as the Key Filter and click Apply to view all sales contracts in the document library.

    MtDtShr10.jpg
     
  5. Click the Geography hierarchy to expand the locations.

    MtDtShr11.jpg
     
  6. Select North and Central America. This list view displays only sales contracts located in North and Central America.

    MtDtShr12.jpg



Reference:

http://www.c-sharpcorner.com/UploadFile/Roji.Joy/how-to-implement-metadata-navigation-in-sharepoint-2010/

How to create Managed Metadata column in SharePoint 2010



In this article we are going to see how to create Managed Metadata column in a SharePoint 2010 list.

Managed metadata is a hierarchical collection of centrally managed terms that you can define, and then use as attributes for items in Microsoft SharePoint Server 2010. A column is a location in a list in which to store information about a SharePoint Server 2010 item. When you define a column, you provide a name for the column, specify the column's type, and provide additional information that depends on the column type. SharePoint Server 2010 introduces a new column type named managed metadata. When you create a managed metadata column, you specify the term set from which the column's values must come. When you want users to provide information for list items (including documents), and the valid values for the information are contained in a term set, use a managed metadata column. Here we will be seeing just how to create Group, Term sets and term, then how to use them in Managed Metadata column. To know more detailed view of Managed Metadata Service go to this link http://technet.microsoft.com/en-us/library/ee424402.aspx.   If we want to create Managed Metadata column we need to configure Managed Metadata Service in the Central Administration.

How to configure Managed Metadata Service Application:

The steps involved to configure Managed Metadata Service are given below.

Steps Involved:
  1. Go to the Central Administration->Application Management->Manage Service Applications.

    1.gif
  2. In the Ribbon click on New to create a new Metadata Service.

    2.gif
  3. Enter the Name, Database Name and Database Server Name. Now your metadata service is ready.
  4. Click OK.
  5. Now the Managed Metadata Service has been created.
Taxonomy Term Store:

SharePoint Server 2010 includes the Term Store Management Tool, which you use to create and manage term sets.

A term is a word or a phrase that can be associated with an item in SharePoint Server 2010. 

A term set is a collection of related terms. The following steps should be followed to create group, term set and term.

Steps Involved:
  1. Go to the Central Administration->Application Management->Manage Service Applications.

    3.gif
  2. Click on the Managed Metadata Service.
  3. You will enter into the Term Store Management Tool.
  4. On the left hand side you could see Taxonomy Term Store.
  5. First we will create a group for the Term Sets.

    4.gif
  6. Click on the Managed Metadata Service a  New Group  menu appears.
  7. Click on the New Group.
  8. Enter the name for the group as Sharepoint.
  9. Now click on the Sharepoint a menu will appear.

    5.gif
  10. Select  New Term set.
  11. Enter the name for the Term Set as Analysis.
  12. Now click on the Analysis a menu will appear.
  13. Select Create Term and enter the name.

    6.gif
  14. Now we have created Group, Term Set and Terms for the service.

    7.gif
Create Managed Metadata Column in SharePoint List:
  1. Go to the Custom List where you want to create Managed Metadata column.
  2. Go to List Tools => List => Create Column.

    8.gif
  3. Choose the name for the column as Category - Metadata and choose the type of information as Managed Metadata as shown in the below figure.

    9.gif
  4. Choose the term set that we have already created when configuring the Managed Metadata service and click ok.

    10.gif
  5. Thus Managed Metadata column is created.
  6. Add a new item and in the Managed Metadata column we have created you could see all the terms that we have created for Analysis and you could choose any one of them.
  7. This is similar to a choice field but you can't reuse the choices in the choice field whereas in Managed Metadata we can reuse the terms and it is centrally managed.
  8. If choices in the choice field will change frequently and the field will be reused in multiple locations use a Managed Metadata field.
Thus Managed Metadata column is created and we will see how to use this Managed Metadata across farm levels in the next article.


Reference:

http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-create-managed-metadata-column-in-sharepoint-2010/

Error "The Managed Metadata Service or Connection is currently not Available"


"The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started. Please Contact your Administrator."
  1. Open Central Administration by going Start | All Programs | Microsoft SharePoint 2010 Products | SharePoint 2010 Central Administration.
  2. Click on Manage Service Application which is available in Application Management section.

    Metadata1.gif
  3. When you click on Managed Metadata Service application, sometimes you may get the following error:

    Metadata2.gif
  4. Go and check whether the Managed Metadata Service has been started.
  5. Click on Application Management in the quick launch.
  6. Click on Manage services on server under Service Applications section.
  7. Check whether the Managed Metadata Web Service is started; if not then click on Start.

    Metadata3.gifMetadata3a.gif
  8. Do an IISRESET.
  9. Now you could be able to see the Managed Metadata Service properties as shown in the following figure:

    Metadata4.gif
  10. If you still face the same issue, go to IIS and check whether the Application pool for the metadata service is started (Note: Check the account in which the application pool for the metadata service is running. Sometimes if the password for the account is changed, you will get the same issue.).
Thus in this article you have seen how to resolve the following error "The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started. Please Contact your Administrator."


Reference:

http://www.c-sharpcorner.com/UploadFile/anavijai/the-managed-metadata-service-or-connection-is-currently-not/

Configure Metadata publishing in SharePoint 2010


Introduction:

In SharePoint 2010 the terms or keywords added to the Managed Metadata or Enterprise Keywords columns in a library can be made available as keywords for social tagging. To do this we need to enable an option in the library settings, which will be available in Enterprise Metadata and Keyword Settings. In this article we will be seeing how to enable this option for the SharePoint document library.

Enable Metadata Publishing:

Steps Involved:
  1. Go to Library Settings =>Permissions and Management => Enterprise Metadata and Keywords Settings.

    Metadata1.jpg
  2. Enable "Save metadata on this list as social tags".

    Metadata2.jpg
  3. Click on Ok.
Keywords  added to the Enterprise Keywords column available for social tagging:
  1. Enable Enterprise keywords for Shared Documents.
  2. Add a document to the Shared Documents and enter the keyword for the document as shown in the following.

    Metadata3.jpg
  3. Click on the drop down available in the login credential => Go to My Profile.

    Metadata4.jpg
  4. Go to "Tags and Notes" tab, you could see the keyword available for social tagging as shown in the following.

    Metadata5.jpg
  5. You could also see the social tags in "Manage Social Tags and Notes" section.
  6. Go to Central Administration => Application Management => User Profile Service application => My Site Settings =>Manage Social Tags and Notes.

    Metadata6.jpg
  7. Select Tags from the drop down menu, enter the user name and click on Find.
  8. You could be able to see the tags created by the user.

    Metadata7.jpg
Terms added to the Managed Metadata column available for social tagging:
  1. Create a Managed Metadata column for Shared Documents.
  2. Add a new document to the document library and select the terms for the document.

    Metadata8.jpg
  3. Go to "Tags and Notes" tab in the users my profile, you could be able to see the term available for social tagging.

    Metadata9.jpg


Reference:

http://www.c-sharpcorner.com/uploadfile/anavijai/configure-metadata-publishing-in-sharepoint-2010/

How to publish Managed Metadata Service across Farms in SharePoint 2010


Publishing Managed Metadata Service across farms:
In Microsoft SharePoint Server 2010, some service applications can be shared across farms. By publishing a service application, you can optimize resources, avoid redundancy, and provide enterprise-wide services without installing a dedicated enterprise services farm. In this document we are going to publish and consume Managed Metadata Service across farms. The Publisher farm is the farm in which the Service application is running and the Consumer farm is the farm which will consume data from the publishing farm.
Configure Managed Metadata Service in Publishing Farm:
We need to configure Managed Metadata service in the publishing farm which will be used by the consuming farm. The steps involved to configure Managed Metadata Service are given below.
Steps Involved:
  1. In the publishing farm go to the Central Administration->Application Management->Manage Service Applications.

    1.gif
  2. In the Ribbon click on New to create a new Metadata Service.style="margin-top: 0cm; margin-bottom: 0cm" start="3" type="i">

    2.gif
  3. Enter the Name, Database Name and Database Server Name. Now your metadata service is ready.
  4. Click OK.
  5. Now the Managed Metadata Service has been created in the publishing Farm.
Taxonomy Term Store:
 
  1. Go to the Central Administration->Application Management->Manage Service Applications.

    3.gif
  1. Click on the Managed Metadata Service.
  2. You will enter into the Term Store Management Tool.
  3. On the left hand side you could see Taxonomy Term Store.
  1. First we will create a group for the Term Sets.

    4.gif
  1. Click on the Managed Metadata Service a  New Group  menu appears.
  2. Click on the New Group.
  3. Enter the name for the group as Sharepoint.
  4. Now click on the Sharepoint a menu will appear.

    5.gif
  1. Select  New Term set.
  2. Enter the name for the Term Set as Analysis.
  3. Now click on the Analysis a menu will appear.
  4. Select Create Term and enter the name .

    6.gif
  1. Now we have created Group, Term Set and Terms for the service.

    7.gif
Creating Content Type Hub:
SharePoint 2010 introduces a new concept called Content Type Hubs. It's a way to make content types available centrally and be reusable in the Farm. This is a huge improvement from SharePoint 2007 both in terms of management of content types and overall flexibility that comes with it. In SharePoint 2007 there is no way to manage Content type centrally. To share Content Type across site collection level or web application level in SharePoint 2007, you need to copy the same content type in different site collections or web applications. Another way could be to use web feature to enable content type across site collections or web applications. SharePoint 2010 has provided out of the box support for sharing Content Types across farm level.

Content Type Hubs enables you to create new content types and then make them available to other SharePoint site collections in the same or different web applications or across farms. This is a publisher-subscriber model, where content types are published by the Content Type Hubs using Metadata service and subscribers are the web applications in the SharePoint Farm. Finally, all the site collections in the web application which subscribe to this Metadata service will get this content type.
Configuring the Content Type Hub:
Publish Content Type:
The Enterprise Metadata Management Service or Metadata Service (in short), allows sharing Metadata and Content Type across the farm. To share Content types you need to define the content type(s) in a site collection. You can consider the site collection as the place where you'll put all your related content types to share across farm. This site collection, which is used to host content types or sharing, is called Content Type Hub.
1.  Create a new Content Type in a site collection that to be shared:

First select a site collection as a place to host your content types. You will define your content types to share across farm. Given below are the following steps to be followed to create a new content type that has to be shared.

Steps Involved:
  1. Go to the site collection where you want to host your content Type.
  2. Go to Site Actions -> Site Settings -> Galleries ->Site Content Types.

    8.gif
  3. In the top right you can see Create, click Create.

    9.gif
  4. Enter the name of the content type as Parent Content Type as shown in the figure below.

    10.gif
  5. Click OK to create a new content type named Parent Content Type.

    11.gif
  6. Go to Site Content Type Information and click Add from New Site Column.
  7. Enter the name for the column as Category - Metadata and choose the type of information as Managed Metadata as shown in the figure below.

    12.gif
  8. Choose the term set that we have already created when configuring the Managed Metadata service and click ok.

    13.gif
  9. A new field has been added to the content type.
2.  Activate feature to enable content publishing in site collection:
The site collection, which will host content types for sharing, is known as content type hub. To enable your site collection to be a content type hub you need to activate a feature known as "Content Type Syndication Hub".
Steps Involved:
  1. Go to Site Actions -> Site Settings -> Site Collection Administration -> Site Collection Features.

    14.gif
  2. Activate the feature Content Type Syndication Hub.

    15.gif
  3. Once you have activated this feature, you will find an option "Manage Publishing for this content type" in your content type setting  page as shown below:

    16.gif
Bind content type hub with a metadata service
  1. Go to the Central Administration->Application Management->Manage Service Applications.

    17.gif
  2. Select the Managed Metadata service and in the Ribbon Select the Properties.
  3.  There's an option for Content Type Hub and here put the url of your site collection where the content type is created.

    18.gif
  4. Configure Metadata Connection: To configure metadata connection, go to metadata service connection properties and ensure that the connection consumes the content type hub as shown below.

    19.gif
Publish the Content Type:
Now you go back to the site collection (which is used as content type hub) and go to content type settings page. Here in this page you will get the option "Manage publishing for this content type" option. Now click on the link "Manage Publishing for this content type" and ensure the 'publish' option is selected and then click OK as shown below.

         20.gif   

Exchange trust certificates between farms:
In Microsoft SharePoint Server 2010, a SharePoint farm can connect to and consume a service application that is published on another SharePoint Server 2010 farm. For this to occur, the farms must exchange trust certificates. You must use Windows Power Shell 2.0 commands to export and copy the certificates between farms. After the certificates are exported and copied, you can use either Windows Power Shell 2.0 commands or Central Administration to manage the trusts within the farm. To exchange trust certificates between farms the following steps should be followed.
Steps Involved:
  1. Exporting and copying certificates
  2. Managing trust certificates
Exporting and copying certificates:
An administrator of the consuming farm must provide two trust certificates to the publishing farm: a root certificate and a security token service (STS) certificate. An administrator of the publishing farm must provide a root certificate to the consuming farm.
To export the root certificate from the consuming farm:
  1. In the consuming farm go to Start menu.

    21.gif
  2. Go to SharePoint 2010 Management Shell and select Run as Administrator.
  3. In the command prompt, type each of the following commands.
$rootCert = (Get-SPCertificateAuthority).RootCertificate
$rootCert.Export("Cert") | Set-Content "C:\Users\554pa\ConsumingFarmRoot.cer" -Encoding byte

To export the STS certificate from the consuming farm:
  1. In the Command Prompt, type each of the following commands.
     
$stsCert = (Get-SPSecurityTokenServiceConfig).LocalLoginProvider.SigningCertificate
$stsCert.Export("Cert") | Set-Content  "C:\Users\554pa\ConsumingFarmSTS.cer" -Encoding byte
To export the root certificate from the publishing farm:
  1. In the Command Prompt, type each of the following commands.
$rootCert = (Get-SPCertificateAuthority).RootCertificate
$rootCert.Export("Cert") | Set-Content  "C:\Users\554pa\PublishingFarmRoot.cer" -Encoding byt

To copy the certificates:
  1.  Copy the root certificate and the STS certificate from the server in the consuming farm to the server in the publishing farm.
  2. Copy the root certificate from the server in the publishing farm to a server in the consuming farm.
Managing Trust Certificates:
Establishing trust on the consuming farm:
  1. To import the root certificate and create a trusted root authority on the consuming farm, type the following commands.
$trustCert = Get-PfxCertificate  "C:\Users\554pa\PublishingFarmRoot.cer"
New-SPTrustedRootAuthority "MetadataPublishingFarm" -Certificate $trustCert

Establishing trust on the publishing farm:
  1. To import the root certificate and create a trusted root authority on the publishing farm, type the following commands.
    $trustCert = Get-PfxCertificate  "C:\Users\554pa\ConsumingFarmRoot.cer"
    New-SPTrustedRootAuthority "MetadataConsumingFarm" -Certificate $trustCert
  2. To import the STS certificate and create a trusted service token issuer on the publishing farm, type the following commands.
$stsCert = Get-PfxCertificate "C:\Users\554pa\ConsumingFarmSTS.cer"
New-SPTrustedServiceTokenIssuer  "MetadataConsumingFarm"  -Certificate $stsCert
 
copy the Published URL which should be provided by the consuming farm when connecting to the publishing farm.copy the Published URL which should be provided by the consuming farm when connecting to the publishing farm.copy the Published URL which should be provided by the consuming farm when connecting to the publishing farm.
 
Publish a Service Application:
 
  1. Go to the Central Administration->Application Management->Manage Service Applications.

    22.gif
  2. In the Ribbon click on Publish to create a new Metadata Service.
  3. Publish Service application will be opened.

    23.gif
  4. Select the Connection Type that you want from the drop-down list.
  5. If you want the service application to be available to remote farms, select the check box for Publish this Service Application to other farms.
  6. In the Trusted farms column click the link you could see the trust relationship between farms that we have created

Set permission to the published service application for a consuming farm:
  1. In the publishing farm go to Start menu.
     
  2. Go to SharePoint 2010 Management Shell and select Run as Administrator.
     
  3. In the command prompt, type each of the following commands.
    Get-SPFarm | Select Id
  4. The above command is used to get the farm id.
     
  5. Save the farm id.
     
  6. Go to the Central Administration->Application Management->Manage Service Applications.

    24.gif
     
  7. Click on Managed Metadata Service.

    25.gif
     
  8. In the Ribbon select Permissions.

    26.gif
     
  9. Enter the farm id that you got from step 3 and click Add.
     
  10. In Permissions for Local Farm, select the Full Access to Term Store.
     
  11. Click OK.
Connect to a service application on a remote farm:
  1. In the consuming farm, go to the Central Administration->Application Management->Manage Service Applications.

    27.gif
  2. In the Ribbon click on Connect.

    28.gif
  1. Enter the URL that we got when we published the Managed Metadata Service in the publishing farm.

    29.gif
     
  2. Click OK.

    30.gif
     
  1. Click the Managed Metadata Service and check the Add this service application's proxy to the farm's default proxy list.
     
  2. Click OK.

    31.gif
     
  1. Enter the Connection Name and click OK.
     
  2. Now go and check it in the Central Administration->Application Management->Manage Service Applications.

    32.gif
     
  1. You could see the Service application that we have published in the publishing farm.
Associate the service application connection with a local Web application:
To use the published content type and the Taxonomy that we have created in the publishing farm you need to activate the Content Type Syndication Hub and the taxonomy feature. I have created web application in the consuming farm and I am going to use the published content type and the taxonomy in the root Site Collection of the Web Application that has been created. Follow the steps below.
Steps Involved:
  1. Go to the site collection where you want to use the published content Type Parent Content Type that we have created in the publishing farm.
  2. Go to Site Actions -> Site Settings -> Site Collection Administration -> Site Collection Features.
  3. Activate the feature Content Type Syndication Hub.
  4. Go to Site Actions -> Site Settings -> Galleries ->Site Content Types.

    33.gif
  1. You will not find the content type and you cannot use the taxonomy that we have created.
  2. Go to Site Actions -> Site Settings -> Site Collection Administration -> Site Collection Features.
  3. You will not be seeing Content Type Publishing option.
  4. When you try to use the Managed Metadata column type you may get an error saying "The Taxonomy feature (Feature ID "73EF14B1-13A9-416b-A9B5-ECECA2B0604C") has not been activated".
Activating the Taxonomy Feature using Power Shell:
  1. In the consuming farm go to Start menu.
     
  2. Go to SharePoint 2010 Management Shell and select Run as Administrator.
     
  3. In the command prompt, type each of the following commands.
     
    Enable-SPFeature -id 73EF14B1-13A9-416b-A9B5-ECECA2B0604C -URL http://kijs01:4000/
  4. http://kijs01:4000/- is the site collection in the consuming farm.
     
  5. Now you have activated the Taxonomy Feature.
     
  6. Go to Site Actions -> Site Settings -> Site Collection Administration -> Site Collection Features.

    34.gif
     
  7. You will be able to see Content Type Publishing.

    35.gif
     
  8. Click on that you could see the Parent Content Type as shown in the above figure and also you could go to Site Actions -> Site Settings -> Galleries ->Site Content Types.

    36.gif

    37.gif
Summary:

In this document we have created Managed Metadata Service in the publishing farm and we have consumed the data from that in the consuming farm.


Reference:

http://www.c-sharpcorner.com/uploadfile/anavijai/how-to-publish-managed-metadata-service-across-farms-in-sharepoint-2010/