Uploaded image for project: 'VuFind'
  1. VuFind
  2. VUFIND-777

Create a default tab per record driver option

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None

      Description

      The ability to set a default tab per record driver would allow users to create a better user experience for vufind instances with mixed record types.

      It could be achieved my modifying the config.module.php array to include a default key

      'recorddriver_tabs' => array(
      'VuFind\RecordDriver\SolrDefault' =>
                      'tabs' => array(
                      'Holdings' => 'HoldingsILS', 'Description' => 'Description',
                      'TOC' => 'TOC', 'UserComments' => 'UserComments',
                      'Reviews' => 'Reviews', 'Excerpt' => 'Excerpt',
                      'HierarchyTree' => 'HierarchyTree', 'Map' => 'Map',
                      'Details' => 'StaffViewArray'
                      ),
                     'default' => 'Holdings'
                  )
      )

      A getDefaultTab method would need to be added to the AbstractRecord controller and the getAllTabs function would need to be modified to take account of the new key structure. The defaultTab variable in RecordController could then be set by calling the getDefaultTab function, falling back on the config.ini setting if no default key was set in module.config.php

        Attachments

        1. tabs.patch
          5 kB
        2. tabsDefault.patch
          16 kB
        3. tabsDefaultNew.patch
          13 kB

          Activity

            People

            Assignee:
            demiankatz Demian Katz
            Reporter:
            l_os_cymru Luke O'Sullivan
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: