Changeset 6117


Ignore:
Timestamp:
03/24/15 16:04:20 (9 years ago)
Author:
Twan Goosen
Message:

up to date with trunk

Location:
vlo/branches/vlo-3.1
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.1

  • vlo/branches/vlo-3.1/CHANGES.txt

    r6103 r6117  
    11Bug Fixes and Features
    22
    3 VLO 3.1 (???)
     3VLO 3.1 (March 2015)
    44* Added the 'license' facet
    55        <https://trac.clarin.eu/ticket/393>
  • vlo/branches/vlo-3.1/UPGRADE.txt

    r6103 r6117  
    1818        - solrUrl
    1919        - homeUrl
     20        - deleteAllFirst
    2021        - maxDaysInSolr
    2122- Make any further version specific adjustments as described in this document
  • vlo/branches/vlo-3.1/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/components/LanguageInfoLink.java

    r6029 r6117  
    8282        // when a link can be generated (i.e. wehen a language code is
    8383        // available) show the link; otherwise show the fallback label
    84         final boolean linkAvailable = getLanguageCode() != null;
     84        final boolean linkAvailable = newLanguageCodeMatcher().matches();
    8585        link.setVisible(linkAvailable);
    8686        fallbackLabel.setVisible(!linkAvailable);
     
    8888
    8989    private String getLanguageCode() {
    90         final Matcher matcher = LANGUAGE_CODE_REGEX.matcher(getModelObject());
     90        final Matcher matcher = newLanguageCodeMatcher();
    9191        if (matcher.matches() && matcher.groupCount() == 1) {
    9292            return matcher.group(1);
     
    9595        }
    9696    }
     97
     98    private Matcher newLanguageCodeMatcher() {
     99        return LANGUAGE_CODE_REGEX.matcher(getModelObject());
     100    }
    97101}
Note: See TracChangeset for help on using the changeset viewer.