Project

General

Profile

« Previous | Next » 

Revision 3de12c0d

Added by Andreas Kohlbecker over 6 years ago

#5793 using new settings field status_glue to allow flexible configuration of the ditribution hierachy

View differences:

modules/cdm_dataportal/includes/descriptions.inc
1616 1616
   * @param $descriptionElement
1617 1617
   * @return array
1618 1618
   */
1619
  function distribution_status_label_and_markup($descriptionElement) {
1619
  function distribution_status_label_and_markup($descriptionElement, $status_glue = '‒ ') {
1620 1620
    $status_markup = '';
1621 1621
    $status_label = '';
1622 1622

  
1623 1623
    if (isset($descriptionElement->status)) {
1624 1624
      $status_label = $descriptionElement->status->representation_L10n;
1625
      $status_markup =  '<span class="distributionStatus distributionStatus-' . $descriptionElement->status->idInVocabulary . '"> '
1626
        . $status_label . '</span>';
1625
      $status_markup =  '<span class="distributionStatus"> '
1626
        . $status_glue
1627
        . '<span class="distributionStatus-' . $descriptionElement->status->idInVocabulary . '">'
1628
        . $status_label
1629
        . '</span></span>';
1627 1630

  
1628 1631
    };
1629 1632
    return array($status_label, $status_markup);
......
1821 1824
          UUID_DISTRIBUTION
1822 1825
        );
1823 1826

  
1824
        list($status_label, $status_markup) = distribution_status_label_and_markup($distribution);
1827
        list($status_label, $status_markup) = distribution_status_label_and_markup($distribution, $level_style['status_glue']);
1825 1828
      }
1826 1829

  
1827 1830
      $per_node_markup[$node_index] .= '<' . $enclosingTag . ' class="descriptionElement'

Also available in: Unified diff