Inserting a direct link to My Account or My Lists

You can add links that connect users to My Account or My Lists from other web pages. For patrons who have already logged in (for example, by CAS), the link takes them to their account or their custom list. If they haven't logged in, the link opens the authentication page and then goes to their account or list when the authentication is verified. This is helpful if you want to provide a way for patrons to log in to their account from another HTML page, such as your library’s home page.

To insert the My Account Link into an HTML page

  1. Copy or enter the code snippet as it appears below into the <body> tag of the HTML page(s) at the point where you want the link to appear.

    <a href="http://{hostname}/client/{locale}/{profile_URL}/search/patronlogin/http:$002f$002f{hostname}$002fclient$002f{locale}$002f{profile_URL}$002fsearch$002faccount$003f">My Account</a>

    In the snippet, {hostname}, {locale} and {profile_URL} are the parameters that you must customize for your specific Portfolio system.

    Important: For secure servers, the code is similar, but includes "https" (both at the beginning and within the code snippet), such as the following:

    <a href="https://{hostname}/client/{locale}/{profile_URL}/search/patronlogin/https:$002f$002f{hostname}$002fclient$002f{locale}$002f{profile_URL}$002fsearch$002faccount$003f">My Account</a>

  2. Configure these parameters in the HTML code by replacing the original values with the values that are specific to your library:

    Parameter Description

    {hostname}

    Specifies the base address of the Portfolio system. For example, mylibrary.example.org is the hostname for the profile URL: http://mylibrary.example.org/client/en_US/myprofile.

    If you aren't sure what the hostname is for the system, you can go to your library's default Enterprise profile and look at the URL to identify the hostname for the profile.

    {locale}

    Specifies the primary language code used by the Enterprise system. For example, en_US for American English or es_ES for Spanish.

    If you aren't sure what the language code is for the Enterprise system, you can go to your library's default Enterprise profile and look at the URL to identify the locale for the profile.

    Note: The Language Code you enter must match one of the current language codes defined in the ISO standard.

    {profile_URL}

    Specifies the name that is indicated in the Profile URL field in Edit Profile. For example, myprofile is the profile name for the URL: http://mylibrary.example.org/client/en_US/myprofile.

    This is the profile that you want the link to use when displaying item information (for more information, see Profile URL and Adding or editing a detail display).

    Note: When replacing the original values in the code snippet, delete the "{ }" surrounding the value.

To insert the My Lists Link into an HTML page

  1. Copy or enter the code snippet as it appears below into the <body> tag of the HTML page(s) at the point where you want the link to appear.

    <a href="http://{hostname}/client/{locale}/{profile_URL}/search/patronlogin/http:$002f$002f{hostname}$002fclient$002f{locale}$002f{profile_URL}$002fsearch$002fmylists$003f">My Lists</a>

    In the snippet, {hostname}, {locale} and {profile_URL} are the parameters that you must customize for your specific Portfolio system.

    Important: For secure servers, the code is similar, but includes "https" (both at the beginning and within the code snippet), such as the following:

    <a href="https://{hostname}/client/{locale}/{profile_URL}/search/patronlogin/https:$002f$002f{hostname}$002fclient$002f{locale}$002f{profile_URL}$002fsearch$002fmylists$003f">My Lists</a>

  2. Configure these parameters in the HTML code by replacing the original values with the values that are specific to your library:

    Parameter Description

    {hostname}

    Specifies the base address of the Portfolio system. For example, mylibrary.example.org is the hostname for the profile URL: http://mylibrary.example.org/client/en_US/myprofile.

    If you aren't sure what the hostname is for the system, you can go to your library's default Enterprise profile and look at the URL to identify the hostname for the profile.

    {locale}

    Specifies the primary language code used by the Enterprise system. For example, en_US for American English or es_ES for Spanish.

    If you aren't sure what the language code is for the Enterprise system, you can go to your library's default Enterprise profile and look at the URL to identify the locale for the profile.

    Note: The Language Code you enter must match one of the current language codes defined in the ISO standard.

    {profile_URL}

    Specifies the name that is indicated in the Profile URL field in Edit Profile. For example, myprofile is the profile name for the URL: http://mylibrary.example.org/client/en_US/myprofile.

    This is the profile that you want the link to use when displaying item information (for more information, see Profile URL and Adding or editing a detail display).

    Note: When replacing the original values in the code snippet, delete the "{ }" surrounding the value.

Related topics