Esempio n. 1
0
  private String getHeader(SelectCategory category) {
    Labels labels = Labels.INSTANCE;

    String header = labels.selectBook();

    String label = getLabel(category);
    if (!label.isEmpty()) {
      header += ": " + label;
    }

    return header;
  }
Esempio n. 2
0
 private String getLabel(SelectCategory category) {
   Labels labels = Labels.INSTANCE;
   switch (category) {
     case REPOSITORY:
       return labels.repository();
     case SHELFMARK:
       return labels.shelfmark();
     case COMMON_NAME:
       return labels.commonName();
     case LOCATION:
       return labels.currentLocation();
     case DATE:
       return labels.date();
     case ORIGIN:
       return labels.origin();
     case TYPE:
       return labels.type();
     case NUM_ILLUSTRATIONS:
       return labels.numIllustrations();
     case NUM_FOLIOS:
       return labels.numFolios();
     case TRANSCRIPTION:
       return labels.transcription();
     case BIBLIOGRAPHY:
     case NARRATIVE_TAGGING:
     case ILLUSTRATION_TAGGING:
     case ID:
     default:
       return "";
   }
 }