Skip to content
Browse files

fix a bunch of typos

  • Loading branch information...
1 parent 39f2f13 commit dd33421f2b45e91906be747197a6563a456e6839 @helix84 helix84 committed Oct 5, 2012
View
2 dspace-api/src/main/java/org/dspace/authenticate/ShibAuthentication.java
@@ -736,7 +736,7 @@ private EPerson registerNewEPerson(Context context, HttpServletRequest request)
/**
- * After we sucessfully authenticated a user, this method will update the users attributes. The
+ * After we successfully authenticated a user, this method will update the user's attributes. The
* user's email, name, or other attribute may have been changed since the last time they
* logged into DSpace. This method will update the database with their most recent information.
*
View
2 dspace-api/src/main/java/org/dspace/checker/DailyReportEmailer.java
@@ -94,7 +94,7 @@ public void sendReport(File attachment, int numberOfBitstreams)
// create the first part of the email
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart
- .setText("This is the checksum checker report see attachment for details \n"
+ .setText("This is the checksum checker report, see attachment for details \n"
+ numberOfBitstreams
+ " Bitstreams found with POSSIBLE issues");
multipart.addBodyPart(messageBodyPart);
View
2 dspace-api/src/main/java/org/dspace/content/DSpaceObject.java
@@ -132,7 +132,7 @@ public static DSpaceObject find(Context context, int type, int id)
* <p>
* Default behaviour is ADMIN right on the object grant right on all other
* action on the object itself. Subclass should override this method as
- * need.
+ * needed.
*
* @param action
* ID of action being attempted, from
View
28 dspace-api/src/main/java/org/dspace/harvest/OAIHarvester.java
@@ -402,12 +402,12 @@ public void runHarvest() throws SQLException, IOException, AuthorizeException
ourContext.restoreAuthSystemState();
}
- // If we got to this point, it means the harvest was completely succeful
+ // If we got to this point, it means the harvest was completely successful
Date finishTime = new Date();
long timeTaken = finishTime.getTime() - startTime.getTime();
- harvestRow.setHarvestResult(startTime, "Harvest from " + oaiSource + " sucessful");
+ harvestRow.setHarvestResult(startTime, "Harvest from " + oaiSource + " successful");
harvestRow.setHarvestStatus(HarvestedCollection.STATUS_READY);
- log.info("Harvest from " + oaiSource + " sucessful. The process took " + timeTaken + " milliseconds.");
+ log.info("Harvest from " + oaiSource + " successful. The process took " + timeTaken + " milliseconds.");
harvestRow.update();
ourContext.commit();
}
@@ -426,7 +426,7 @@ private void processRecord(Element record, String OREPrefix) throws SQLException
String itemOaiID = record.getChild("header", OAI_NS).getChild("identifier", OAI_NS).getText();
Element header = record.getChild("header",OAI_NS);
- // look up the item corresponsing to the OAI identifier
+ // look up the item corresponding to the OAI identifier
Item item = HarvestedItem.getItemByOAIId(ourContext, itemOaiID, targetCollection.getID());
// Make sure the item hasn't been deleted in the mean time
@@ -465,7 +465,7 @@ private void processRecord(Element record, String OREPrefix) throws SQLException
// FIXME: check for null pointer if for some odd reason we don't have a matching hi
hi = HarvestedItem.find(ourContext, item.getID());
- // Comprate last-harvest on the item versus the last time the item was updated on the OAI provider side
+ // Compare last-harvest on the item versus the last time the item was updated on the OAI provider side
// If ours is more recent, forgo this item, since it's probably a left-over from a previous harvesting attempt
Date OAIDatestamp = Utils.parseISO8601Date(header.getChildText("datestamp", OAI_NS));
Date itemLastHarvest = hi.getHarvestDate();
@@ -524,7 +524,7 @@ private void processRecord(Element record, String OREPrefix) throws SQLException
// see if we can do something about the wonky metadata
scrubMetadata(item);
- // see if a handle can be exracted for the item
+ // see if a handle can be extracted for the item
String handle = extractHandle(item);
if (handle != null)
@@ -589,7 +589,7 @@ private void processRecord(Element record, String OREPrefix) throws SQLException
long timeTaken = new Date().getTime() - timeStart.getTime();
log.info("Item " + item.getHandle() + "(" + item.getID() + ")" + " has been ingested. The whole process took: " + timeTaken + " ms. ");
- // Un-ignore authorization
+ // Stop ignoring authorization
ourContext.restoreAuthSystemState();
}
@@ -693,7 +693,7 @@ private void scrubMetadata(Item item) throws SQLException, HarvestingException,
}
clearList.add(value.schema);
}
- // ignore the offending schema, quietly dropping all of it's metadata elements before they clog our gears
+ // ignore the offending schema, quietly dropping all of its metadata elements before they clog our gears
else if (schemaChoice.equals("ignore")) {
item.clearMetadata(value.schema, Item.ANY, Item.ANY, Item.ANY);
continue;
@@ -788,7 +788,7 @@ private String oaiGetDateGranularity(String oaiSource) throws IOException, Parse
* Query the OAI-PMH server for its mapping of the supplied namespace and metadata prefix.
* For example for a typical OAI-PMH server a query "http://www.openarchives.org/OAI/2.0/oai_dc/" would return "oai_dc".
* @param oaiSource the address of the OAI-PMH provider
- * @param MDNamespace the namespace that we are trying to resove to the metadataPrefix
+ * @param MDNamespace the namespace that we are trying to resolve to the metadataPrefix
* @return metadataPrefix the OAI-PMH provider has assigned to the supplied namespace
*/
public static String oaiResolveNamespaceToPrefix(String oaiSource, String MDNamespace) throws IOException, ParserConfigurationException, SAXException, TransformerException, ConnectException
@@ -1390,13 +1390,3 @@ private void runHarvest()
}
-
-
-
-
-
-
-
-
-
-
View
4 dspace-jspui/pom.xml
@@ -8,7 +8,7 @@
<!--
A Parent POM that Maven inherits DSpace Default
- POM atrributes from.
+ POM attributes from.
-->
<parent>
<groupId>org.dspace</groupId>
@@ -129,4 +129,4 @@
</dependencies>
-</project>
+</project>
View
2 dspace-jspui/src/main/java/org/dspace/app/webui/servlet/BrowserServlet.java
@@ -209,7 +209,7 @@ protected void exportMetadata(Context context, HttpServletRequest request,
}
catch (BrowseException be)
{
- // Not sure what happended here!
+ // Not sure what happened here!
JSPManager.showIntegrityError(request, response);
}
}
View
4 dspace-sword/pom.xml
@@ -10,7 +10,7 @@
<!--
A Parent POM that Maven inherits DSpace Default
- POM atrributes from.
+ POM attributes from.
-->
<parent>
<groupId>org.dspace</groupId>
@@ -154,4 +154,4 @@
</dependency>
</dependencies>
-</project>
+</project>
View
4 dspace-sword/src/main/java/org/purl/sword/base/ServiceDocument.java
@@ -78,7 +78,7 @@ public Service getService() {
}
/**
- * Return the Service Document in it's XML form.
+ * Return the Service Document in its XML form.
*
* @return The ServiceDocument
*/
@@ -202,4 +202,4 @@ public SwordValidationInfo validate(Properties validationContext)
}
return service.validate(validationContext);
}
-}
+}
View
2 dspace-sword/src/main/java/org/purl/sword/server/ServiceDocumentServlet.java
@@ -163,7 +163,7 @@ protected void doPost(HttpServletRequest request,
}
/**
- * Utiliy method to return the username and password (separated by a colon
+ * Utility method to return the username and password (separated by a colon
* ':')
*
* @param request
View
2 dspace-swordv2/pom.xml
@@ -8,7 +8,7 @@
<!--
A Parent POM that Maven inherits DSpace Default
- POM atrributes from.
+ POM attributes from.
-->
<parent>
<groupId>org.dspace</groupId>
View
4 dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/eperson/LDAPLogin.java
@@ -34,7 +34,7 @@
* Query the user for their authentication credentials.
*
* The parameter "return-url" may be passed to give a location where to redirect
- * the user to after sucessfully authenticating.
+ * the user to after successfully authenticating.
*
* @author Jay Paz
*/
@@ -197,4 +197,4 @@ public void addBody(Body body) throws SQLException, SAXException,
submit.addButton("submit").setValue(T_submit);
}
-}
+}
View
4 dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/eperson/PasswordLogin.java
@@ -35,7 +35,7 @@
* Query the user for their authentication credentials.
*
* The parameter "return-url" may be passed to give a location
- * where to redirect the user to after sucessfully authenticating.
+ * where to redirect the user to after successfully authenticating.
*
* @author Sid
* @author Scott Phillips
@@ -226,4 +226,4 @@ public void addBody(Body body) throws SQLException, SAXException,
register.addPara().addXref(contextPath + "/register",T_register_link);
}
}
-}
+}
View
8 dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/eperson/VerifyEmail.java
@@ -23,13 +23,13 @@
import org.xml.sax.SAXException;
/**
- * Display to the user that a verification email has been set.
+ * Notify the user that a verification email has been sent.
*
* There are two parameters this transformer expects:
*
- * email - The email of the to-be-verrified account.
+ * email - The email of the account to be verified.
*
- * forgot - A boolean value indicating that this is part of the forgotten password workflow.
+ * forgot - A boolean value indicating whether this is part of the forgotten password workflow.
*
* @author Scott Phillips
*/
@@ -56,7 +56,7 @@
message("xmlui.EPerson.VerifyEmail.para");
- /** The email address being verrified */
+ /** The email address being verified */
private String email;
/** Determine if this is part of the forgot password workflow */
View
38 dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/submission/submit/DescribeStep.java
@@ -127,7 +127,7 @@ public DescribeStep() throws ServletException
this.requireSubmission = true;
this.requireStep = true;
- //Ensure that the InputsReader is initialized.
+ // Ensure that the InputsReader is initialized.
try
{
initializeInputsReader();
@@ -377,7 +377,7 @@ else if (inputType.equals("qualdrop_value"))
displayValue = value.value;
}
- //Only display this field if we have a value to display
+ // Only display this field if we have a value to display
if (displayValue!=null && displayValue.length()>0)
{
@@ -398,9 +398,9 @@ else if (inputType.equals("qualdrop_value"))
}
} // For each DCValue
} // If values exist
- }// For each input
+ } // For each input
- //return this new "describe" section
+ // return this new "describe" section
return describeSection;
}
@@ -411,7 +411,7 @@ else if (inputType.equals("qualdrop_value"))
* all other names).
*
* @param form
- * The form list to add the field too
+ * The form list to add the field to
* @param fieldName
* The field's name.
* @param dcInput
@@ -528,7 +528,7 @@ else if (dcValues.length == 1)
* box for the month, and a 2 character text field for the day.
*
* @param form
- * The form list to add the field too
+ * The form list to add the field to
* @param fieldName
* The field's name.
* @param dcInput
@@ -617,7 +617,7 @@ else if (dcValues.length == 1)
month.setOptionSelected(dcDate.getMonth());
// Check if the day field is not specified, if so then just
- // put a blank value in instead of the wiered looking -1.
+ // put a blank value in instead of the weird looking -1.
if (dcDate.getDay() == -1)
{
day.setValue("");
@@ -630,15 +630,15 @@ else if (dcValues.length == 1)
}
/**
- * Render a series field to the DRI document. The series field conist of
+ * Render a series field to the DRI document. The series field conists of
* two component text fields. When interpreted each of these fields are
* combined back together to be a single value joined together by a
- * semicolen. The primary use case is for the journal or report number
+ * semicolon. The primary use case is for the journal or report number
* the left hand side is the journal and the right hand side in a
* unique number within the journal.
*
* @param form
- * The form list to add the field too
+ * The form list to add the field to
* @param fieldName
* The field's name.
* @param dcInput
@@ -648,7 +648,7 @@ else if (dcValues.length == 1)
*/
private void renderSeriesField(List form, String fieldName, DCInput dcInput, DCValue[] dcValues, boolean readonly) throws WingException
{
- // The seiries field consists of two parts, a series name (text field)
+ // The series field consists of two parts, a series name (text field)
// and report or paper number (also a text field).
Composite fullSeries = form.addItem().addComposite(fieldName,"submit-"+dcInput.getInputType());
Text series = fullSeries.addText(fieldName+"_series");
@@ -716,12 +716,12 @@ else if (dcValues.length == 1)
/**
* Render a qualdrop field to the DRI document. Qualdrop fields are complicated,
* widget wise they are composed of two fields, a select and text box field.
- * The select field selects the metedata's qualifier and the text box is the
+ * The select field selects the metadata's qualifier and the text box is the
* value. This means that that there is not just one metadata element that is
* represented so the confusing part is that the name can change.
*
* @param form
- * The form list to add the field too
+ * The form list to add the field to
* @param fieldName
* The field's name.
* @param dcInput
@@ -802,7 +802,7 @@ else if (dcValues.length == 1)
* multi row and column text field.
*
* @param form
- * The form list to add the field too
+ * The form list to add the field to
* @param fieldName
* The field's name.
* @param dcInput
@@ -899,11 +899,11 @@ else if (dcValues.length == 1)
/**
* Render a dropdown field for a choice-controlled input of the
- * 'select' presentation to the DRI document. The dropdown field
+ * 'select' presentation to the DRI document. The dropdown field
* consists of an HTML select box.
*
* @param form
- * The form list to add the field too
+ * The form list to add the field to
* @param fieldName
* The field's name.
* @param dcInput
@@ -979,7 +979,7 @@ private void renderChoiceSelectField(List form, String fieldName, Collection col
* of an HTML select box.
*
* @param form
- * The form list to add the field too
+ * The form list to add the field to
* @param fieldName
* The field's name.
* @param dcInput
@@ -1050,7 +1050,7 @@ private void renderDropdownField(List form, String fieldName, DCInput dcInput, D
* similarly named.
*
* @param form
- * The form list to add the field too
+ * The form list to add the field to
* @param fieldName
* The field's name.
* @param dcInput
@@ -1132,7 +1132,7 @@ else if(listField instanceof Radio)
* Render a simple text field to the DRI document
*
* @param form
- * The form list to add the field too
+ * The form list to add the field to
* @param fieldName
* The field's name.
* @param dcInput
View
2 dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/xmltest/BasicFormTest.java
@@ -197,7 +197,7 @@ public void addBody(Body body) throws SAXException, WingException,
}
if (error)
{
- checkBox.addError("You are incorrect you actually do like Tootse Rolls.");
+ checkBox.addError("You are incorrect you actually do like Tootsie Rolls.");
}
checkBox.setLabel("fruits");
checkBox.addOption("apple","Apples");
View
2 dspace-xmlui/src/main/java/org/dspace/app/xmlui/configuration/XMLUIConfiguration.java
@@ -72,7 +72,7 @@ public static void loadConfig(String ... configPaths) throws IOException,
}
else
{
- log.debug("Faild to load XMLUI configuration from: "+configPath);
+ log.debug("Failed to load XMLUI configuration from: "+configPath);
}
}
View
2 dspace/config/dspace.cfg
@@ -1778,7 +1778,7 @@ webui.suggest.enable = false
# The default value is 250.
#xmlui.controlpanel.activity.max = 250
-# Determine where the control panel's activity viwer receives an event's IP address
+# Determine where the control panel's activity viewer receives an event's IP address
# from. If your DSpace is in a load balanced enviornment or otherwise behind a
# context-switch then you will need to set the paramater to the HTTP parameter that
# records the original IP address.
View
4 dspace/modules/additions/pom.xml
@@ -8,7 +8,7 @@
<!--
A Parent POM that Maven inherits DSpace Defaults
- POM atrributes from.
+ POM attributes from.
-->
<parent>
<groupId>org.dspace</groupId>
@@ -89,4 +89,4 @@
</dependencies>
-</project>
+</project>
View
4 dspace/modules/sword/pom.xml
@@ -10,7 +10,7 @@
<!--
A Parent POM that Maven inherits DSpace Default
- POM atrributes from.
+ POM attributes from.
-->
<parent>
<groupId>org.dspace</groupId>
@@ -91,4 +91,4 @@
</dependency>
</dependencies>
-</project>
+</project>
View
8 dspace/modules/swordv2/pom.xml
@@ -3,14 +3,14 @@
<groupId>org.dspace.modules</groupId>
<artifactId>swordv2</artifactId>
<packaging>war</packaging>
- <name>DSpace SWORDv2 :: Web Application</name>
+ <name>DSpace SWORD v2 :: Web Application</name>
<description>
- DSpace SWORDv2 Deposit Service Provider Web Application
+ DSpace SWORD v2 Deposit Service Provider Web Application
</description>
<!--
A Parent POM that Maven inherits DSpace Default
- POM atrributes from.
+ POM attributes from.
-->
<parent>
<groupId>org.dspace</groupId>
@@ -112,4 +112,4 @@
</dependencies>
-</project>
+</project>
View
2 dspace/pom.xml
@@ -10,7 +10,7 @@
</description>
<!--
A Parent POM that Maven inherits DSpace Default
- POM atrributes from.
+ POM attributes from.
-->
<parent>
<groupId>org.dspace</groupId>
View
8 dspace/src/main/config/build.xml
@@ -250,7 +250,7 @@ Common usage:
<echo>
- * To properly merge your previous configuration files, its
+ * To properly merge your previous configuration files, it's
best to try to take the newer version and copy your
previous changes into it.
====================================================================
@@ -309,7 +309,7 @@ Common usage:
<echo>
- * To properly merge your previous configuration files, its
+ * To properly merge your previous configuration files, it's
best to try to take the newer version and copy your
previous changes into it. Delete the old and remove the
".new" suffix from the new file.
@@ -424,7 +424,7 @@ Common usage:
<echo>
- * To properly merge your previous configuration files, its
+ * To properly merge your previous configuration files, it's
best to try to take the newer version and copy your
previous changes into it.
====================================================================
@@ -491,7 +491,7 @@ Common usage:
<echo>
- * To properly merge your previous configuration files, its
+ * To properly merge your previous configuration files, it's
best to try to take the newer version and copy your
previous changes into it. Delete the old and remove the
".new" suffix from the new file.

0 comments on commit dd33421

Please sign in to comment.
Something went wrong with that request. Please try again.