VuFind
  1. VuFind
  2. VUFIND-426

Javascript-based tabs on record view

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0, Wishlist
    • Component/s: Record
    • Labels:

      Description

      Currently, clicking tabs on the record view causes a full-page reload. We should maintain this functionality for the benefit of non-Javascript users, but it would be nice to add a Javascript-based tab refresh for more convenient behavior in browsers that support it.

        Activity

        Hide
        Demian Katz added a comment -
        The attached patch (developed by Tuan Nguyen) adds Javascript tabs to the blueprint theme. Comments are welcome.
        Show
        Demian Katz added a comment - The attached patch (developed by Tuan Nguyen) adds Javascript tabs to the blueprint theme. Comments are welcome.
        Hide
        Demian Katz added a comment -
        The patch has been updated (again thanks to Tuan) -- now the title updates along with the tab switching. Work still needs to be done for better non-JS functionality.
        Show
        Demian Katz added a comment - The patch has been updated (again thanks to Tuan) -- now the title updates along with the tab switching. Work still needs to be done for better non-JS functionality.
        Hide
        Eoghan Ó Carragáin added a comment -
        This looks great. Is it possible to update the URL in the address bar (e.g. http://mydomain.com/Record/123540#Description), so that users can copy & paste the URL and be brought to the correct tab when they follow the copied link again later?

        Thanks!
        Eoghan
        Show
        Eoghan Ó Carragáin added a comment - This looks great. Is it possible to update the URL in the address bar (e.g. http://mydomain.com/Record/123540#Description), so that users can copy & paste the URL and be brought to the correct tab when they follow the copied link again later? Thanks! Eoghan
        Hide
        Chris Hallberg added a comment -
        You can't change the URL bar before a # symbol. You can change that last part though, so #Description could be changed to #Holdings. Is that enough to redirect correctly?
        Show
        Chris Hallberg added a comment - You can't change the URL bar before a # symbol. You can change that last part though, so #Description could be changed to #Holdings. Is that enough to redirect correctly?
        Hide
        Demian Katz added a comment -
        At the moment, putting the tab name in as an anchor won't do anything -- we would need to add code to process that.
        Show
        Demian Katz added a comment - At the moment, putting the tab name in as an anchor won't do anything -- we would need to add code to process that.
        Show
        Chris Hallberg added a comment - https://github.com/vufind-org/vufind/commit/188c0524f54ce30e25fbe41517962009bc134b89

          People

          • Assignee:
            Unassigned
            Reporter:
            Demian Katz
          • Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: