Blacklight Plugin

Command+Click does not open record link in new tab/window

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.5
  • Fix Version/s: 2.5
  • Component/s: None
  • Description:
    Hide
    When a user (using a javascript enabled browser) holds down the command key and clicks the link for the record view the expected behavior of the link opening in a new tab/window does not happen.

    This is because the way the way the link actually works is the link has an function in the onclick event that builds a form that posts to an update url (to save the search history and counter). The update method then redirects the user to the record page.

    This javascript function needs to be able to set the target of the for dependent on if the command key is held down or not.
    Show
    When a user (using a javascript enabled browser) holds down the command key and clicks the link for the record view the expected behavior of the link opening in a new tab/window does not happen. This is because the way the way the link actually works is the link has an function in the onclick event that builds a form that posts to an update url (to save the search history and counter). The update method then redirects the user to the record page. This javascript function needs to be able to set the target of the for dependent on if the command key is held down or not.

Activity

Hide
Jessie Keck added a comment - 09/Apr/10 7:32 PM
Record links now have the following behavior.
Center mouse wheel:
 Win: Expect new tab | Get new tab
 OSX: Expect new tab | Get new tab

Control+Click:
 Win: Expect new tab | Get new tab
 OSX: Expect context menu | Get context menu

Alt+Click:
 Win: Expect download | Get same tab
 OSX: Expect download | Get same tab

Shift+Click:
 Win: Expect new window | Get same tab
 OSX: Expect new window | Get same tab

Meta+Click:
 Win: Expect same tab | Get same tab
 OSX: Expect new tab | Get new tab

This is only intended as a temporary solution until we have a better method of updating the search counter w/o adding parameters to the record url
Show
Jessie Keck added a comment - 09/Apr/10 7:32 PM Record links now have the following behavior. Center mouse wheel:  Win: Expect new tab | Get new tab  OSX: Expect new tab | Get new tab Control+Click:  Win: Expect new tab | Get new tab  OSX: Expect context menu | Get context menu Alt+Click:  Win: Expect download | Get same tab  OSX: Expect download | Get same tab Shift+Click:  Win: Expect new window | Get same tab  OSX: Expect new window | Get same tab Meta+Click:  Win: Expect same tab | Get same tab  OSX: Expect new tab | Get new tab This is only intended as a temporary solution until we have a better method of updating the search counter w/o adding parameters to the record url

People

Dates

  • Created:
    18/Mar/10 11:21 PM
    Updated:
    09/Apr/10 7:32 PM
    Resolved:
    09/Apr/10 7:32 PM