 				<div class="detailLabel">
 					Location
 					<span class="expandoHolder" id="expando-locality_pane"></span>
-
 					<cfif oneOfUs is 1>
 						<span class="detailEditCell" onclick="window.parent.loadEditApp('specLocality');">Edit</span>
 					</cfif>

						CITATION_REMARKS,
						doi
				</cfquery>
			<div class="detailCell">
				<div class="detailLabel">
						Citations
						<span class="expandoHolder" id="expando-citn_pane"></span>
					</div>
				<div class="detailBlock expandoscroll-small" id="citn_pane" data-expandoclass="expandoscroll-small">

					<cfloop query="citations">
						<cfquery name="thisTaxLinks" dbtype="query">
							select distinct taxsciname from raw_citations where citation_id=#citation_id# and
							taxsciname is not null
						</cfquery>
						<cfset thisSciName="#idsciname#">
						<cfloop query="thisTaxLinks">
							<cfset thisLink='<a href="/name/#taxsciname#" target="_blank">#taxsciname#</a>'>
							<cfset thisSciName=#replace(thisSciName,taxsciname,thisLink)#>
							<cfset i=i+1>
						</cfloop>
						<cfquery name="thisPubsMedia" dbtype="query">
							select distinct preview_uri,media_type,media_uri,media_id from
								raw_citations where media_id is not null and citation_id=#citation_id#
						</cfquery>
						<div class="detailBlock">
							#type_status# of #thisSciName#
							<cfif len(OCCURS_PAGE_NUMBER) gt 0>, page #OCCURS_PAGE_NUMBER#</cfif>
							in <a href="#Application.serverRootURL#/publication/#PUBLICATION_ID#">#short_citation#</a>
							<cfloop query="thisPubsMedia">
								 <cfset mp = obj.getMediaPreview(
									preview_uri="#preview_uri#",
									media_type="#media_type#")>
									<a href="/media/#media_id#?open" target="_blank"><img src="#mp#" class="smallMediaPreview"></a>
							 </cfloop>
							 <cfif len(doi) gt 0>
									<a href="http://dx.doi.org/#doi#" target="_blank" class="external sddoi">DOI:#doi#</a>
							</cfif>
							 <cfif len(CITATION_REMARKS) gt 0>
								<div class="detailCellSmall">
									#CITATION_REMARKS#
								</div>
							</cfif>
						</div>
					</cfloop>
				</div>
				</div>
			</cfif>
<!------------------------------------ locality ---------------------------------------------->

				select * from oid where id_references='self' order by other_id_type
			</cfquery>
			<cfif len(ids.other_id_type) gt 0>
				<div class="detailCell">
					<div class="detailLabel">Identifiers
						<span class="expandoHolder" id="expando-id_ids"></span>
						<cfif oneOfUs is 1>
							<span class="detailEditCell" onclick="window.parent.loadEditApp('editIdentifiers');">Edit</span>
						</cfif>
					</div>
					<div class="detailBlock expandoscroll-small" id="id_ids" data-expandoclass="expandoscroll-small">

						<cfloop query="ids">
							<div class="detailBlock">
								<span class="innerDetailLabel">
									#other_id_type#:
								</span>
								<cfif len(link) gt 0>
									<a class="external" href="#link#" target="_blank">#display_value#</a>
								<cfelse>
									#display_value#
								</cfif>
								<cfif other_id_type is 'NK' and oneOfUs is 1>
									<a target="_blank" href='/findContainer.cfm?container_type=cryovial&container_label=NK #display_value#%20%25'>check containers</a>
								</cfif>
							</div>
						</cfloop>
					</div>
				</div>
			</cfif>
			<cfquery name="rels" dbtype="query">
				select * from oid where id_references != 'self' order by id_references,other_id_type
			</cfquery>
			<cfif len(rels.other_id_type) gt 0>
				<div class="detailCell">
					<div class="detailBlock expandoscroll-small" id="id_relations" data-expandoclass="expandoscroll-small">
						<div class="detailLabel">
							Relationships
							<span class="expandoHolder" id="expando-id_relations"></span>
							<cfif oneOfUs is 1>
								<span class="detailEditCell" onclick="window.parent.loadEditApp('editIdentifiers');">Edit</span>
							</cfif>
						</div>
						<cfloop query="rels">
							<cfquery name="relcache" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#" cachedwithin="#createtimespan(0,0,60,0)#">
								select * from cf_relations_cache where COLL_OBJ_OTHER_ID_NUM_ID=#COLL_OBJ_OTHER_ID_NUM_ID# order by term
							</cfquery>
							<cfset thisClass="">
							<cfif id_references is "same individual as">
								<!----
								<script>
									$("body").addClass("isDuplicateRecord");
								</script>
								---->
								<cfset thisClass="isDuplicateRecord">
							</cfif>
							<div class="detailBlock #thisClass#">
								<span class="innerDetailLabel">
									(<i>#id_references#</i>)
								</span>
								<cfif len(link) gt 0>
									<a class="external" href="#link#" target="_blank">#other_id_type#:#display_value#</a>
								<cfelse>
									#other_id_type#:#display_value#
								</cfif>
								<div class="relCacheDiv">
									<cfloop query="relcache">
										<div class="indivRelCacheTerm">
											#TERM#@#dateformat(CACHEDATE,"yyyy-mm-dd")#: #VALUE#
										</div>
									</cfloop>
								</div>
							</div>
						</cfloop>
					</div>
				</div>
			</cfif>

