           subject: container.session.subject.number
           session: container.session.number
           detail: container.session.detail
-          timePoint: image.timePoint
+          volume: image.volume.number
 
         # The target route, a prefix for now.
         route = 'quip.subject.session.scan.'


  ## The Image Detail page controller. ##

  ctlrs.controller 'ImageDetailCtrl', [
    '$rootScope', '$scope', 'image', 'Image', 'ControllerHelper',
    ($rootScope, $scope, image, Image, ControllerHelper) ->
      # Capture the current project.

          size: 'sm'
          resolve:
            # Make modeling injectable in the modal controller.
            # See the ModelingInfoModalCtrl comment.
            modeling: ->
              $scope.modeling
            # Fetch the modeling protocol.
            protocol: ->
              ModelingProtocol.find(id: $scope.modeling.protocol).$promise
  ]


  ctlrs.controller 'ModelingInfoModalCtrl', [
    '$scope', '$modalInstance', 'modeling', 'protocol',
    ($scope, $modalInstance, modeling, protocol) ->
      # Since the modal is not contained in the application page, this
      # modal controller scope does not inherit the application page
      # scope. Therefore, the application scope modeling variable is
      # not visible to the modal scope. Hence, it is necessary to
      # transfer the modeling object as a $modal.open function resolve
      # property into this controller's injection list.
      # The assignment below then places the modeling object in the
      # modal scope for use in the modal template partial.
      $scope.modeling = modeling
      $scope.protocol = protocol
      $scope.close = ->
        $modalInstance.close()
  ]


  ctlrs.controller 'ModelingSourceProtocolCtrl', [
    '$scope',
    ($scope) ->
      # The modeling source is either a scan or registration protocol.
      if $scope.modeling.source.scan?
        $scope.sourceType = 'scan'
        $scope.protocolId = $scope.modeling.source.scan
      else if $scope.modeling.source.registration?
        $scope.sourceType = 'registration'
        $scope.protocolId = $scope.modeling.source.registration
      else
        throw new Error("The modeling source has neither a scan" +
                        " nor a registration protocol reference")
  ]


