Commits

mar  committed b0de195

We were getting duplicate IDs for some "<div>"s and some "<fptr>"s.
Disambiguate them.

  • Participants
  • Parent commits 0f9dcd0
  • Branches lhdrp2006

Comments (0)

Files changed (1)

 	<xsl:template match="fullResolution" mode="seventrain:mets-structMap">
 		<!-- ===================================================
 			For adding extra link to Ingest1 JPG -->
-		<mets:div ID="DIVID-{seventrain:gen-id(.)}" TYPE="archive image">
-			<mets:fptr ID="FPTRID-{seventrain:gen-id(.)}" FILEID="FILEID-{seventrain:gen-id(following-sibling::*[1])}"/>
+		<mets:div ID="DIVID-AI-1-{seventrain:gen-id(.)}" TYPE="archive image">
+			<mets:fptr ID="FPTRID-AI-1-{seventrain:gen-id(.)}" FILEID="FILEID-{seventrain:gen-id(following-sibling::*[1])}"/>
 		</mets:div>
 		<!-- =================================================== -->
 		<xsl:if test="normalize-space(.) ne ''">
-			<mets:div ID="DIVID-{seventrain:gen-id(.)}" TYPE="archive image">
-				<mets:fptr ID="FPTRID-{seventrain:gen-id(.)}" FILEID="FILEID-{seventrain:gen-id(.)}"/>
+			<mets:div ID="DIVID-AI-2-{seventrain:gen-id(.)}" TYPE="archive image">
+				<mets:fptr ID="FPTRID-AI-2-{seventrain:gen-id(.)}" FILEID="FILEID-{seventrain:gen-id(.)}"/>
 			</mets:div>
 		</xsl:if>
 	</xsl:template>
 				<!-- ===================================================
 				           for adding extra link to Ingest1 for large JPG   -->
 				<xsl:when test="$label eq 'archive image'">
-					<mets:div ID="DIVID-{seventrain:gen-id(.)}" TYPE="{$label}">
+					<mets:div ID="DIVID-AI-1-{seventrain:gen-id(.)}" TYPE="{$label}">
 						<mets:fptr FILEID="FILEID-{seventrain:gen-id(following-sibling::*[1])}"/>
 					</mets:div>
-					<mets:div ID="DIVID-{seventrain:gen-id(.)}" TYPE="{$label}">
+					<mets:div ID="DIVID-AI-2-{seventrain:gen-id(.)}" TYPE="{$label}">
 						<mets:fptr FILEID="FILEID-{seventrain:gen-id(.)}"/>
 					</mets:div>
 				<!--  ================================================= -->