Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into 2.1.0_stable
Browse files Browse the repository at this point in the history
  • Loading branch information
rsehr committed May 21, 2015
2 parents 6762a33 + 0d6c378 commit 8273c0a
Show file tree
Hide file tree
Showing 86 changed files with 1,464 additions and 491 deletions.
13 changes: 11 additions & 2 deletions Goobi/.classpath
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="goobi_config.properties|hibernate.cfg.xml|log4j.properties|messages/" kind="src" path="src"/>
<classpathentry excluding="goobi_config.properties|hibernate.cfg.xml|log4j.properties|log4j.xml|messages/" kind="src" path="src"/>
<classpathentry kind="src" path="src_merge"/>
<classpathentry kind="src" path="src-dubious"/>
<classpathentry kind="src" path="test/src"/>
Expand Down Expand Up @@ -123,14 +123,21 @@
<classpathentry kind="lib" path="webapp/WEB-INF/lib/jsf-impl-2.2.5.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/commons-dbcp2-2.0.1.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/commons-pool2-2.3.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/ics-1.4.07.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/jgravatar.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/httpcore-nio-4.4.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/commons-codec-1.9.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/fluent-hc-4.4.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/httpclient-cache-4.4.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/httpmime-4.4.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/httpcore-4.4.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/jempbox-1.7.1.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/commons-logging-1.2.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/javax.json-api-1.0.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/jackson-annotations-2.5.0.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/jackson-core-2.5.0.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/jackson-databind-2.5.0.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/jxls-core-1.0.5.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/jxls-reader-1.0.5.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/servlet-api.jar"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/jasper.jar"/>
Expand All @@ -144,5 +151,7 @@
</classpathentry>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/jdom-2.0.5.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/httpclient-4.4.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/ics-1.4.10.jar"/>
<classpathentry kind="lib" path="webapp/WEB-INF/lib/gson-2.2.4.jar"/>
<classpathentry kind="output" path="webapp/WEB-INF/classes"/>
</classpath>
6 changes: 6 additions & 0 deletions Goobi/.project
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.instantiations.assist.eclipse.coverage.instrumentationBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
Expand All @@ -50,6 +55,7 @@
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.zeroturnaround.eclipse.jrebelNature</nature>
<nature>com.instantiations.assist.eclipse.coverage.codeCoverageNature</nature>
</natures>
<linkedResources>
<link>
Expand Down
3 changes: 1 addition & 2 deletions Goobi/.settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
eclipse.preferences.version=1
encoding//webapp/index.html=UTF-8
encoding//webapp/ui/css/default.css=UTF-8
encoding//webapp/ui/css/default_2.1.css=UTF-8
encoding//webapp/ui/css/print.css=UTF-8
encoding//webapp/ui/currentUsers.xhtml=UTF-8
encoding//webapp/ui/imprint.xhtml=UTF-8
Expand Down
2 changes: 1 addition & 1 deletion Goobi/src/contentServerConfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<imageTypeSettings>
<type format="default" colorType="default" compression="default" embeddedColorProfile="both" minSize="0" maxSize="0">
<settings allowRenderWithJAI="false" allowSubSampline="false" scaleWithScalr="false" mergeWithJAI="false" forceConvertToBuffered="false" forceConvertToRGB="false" forwardDirectlyIfPossible="true"></settings>
<settings allowRenderWithJAI="false" allowSubSampling="false" scaleWithScalr="false" mergeWithJAI="false" forceConvertToBuffered="false" forceConvertToRGB="false" forwardDirectlyIfPossible="true"></settings>
</type>
</imageTypeSettings>

Expand Down
21 changes: 19 additions & 2 deletions Goobi/src/de/sub/goobi/config/ConfigurationHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ public String getApplicationURL() {
}

public String getApplicationHeaderTitle() {
return getLocalString("ApplicationHeaderTitle", "Goobi - Universitätsbibliothek Göttingen");
return getLocalString("ApplicationHeaderTitle", "Goobi intranda edition");
}

public String getApplicationTitle() {
return getLocalString("ApplicationTitle", "http://goobi.gdz.uni-goettingen.de");
return getLocalString("ApplicationTitle", "http://goobi.intranda.com");
}

public String getApplicationTitleStyle() {
Expand Down Expand Up @@ -538,6 +538,14 @@ public List<String> getDownloadColumnWhitelist() {
return getLocalList("downloadAvailableColumn");
}

public boolean isUseIntrandaUi() {
return getLocalBoolean("ui_useIntrandaUI", false);
}

public String getDashboardPlugin() {
return getLocalString("dashboardPlugin", null);
}

// proxy settings
public boolean isUseProxy() {
return getLocalBoolean("http_useProxy", false);
Expand Down Expand Up @@ -603,6 +611,15 @@ public int getGoobiModuleServerPort() {
return getLocalInt("goobiModuleServerPort");
}


public boolean isConfirmLinking() {
return getLocalBoolean("confirmLinking", false);
}

public boolean isAllowFolderLinkingForProcessList() {
return getLocalBoolean("ui_showFolderLinkingInProcessList", false);
}

// for junit tests
public void setParameter(String inParameter, String value) {
config.setProperty(inParameter, value);
Expand Down
12 changes: 12 additions & 0 deletions Goobi/src/de/sub/goobi/forms/AdministrationForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,18 @@ public void ImagepfadKorrigieren() throws DAOException {
Helper.setMeldung(null, "", "Image paths set");
}

public void test(){
Helper.setFehlerMeldung("Fehlermeldung mit extrem langem Text, die sich über viele Zeilen erstreckt und so weiter geht bis ein Zeilenumbruch kommt der dann in einem Zeilenumbruch endet und damit die Zeile umgebrochen hat 1");
Helper.setFehlerMeldung("Fehlermeldung mit extrem langem Text, die sich über viele Zeilen erstreckt und so weiter geht bis ein Zeilenumbruch kommt der dann in einem Zeilenumbruch endet und damit die Zeile umgebrochen hat 2");
Helper.setFehlerMeldung("Fehlermeldung mit extrem langem Text, die sich über viele Zeilen erstreckt und so weiter geht bis ein Zeilenumbruch kommt der dann in einem Zeilenumbruch endet und damit die Zeile umgebrochen hat 3");
Helper.setFehlerMeldung("Fehlermeldung mit extrem langem Text, die sich über viele Zeilen erstreckt und so weiter geht bis ein Zeilenumbruch kommt der dann in einem Zeilenumbruch endet und damit die Zeile umgebrochen hat 4", new Exception("eine Exception die eine Exception ist und damit eine Exception geworfen hat."));

Helper.setMeldung("Meldung mit extrem langem Text, die sich über viele Zeilen erstreckt und so weiter geht bis ein Zeilenumbruch kommt der dann in einem Zeilenumbruch endet und damit die Zeile umgebrochen hat 1");
Helper.setMeldung("Meldung mit extrem langem Text, die sich über viele Zeilen erstreckt und so weiter geht bis ein Zeilenumbruch kommt der dann in einem Zeilenumbruch endet und damit die Zeile umgebrochen hat 2");
Helper.setMeldung("Meldung mit extrem langem Text, die sich über viele Zeilen erstreckt und so weiter geht bis ein Zeilenumbruch kommt der dann in einem Zeilenumbruch endet und damit die Zeile umgebrochen hat 3");
}


public void PPNsKorrigieren() throws DAOException {
UghHelper ughhelp = new UghHelper();

Expand Down
2 changes: 1 addition & 1 deletion Goobi/src/de/sub/goobi/forms/HelperForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public String getBuildVersion() {
}

public String getVersion() {
return "2.0";
return "2.1";
}

// TODO: Change the defaults
Expand Down
1 change: 1 addition & 0 deletions Goobi/src/de/sub/goobi/forms/ModuleServerForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@

@ManagedBean(name = "ModuleServerForm")
@RequestScoped
@Deprecated
public class ModuleServerForm {
private Boolean running = false;
private static GoobiModuleManager modulmanager = null;
Expand Down
32 changes: 31 additions & 1 deletion Goobi/src/de/sub/goobi/forms/NavigationForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@
* exception statement from your version.
*/

import java.util.HashMap;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;

import org.apache.commons.lang.StringUtils;

import de.sub.goobi.config.ConfigurationHelper;
import de.sub.goobi.helper.FacesContextHelper;

@ManagedBean(name = "NavigationForm")
@SessionScoped
Expand All @@ -42,7 +48,9 @@ public class NavigationForm {
private boolean showSidebar = true;
private String activeTab = "productionStatistics";
private String activeImportTab = "recordImport";

private HashMap<String, String> uiStatus = new HashMap<String, String>();
private String currentTheme = "/uii";

public String getAktuell() {
return this.aktuell;
}
Expand All @@ -67,10 +75,12 @@ public String BenutzerBearbeiten() {
*
* @return true if show_taskmanager in file GoobiConfig.properties is =true
*/
@SuppressWarnings("deprecation")
public Boolean getShowTaskManager() {
return ConfigurationHelper.getInstance().isShowTaskmanager();
}

@SuppressWarnings("deprecation")
public Boolean getShowModuleManager() {
return ConfigurationHelper.getInstance().isShowModulmanager();
}
Expand Down Expand Up @@ -114,4 +124,24 @@ public String getActiveImportTab() {
public void setActiveImportTab(String activeImportTab) {
this.activeImportTab = activeImportTab;
}

public HashMap<String, String> getUiStatus() {
return uiStatus;
}

public String changeTheme() {
FacesContext context = FacesContextHelper.getCurrentFacesContext();
String completePath = context.getExternalContext().getRequestServletPath();
if (StringUtils.isNotBlank(completePath)) {
completePath = completePath.replace("/uii", "");
completePath = completePath.replace("/ui", "");
}
if (currentTheme.equals("/uii")) {
currentTheme = "/ui";
} else {
currentTheme = "/uii";
}
return currentTheme + completePath + "?faces-redirect=true";
}

}
11 changes: 10 additions & 1 deletion Goobi/src/de/sub/goobi/forms/ProzesskopieForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public class ProzesskopieForm {

public String Prepare() {
atstsl = "";
opacSuchbegriff = "";
// Helper.getHibernateSession().refresh(this.prozessVorlage);
if (this.prozessVorlage.getContainsUnreachableSteps()) {
if (this.prozessVorlage.getSchritteList().size() == 0) {
Expand Down Expand Up @@ -231,6 +232,7 @@ private void readProjectConfigs() {

fa.setInitEnd(cp.getParamString("createNewProcess.itemlist.item(" + i + ")[@initEnd]"));


/*
* -------------------------------- Bindung an ein Metadatum eines Docstructs --------------------------------
*/
Expand All @@ -248,6 +250,11 @@ private void readProjectConfigs() {
*/
int selectItemCount = cp.getParamList("createNewProcess.itemlist.item(" + i + ").select").size();
/* Children durchlaufen und SelectItems erzeugen */

if (selectItemCount ==1) {
fa.setWert(cp.getParamString("createNewProcess.itemlist.item(" + i + ").select(0)"));
}

if (selectItemCount > 0) {
if (cp.getParamString("createNewProcess.itemlist.item(" + i + ")[@multiselect]", "true").equals("true")) {
fa.setMultiselect(true);
Expand Down Expand Up @@ -389,7 +396,9 @@ private void fillFieldsFromMetadataFile() throws PreferencesException {
MetadataType mdt = this.ughHelper.getMetadataType(this.prozessKopie.getRegelsatz().getPreferences(), field.getMetadata());
Metadata md = this.ughHelper.getMetadata(myTempStruct, mdt);
if (md != null) {
field.setWert(md.getValue());
if ((md.getValue() != null && !md.getValue().isEmpty()) || field.getWert() == null || field.getWert().isEmpty()){
field.setWert(md.getValue());
}
md.setValue(field.getWert().replace("&amp;", "&"));
}
}
Expand Down
5 changes: 5 additions & 0 deletions Goobi/src/de/sub/goobi/forms/SessionForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public class SessionForm {
private String aktuelleZeit = this.formatter.format(new Date());
private String bitteAusloggen = "";

private static final String MONITORING_CHECK = "nagios-plugins";

public int getAktiveSessions() {
if (this.alleSessions == null) {
return 0;
Expand Down Expand Up @@ -109,6 +111,9 @@ private void sessionAdd(HttpSession insession) {
if (mybrowser == null) {
mybrowser = "-";
}
if (mybrowser.contains(MONITORING_CHECK)) {
return;
}
map.put("browser", mybrowser);
if (mybrowser.indexOf("Gecko") > 0) {
map.put("browserIcon", "mozilla.png");
Expand Down
5 changes: 4 additions & 1 deletion Goobi/src/de/sub/goobi/helper/BatchStepHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,9 @@ public String ReportProblemForSingle() {

this.myDav.UploadFromHome(this.currentStep.getProzess());
reportProblem();
saveStep();
this.problemMessage = "";
this.myProblemStep = "";
saveStep();
StepBean asf = (StepBean) Helper.getManagedBeanValue("#{AktuelleSchritteForm}");
return asf.FilterAlleStart();
}
Expand All @@ -443,6 +443,7 @@ private void reportProblem() {
Date myDate = new Date();
this.currentStep.setBearbeitungsstatusEnum(StepStatus.LOCKED);
this.currentStep.setEditTypeEnum(StepEditType.MANUAL_SINGLE);
this.currentStep.setPrioritaet(Integer.valueOf(10));
currentStep.setBearbeitungszeitpunkt(new Date());
User ben = (User) Helper.getManagedBeanValue("#{LoginForm.myBenutzer}");
if (ben != null) {
Expand All @@ -459,6 +460,7 @@ private void reportProblem() {
}
if (temp != null) {
temp.setBearbeitungsstatusEnum(StepStatus.OPEN);
temp.setPrioritaet(Integer.valueOf(10));
temp.setCorrectionStep();
temp.setBearbeitungsende(null);
ErrorProperty se = new ErrorProperty();
Expand Down Expand Up @@ -498,6 +500,7 @@ private void reportProblem() {
// .add(Restrictions.idEq(this.currentStep.getProzess().getId())).list();
for (Iterator<Step> iter = alleSchritteDazwischen.iterator(); iter.hasNext();) {
Step step = iter.next();
step.setPrioritaet(Integer.valueOf(10));
step.setBearbeitungsstatusEnum(StepStatus.LOCKED);
step.setCorrectionStep();
step.setBearbeitungsende(null);
Expand Down
2 changes: 1 addition & 1 deletion Goobi/src/de/sub/goobi/helper/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static Integer getNumberOfFiles(File inDir) {
/* --------------------------------
* die Images zählen
* --------------------------------*/
anzahl = inDir.list(Helper.imageNameFilter).length;
anzahl = inDir.list(Helper.dataFilter).length;

/* --------------------------------
* die Unterverzeichnisse durchlaufen
Expand Down
Loading

0 comments on commit 8273c0a

Please sign in to comment.