Skip to content
This repository
Browse code

fix some more typos

  • Loading branch information...
commit 5ce2d16724bfd7fa63fa70b0b21f0e8312589485 1 parent 8d4ecb5
helix84 authored
18  dspace-api/src/main/java/org/dspace/content/Collection.java
@@ -468,7 +468,7 @@ public String getName()
468 468
     }
469 469
 
470 470
     /**
471  
-     * Get the logo for the collection. <code>null</code> is return if the
  471
+     * Get the logo for the collection. <code>null</code> is returned if the
472 472
      * collection does not have a logo.
473 473
      * 
474 474
      * @return the logo of the collection, or <code>null</code>
@@ -482,11 +482,11 @@ public Bitstream getLogo()
482 482
      * Give the collection a logo. Passing in <code>null</code> removes any
483 483
      * existing logo. You will need to set the format of the new logo bitstream
484 484
      * before it will work, for example to "JPEG". Note that
485  
-     * <code>update(/code> will need to be called for the change to take
  485
+     * <code>update</code> will need to be called for the change to take
486 486
      * effect.  Setting a logo and not calling <code>update</code> later may
487 487
      * result in a previous logo lying around as an "orphaned" bitstream.
488 488
      *
489  
-     * @param  is   the stream to use as the new logo
  489
+     * @param  is the stream to use as the new logo
490 490
      *
491 491
      * @return   the new logo bitstream, or <code>null</code> if there is no
492 492
      *           logo (<code>null</code> was passed in)
@@ -865,7 +865,7 @@ public void createTemplateItem() throws SQLException, AuthorizeException
865 865
     /**
866 866
      * Remove the template item for this collection, if there is one. Note that
867 867
      * since this has to remove the old template item ID from the collection
868  
-     * record in the database, the colletion record will be changed, including
  868
+     * record in the database, the collection record will be changed, including
869 869
      * any other changes made; in other words, this method does an
870 870
      * <code>update</code>.
871 871
      * 
@@ -887,7 +887,7 @@ public void removeTemplateItem() throws SQLException, AuthorizeException,
887 887
             log.info(LogManager.getHeader(ourContext, "remove_template_item",
888 888
                     "collection_id=" + getID() + ",template_item_id="
889 889
                             + template.getID()));
890  
-            // temporary turn off auth system, we have already checked the permission on the top of the method
  890
+            // temporarily turn off auth system, we have already checked the permission on the top of the method
891 891
             // check it again will fail because we have already broken the relation between the collection and the item
892 892
             ourContext.turnOffAuthorisationSystem();
893 893
             template.delete();
@@ -943,7 +943,7 @@ public void removeItem(Item item) throws SQLException, AuthorizeException,
943 943
         // Check authorisation
944 944
         AuthorizeManager.authorizeAction(ourContext, this, Constants.REMOVE);
945 945
 
946  
-        // will be the item an orphan?
  946
+        // will the item be an orphan?
947 947
         TableRow row = DatabaseManager.querySingle(ourContext,
948 948
                 "SELECT COUNT(DISTINCT collection_id) AS num FROM collection2item WHERE item_id= ? ",
949 949
                 item.getID());
@@ -967,7 +967,7 @@ public void removeItem(Item item) throws SQLException, AuthorizeException,
967 967
     }
968 968
 
969 969
     /**
970  
-     * Update the collection metadata (including logo, and workflow groups) to
  970
+     * Update the collection metadata (including logo and workflow groups) to
971 971
      * the database. Inserts if this is a new collection.
972 972
      * 
973 973
      * @throws SQLException
@@ -1082,7 +1082,7 @@ void delete() throws SQLException, AuthorizeException, IOException
1082 1082
         		
1083 1083
         		if (item.isOwningCollection(this))
1084 1084
         		{
1085  
-        			// the collection to be deletd is the owning collection, thus remove
  1085
+        			// the collection to be deleted is the owning collection, thus remove
1086 1086
         			// the item from all collections it belongs to
1087 1087
         			Collection[] collections = item.getCollections();
1088 1088
         			for (int i=0; i< collections.length; i++)
@@ -1356,7 +1356,7 @@ public int getType()
1356 1356
      * @param comm
1357 1357
      *            (optional) restrict search to a community, else null
1358 1358
      * @param actionID
1359  
-     *            fo the action
  1359
+     *            of the action
1360 1360
      * 
1361 1361
      * @return Collection [] of collections with matching permissions
1362 1362
      * @throws SQLException
11  dspace-oai/dspace-oai-api/src/main/java/org/dspace/app/oai/DSpaceOAICatalog.java
@@ -45,11 +45,11 @@
45 45
 import ORG.oclc.oai.server.verb.OAIInternalServerError;
46 46
 
47 47
 /**
48  
- * This is class extends OAICat's AbstractCatalog base class to allow metadata
  48
+ * This class extends OAICat's AbstractCatalog base class to allow
49 49
  * harvesting of the metadata in DSpace via OAI-PMH 2.0.
50 50
  * 
51 51
  * FIXME: Some CNRI Handle-specific stuff in here. Anyone wanting to use
52  
- * something else will need to update this code too. Sorry about that.
  52
+ * something else will need to update this code, too. Sorry about that.
53 53
  * 
54 54
  * @author Robert Tansley
55 55
  * @version $Revision$
@@ -102,7 +102,7 @@ public Vector getSchemaLocations(String identifier)
102 102
         {
103 103
             context = new Context();
104 104
 
105  
-            // Valid identifiers all have prefix "oai:hostname:"
  105
+            // All valid identifiers have the "oai:hostname:" prefix 
106 106
             if (identifier != null && identifier.startsWith(OAI_ID_PREFIX))
107 107
             {
108 108
                 itemInfo = Harvest.getSingle(context, identifier
@@ -444,7 +444,7 @@ public Map listRecords(String from, String until, String set,
444 444
 
445 445
         Map m = doRecordHarvest(from, until, set, metadataPrefix, 0);
446 446
 
447  
-        // Null means bad metadata prefix was bad
  447
+        // Null means bad metadata prefix
448 448
         if (m == null)
449 449
         {
450 450
             log.info(LogManager.getHeader(null, "oai_error",
@@ -894,8 +894,7 @@ private String makeResumptionToken(String from, String until, String set,
894 894
                 String s = st.nextToken();
895 895
 
896 896
                 // If this value is a delimiter /, we have no value for this
897  
-                // part
898  
-                // of the resumption token.
  897
+                // part of the resumption token.
899 898
                 if (s.equals("/"))
900 899
                 {
901 900
                     obj[i] = null;
4  dspace-sword/dspace-sword-api/src/main/java/org/purl/sword/client/ClientOptions.java
@@ -109,7 +109,7 @@
109 109
    private String formatNamespace = null; 
110 110
 
111 111
    /**
112  
-    * Introduce a checksum error. This is used to simualte an error with the 
  112
+    * Introduce a checksum error. This is used to simulate an error with the 
113 113
     * MD5 value. 
114 114
     */
115 115
    private boolean checksumError = false;
@@ -130,7 +130,7 @@
130 130
    private static final Pattern multiPattern = Pattern.compile("(.*?)(\\[(.*?)\\]){0,1}(:(.*)){0,1}@(http://.*)");
131 131
 
132 132
    /**
133  
-    * Flag that indicates if the gui mode has been set. This is 
  133
+    * Flag that indicates if the GUI mode has been set. This is 
134 134
     * true by default. 
135 135
     */
136 136
    private boolean guiMode = true; 
4  dspace-sword/dspace-sword-api/src/main/java/org/purl/sword/client/PostMessage.java
@@ -95,7 +95,7 @@
95 95
    private String packaging;
96 96
 
97 97
    /**
98  
-    * True if the deposit should simualte a checksum error. The client should check this
  98
+    * True if the deposit should simulate a checksum error. The client should check this
99 99
     * field to determine if a correct MD5 checksum should be sent or whether the checksum should
100 100
     * be modified so that it generates an error at the server.
101 101
     */
@@ -362,4 +362,4 @@ public String getUserAgent() {
362 362
 	public void setUserAgent(String userAgent) {
363 363
 		this.userAgent = userAgent;
364 364
 	}
365  
-}
  365
+}
2  dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/viewArtifacts/Navigation.java
@@ -95,7 +95,7 @@ public void addPageMeta(PageMeta pageMeta) throws SAXException,
95 95
             WingException, UIException, SQLException, IOException,
96 96
             AuthorizeException
97 97
     {
98  
-        // FIXME: I don't think these should be set here, but there needed and I'm
  98
+        // FIXME: I don't think these should be set here, but they're needed and I'm
99 99
         // not sure where else it could go. Perhaps the linkResolver?
100 100
         Request request = ObjectModelHelper.getRequest(objectModel);
101 101
         pageMeta.addMetadata("contextPath").addContent(contextPath);

0 notes on commit 5ce2d16

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