Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-1719

Pathauto should allow for tokens taken from datastreams.

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Fix Version/s: 7.x-1.8
    • Component/s: Pathauto
    • Labels:
      None

      Description

      There's a limitation in islandora pathauto that prevents it from being extended to use values of datastream elements in the url aliases.

      This limitation is caused by a workaround for ISLANDORA-1073 - i.e. when the label is updated, we have to mock up a fake object to get the tokens from because in all the applicable islandora hooks, $object->label still has the old value. Because of this, datastreams are not accessible when an update to the object triggers an update to the aliases.

      workaround here: https://github.com/Islandora/islandora_pathauto/blob/b4b6a882d29e8f9dc8681b8ea830fd3c1a882f54/islandora_pathauto.module#L122-L134

      If we make a more thorough fake object, then it will be trivial to extend islandora_pathauto and make tokens (ie URL components) based on datastream values.

        Attachments

          Activity

            People

            • Assignee:
              rosiel Rosie Le Faive
              Reporter:
              rosiel Rosie Le Faive
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: