コード例 #1
0
  public String getEditComplementaryInfo() {
    if (isBiblioRecord) {
      CustomStorageRecord record = null;
      if (complementaryRecordId != 0)
        record =
            NliUnimarcStorageServiceProxy.getInstance()
                .findById(BibliographicRecord.class, complementaryRecordId);

      if (null != record
          && StorageActions.editStorageRecord(
              BibliographicRecord.class,
              (TempDatabankDefinition) null,
              StorageBean.class,
              record,
              false,
              false)) return Constants.STORAGE_EDIT_RECORD_OUTCOME;
      else return Constants.NULL_OUTCOME;
    } else {
      CustomStorageRecord record = null;
      if (complementaryRecordId != 0)
        record =
            NliUnimarcStorageServiceProxy.getInstance()
                .findById(TempBibliographicRecord.class, complementaryRecordId);

      if (null != record
          && StorageActions.editStorageRecord(
              TempBibliographicRecord.class,
              DatabankWebUtils.getInstance().getActiveStorageDatabank(),
              StorageBean.class,
              record,
              false,
              false)) return Constants.STORAGE_EDIT_RECORD_OUTCOME;
      else return Constants.NULL_OUTCOME;
    }
  }
コード例 #2
0
 public String getViewComplementaryInfo() {
   if (complementaryRecordId != 0) {
     if (isBiblioRecord) {
       StorageActions.displayOutputFormat(BibliographicRecord.class, complementaryRecordId, null);
       return JsfUtils.getInstance()
           .wrapWindow(
               "/storage/storageViewRecord.jspx", 800, 600, true, true, true, true, true, true);
     } else {
       StorageActions.displayOutputFormat(
           TempBibliographicRecord.class, complementaryRecordId, null);
       return JsfUtils.getInstance()
           .wrapWindow(
               "/storage/storageViewRecord.jspx", 800, 600, true, true, true, true, true, true);
     }
   }
   return "";
 }