 					#session.myAgentId#,
 					sysdate,
 					(
-						select 
-							guid || ' ' || part_name 
-						from 
+						select
+							guid || ' ' || part_name
+						from
 							flat,
-							specimen_part 
+							specimen_part
 						where
 							flat.collection_object_id=specimen_part.derived_from_cat_item and
 							specimen_part.collection_object_id=#li#

		</cfquery>
		<cfset partIDs=listappend(partIDs,specData.partID)>
		<cfset displ=listappend(displ,specData.COLL_OBJ_DISPOSITION)>
		
		
		<tr>
			<td>
				<a href="ContDet.cfm?container_id=#container_id#" target="_detail">#label#</a>

	</table>
</cfif>
<cfquery name="ctcollection" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#" cachedwithin="#createtimespan(0,0,60,0)#">
	select guid_prefix ,collection_id from collection order by guid_prefix
</cfquery>
<cfif listcontains(displ,"on loan")>
	You can't use this to add loan items because some listed items are already on loan.
