Skip to content

Commit

Permalink
fix some more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
helix84 committed Jun 21, 2012
1 parent 8d4ecb5 commit 5ce2d16
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 20 deletions.
18 changes: 9 additions & 9 deletions dspace-api/src/main/java/org/dspace/content/Collection.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public String getName()
} }


/** /**
* Get the logo for the collection. <code>null</code> is return if the * Get the logo for the collection. <code>null</code> is returned if the
* collection does not have a logo. * collection does not have a logo.
* *
* @return the logo of the collection, or <code>null</code> * @return the logo of the collection, or <code>null</code>
Expand All @@ -482,11 +482,11 @@ public Bitstream getLogo()
* Give the collection a logo. Passing in <code>null</code> removes any * Give the collection a logo. Passing in <code>null</code> removes any
* existing logo. You will need to set the format of the new logo bitstream * existing logo. You will need to set the format of the new logo bitstream
* before it will work, for example to "JPEG". Note that * before it will work, for example to "JPEG". Note that
* <code>update(/code> will need to be called for the change to take * <code>update</code> will need to be called for the change to take
* effect. Setting a logo and not calling <code>update</code> later may * effect. Setting a logo and not calling <code>update</code> later may
* result in a previous logo lying around as an "orphaned" bitstream. * result in a previous logo lying around as an "orphaned" bitstream.
* *
* @param is the stream to use as the new logo * @param is the stream to use as the new logo
* *
* @return the new logo bitstream, or <code>null</code> if there is no * @return the new logo bitstream, or <code>null</code> if there is no
* logo (<code>null</code> was passed in) * logo (<code>null</code> was passed in)
Expand Down Expand Up @@ -865,7 +865,7 @@ public void createTemplateItem() throws SQLException, AuthorizeException
/** /**
* Remove the template item for this collection, if there is one. Note that * Remove the template item for this collection, if there is one. Note that
* since this has to remove the old template item ID from the collection * since this has to remove the old template item ID from the collection
* record in the database, the colletion record will be changed, including * record in the database, the collection record will be changed, including
* any other changes made; in other words, this method does an * any other changes made; in other words, this method does an
* <code>update</code>. * <code>update</code>.
* *
Expand All @@ -887,7 +887,7 @@ public void removeTemplateItem() throws SQLException, AuthorizeException,
log.info(LogManager.getHeader(ourContext, "remove_template_item", log.info(LogManager.getHeader(ourContext, "remove_template_item",
"collection_id=" + getID() + ",template_item_id=" "collection_id=" + getID() + ",template_item_id="
+ template.getID())); + template.getID()));
// temporary turn off auth system, we have already checked the permission on the top of the method // temporarily turn off auth system, we have already checked the permission on the top of the method
// check it again will fail because we have already broken the relation between the collection and the item // check it again will fail because we have already broken the relation between the collection and the item
ourContext.turnOffAuthorisationSystem(); ourContext.turnOffAuthorisationSystem();
template.delete(); template.delete();
Expand Down Expand Up @@ -943,7 +943,7 @@ public void removeItem(Item item) throws SQLException, AuthorizeException,
// Check authorisation // Check authorisation
AuthorizeManager.authorizeAction(ourContext, this, Constants.REMOVE); AuthorizeManager.authorizeAction(ourContext, this, Constants.REMOVE);


// will be the item an orphan? // will the item be an orphan?
TableRow row = DatabaseManager.querySingle(ourContext, TableRow row = DatabaseManager.querySingle(ourContext,
"SELECT COUNT(DISTINCT collection_id) AS num FROM collection2item WHERE item_id= ? ", "SELECT COUNT(DISTINCT collection_id) AS num FROM collection2item WHERE item_id= ? ",
item.getID()); item.getID());
Expand All @@ -967,7 +967,7 @@ public void removeItem(Item item) throws SQLException, AuthorizeException,
} }


/** /**
* Update the collection metadata (including logo, and workflow groups) to * Update the collection metadata (including logo and workflow groups) to
* the database. Inserts if this is a new collection. * the database. Inserts if this is a new collection.
* *
* @throws SQLException * @throws SQLException
Expand Down Expand Up @@ -1082,7 +1082,7 @@ void delete() throws SQLException, AuthorizeException, IOException


if (item.isOwningCollection(this)) if (item.isOwningCollection(this))
{ {
// the collection to be deletd is the owning collection, thus remove // the collection to be deleted is the owning collection, thus remove
// the item from all collections it belongs to // the item from all collections it belongs to
Collection[] collections = item.getCollections(); Collection[] collections = item.getCollections();
for (int i=0; i< collections.length; i++) for (int i=0; i< collections.length; i++)
Expand Down Expand Up @@ -1356,7 +1356,7 @@ public int getType()
* @param comm * @param comm
* (optional) restrict search to a community, else null * (optional) restrict search to a community, else null
* @param actionID * @param actionID
* fo the action * of the action
* *
* @return Collection [] of collections with matching permissions * @return Collection [] of collections with matching permissions
* @throws SQLException * @throws SQLException
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
import ORG.oclc.oai.server.verb.OAIInternalServerError; import ORG.oclc.oai.server.verb.OAIInternalServerError;


/** /**
* This is class extends OAICat's AbstractCatalog base class to allow metadata * This class extends OAICat's AbstractCatalog base class to allow
* harvesting of the metadata in DSpace via OAI-PMH 2.0. * harvesting of the metadata in DSpace via OAI-PMH 2.0.
* *
* FIXME: Some CNRI Handle-specific stuff in here. Anyone wanting to use * FIXME: Some CNRI Handle-specific stuff in here. Anyone wanting to use
* something else will need to update this code too. Sorry about that. * something else will need to update this code, too. Sorry about that.
* *
* @author Robert Tansley * @author Robert Tansley
* @version $Revision$ * @version $Revision$
Expand Down Expand Up @@ -102,7 +102,7 @@ public Vector getSchemaLocations(String identifier)
{ {
context = new Context(); context = new Context();


// Valid identifiers all have prefix "oai:hostname:" // All valid identifiers have the "oai:hostname:" prefix
if (identifier != null && identifier.startsWith(OAI_ID_PREFIX)) if (identifier != null && identifier.startsWith(OAI_ID_PREFIX))
{ {
itemInfo = Harvest.getSingle(context, identifier itemInfo = Harvest.getSingle(context, identifier
Expand Down Expand Up @@ -444,7 +444,7 @@ public Map listRecords(String from, String until, String set,


Map m = doRecordHarvest(from, until, set, metadataPrefix, 0); Map m = doRecordHarvest(from, until, set, metadataPrefix, 0);


// Null means bad metadata prefix was bad // Null means bad metadata prefix
if (m == null) if (m == null)
{ {
log.info(LogManager.getHeader(null, "oai_error", log.info(LogManager.getHeader(null, "oai_error",
Expand Down Expand Up @@ -894,8 +894,7 @@ private Object[] decodeResumptionToken(String token)
String s = st.nextToken(); String s = st.nextToken();


// If this value is a delimiter /, we have no value for this // If this value is a delimiter /, we have no value for this
// part // part of the resumption token.
// of the resumption token.
if (s.equals("/")) if (s.equals("/"))
{ {
obj[i] = null; obj[i] = null;
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public class ClientOptions
private String formatNamespace = null; private String formatNamespace = null;


/** /**
* Introduce a checksum error. This is used to simualte an error with the * Introduce a checksum error. This is used to simulate an error with the
* MD5 value. * MD5 value.
*/ */
private boolean checksumError = false; private boolean checksumError = false;
Expand All @@ -130,7 +130,7 @@ public class ClientOptions
private static final Pattern multiPattern = Pattern.compile("(.*?)(\\[(.*?)\\]){0,1}(:(.*)){0,1}@(http://.*)"); private static final Pattern multiPattern = Pattern.compile("(.*?)(\\[(.*?)\\]){0,1}(:(.*)){0,1}@(http://.*)");


/** /**
* Flag that indicates if the gui mode has been set. This is * Flag that indicates if the GUI mode has been set. This is
* true by default. * true by default.
*/ */
private boolean guiMode = true; private boolean guiMode = true;
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class PostMessage
private String packaging; private String packaging;


/** /**
* True if the deposit should simualte a checksum error. The client should check this * True if the deposit should simulate a checksum error. The client should check this
* field to determine if a correct MD5 checksum should be sent or whether the checksum should * field to determine if a correct MD5 checksum should be sent or whether the checksum should
* be modified so that it generates an error at the server. * be modified so that it generates an error at the server.
*/ */
Expand Down Expand Up @@ -362,4 +362,4 @@ public String getUserAgent() {
public void setUserAgent(String userAgent) { public void setUserAgent(String userAgent) {
this.userAgent = userAgent; this.userAgent = userAgent;
} }
} }
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void addPageMeta(PageMeta pageMeta) throws SAXException,
WingException, UIException, SQLException, IOException, WingException, UIException, SQLException, IOException,
AuthorizeException AuthorizeException
{ {
// FIXME: I don't think these should be set here, but there needed and I'm // FIXME: I don't think these should be set here, but they're needed and I'm
// not sure where else it could go. Perhaps the linkResolver? // not sure where else it could go. Perhaps the linkResolver?
Request request = ObjectModelHelper.getRequest(objectModel); Request request = ObjectModelHelper.getRequest(objectModel);
pageMeta.addMetadata("contextPath").addContent(contextPath); pageMeta.addMetadata("contextPath").addContent(contextPath);
Expand Down

0 comments on commit 5ce2d16

Please sign in to comment.