Bezug-Objekt

Aus Data-Wiki
<dfl:part name="Bezug-Objekt">
			<dfl:if test="self::obj/a5007[!=Doppelerfassung*][!=(Rbz)*] or self::obj/a5007[=Doppelerfassung*] or self::obj/a5198 or self::que/aqu50[!=Doppelerfassung*][!=(Rbz)*] or self::que/aqu50[=Doppelerfassung*]">
				<dfl:li class="Bausteine Bezug-Objekt">
					<span class="gridLeft">
						<dfl:text>Bezugswerk:</dfl:text>
					</span>
					<span class="gridRight">
						<!-- Objekte, Quellen weiter unten -->
						<dfl:for-each select="(self::obj[a5007])[last()]/a5007[!=Doppelerfassung*][!=(Rbz)*]">							
							<dfl:choose>
								<dfl:when test="a507gn[=gnd*]">
									<dfl:wrap>{{self::a5007}: {a5009} ({a509a})}</dfl:wrap>
									<dfl:if test="self::a5007|a5009|a509a and a5013|a5014|a5010|a501b|a501c|a501d|a501a|a5011|a5012|a5015|a5016|a5017|a5018|a501s|a501k|a501m|a501p|a501n|a5019|a5018|a501s|a501t|a507gn">
										<dfl:text>: </dfl:text>
									</dfl:if>
									<dfl:action action="queryGallery" class="ssy_detail_inline">
										<dfl:actionParam name="index" value="obj-obj_id_ref"/>
										<dfl:actionParam name="desc" select="edps:Xslt2EncodeForURIPlusSign(a507gn)"/>
										<dfl:choose>
											<dfl:when test="a5010 or a5013 or a5014 or a501b">
												<dfl:wrap>{{a5013>>a5014>>a501b}, {a5010}}</dfl:wrap>
											</dfl:when>
											<dfl:otherwise>
												<dfl:wrap>{a507gn}</dfl:wrap>
											</dfl:otherwise>
										</dfl:choose>
									</dfl:action>									
									<!-- Kailus 20160914: Normdatenausgabe entfernt -->
									<dfl:if test="a5013|a5014|a5010|a501b|a5008 and a501c|a501d|a501a|a5011|a5012|a5015|a5016|a5017|a5018|a501s|a501k|a501m|a501p|a501n|a5019|a5018|a501s|a501t|a507gn">
										<dfl:text>, </dfl:text>
									</dfl:if>
									<dfl:wrap>{{a501c}, {a501d}, {a501a}, {a5011}, {a5012}, {a5015}, {a5016}, {a5017}, {a5018}, {a501s}, {a501k}, {a501r}, {a501m}, {a501p}, {Sachtitel: {a501n}}, {a5019}, {a501s}, {a501t}}</dfl:wrap>			
								</dfl:when>
								<dfl:when test="a5008">
									<dfl:wrap>{{self::a5007}: {a5009} ({a509a})}</dfl:wrap>
									<dfl:if test="self::a5007|a5009|a509a and a5013|a5014|a5010|a501b|a501c|a501d|a501a|a5011|a5012|a5015|a5016|a5017|a5018|a501s|a501k|a501m|a501p|a501n|a5019|a5018|a501s|a501t|a507gn">
										<dfl:text>: </dfl:text>
									</dfl:if>
									<dfl:action action="queryGallery" class="ssy_detail_inline">
										<dfl:actionParam name="index" value="obj-obj_id_ref"/>
										<dfl:actionParam name="desc" select="edps:Xslt2EncodeForURIPlusSign(a5008)"/>
										<dfl:choose>
											<dfl:when test="a5010 or a5013 or a5014">
												<dfl:wrap>{{a5013>>a5014>>a501b}, {a5010}}</dfl:wrap>
											</dfl:when>
											<dfl:otherwise>
												<!-- FM20170517: <dfl:space/> zugefügt -->
												<dfl:space/>
												<dfl:wrap>{a5008}</dfl:wrap>
											</dfl:otherwise>
										</dfl:choose>
									</dfl:action>
									<dfl:if test="a5013|a5014|a5010|a501b|a5008 and a501c|a501d|a501a|a5011|a5012|a5015|a5016|a5017|a5018|a501s|a501k|a501m|a501p|a501n|a5019|a5018|a501s|a501t|a507gn">
										<dfl:text>, </dfl:text>
									</dfl:if>
									<dfl:wrap>{{a501c}, {a501d}, {a501a}, {a5011}, {a5012}, {a5015}, {a5016}, {a5017}, {a5018}, {a501s}, {a501k}, {a501r}, {a501m}, {a501p}, {Sachtitel: {a501n}}, {a5019}, {a501s}, {a501t}}</dfl:wrap>
								</dfl:when>
								<dfl:when test="a501u">
									<!-- ABKA3-996-->
									<dfl:wrap>{{self::a5007}: {a5009} ({a509a})}</dfl:wrap>
									<dfl:if test="self::a5007|a5009|a509a and a5013|a5014|a5010|a501b|a501c|a501d|a501a|a5011|a5012|a5015|a5016|a5017|a5018|a501s|a501k|a501m|a501p|a501n|a5019|a5018|a501s|a501t|a501u">
										<dfl:text>: </dfl:text>
									</dfl:if>
									<a href="{a501u}" target="_blank" class="ssy_detail_inline">
										<dfl:value-of select="a501u/text()[1]"/>
									</a>
									<dfl:if test="a5013|a5014|a5010|a501b|a5008 and a501c|a501d|a501a|a5011|a5012|a5015|a5016|a5017|a5018|a501s|a501k|a501m|a501p|a501n|a5019|a5018|a501s|a501t">
										<dfl:text>, </dfl:text>
									</dfl:if>
									<dfl:wrap>{{a5013>>a5014>>a5010>>a501b}, {a501c}, {a501d}, {a501a}, {a5011}, {a5012}, {a5015}, {a5016}, {a5017}, {a5018}, {a501s}, {a501k}, {a501r}, {a501m}, {a501p}, {Sachtitel: {a501n}}, {a5019}, {a501s}, {a501t}}</dfl:wrap>
								</dfl:when>
								<dfl:otherwise>
									<dfl:wrap>{{self::a5007}: {{a5009}:} {({a509a}):} {a5013>>a5014>>a5010>>a501b}, {a501c}, {a501d}, {a501a}, {a5011}, {a5012}, {a5015}, {a5016}, {a5017}, {a5018}, {a501s}, {a501k}, {a501r}, {a501m}, {a501p}, {Sachtitel: {a501n}}, {a5019}, {a501s}, {a501t}}</dfl:wrap>
								</dfl:otherwise>
							</dfl:choose>
							<dfl:if test="position()!=last()">
								<dfl:if test="not(preceding-sibling::a5007[1]/a501rl[text()[1]=current()/a501rl])">
									<dfl:space/>
									<dfl:value-of select="a501rl"/>
								</dfl:if>
								<br/>
							</dfl:if>
						</dfl:for-each>
						<dfl:for-each select="(self::obj[a5007])[last()]/a5007[=Doppelerfassung*]">
							<dfl:choose>
								<dfl:when test="a507gn[=gnd*]">
									<dfl:action action="queryGallery" class="ssy_detail_inline">
										<dfl:actionParam name="index" value="obj-obj_id_ref"/>
										<dfl:actionParam name="desc" select="edps:Xslt2EncodeForURIPlusSign(a507gn)"/>
										<dfl:text>Weiterer Datensatz zu diesem Werk</dfl:text>
									</dfl:action>
								</dfl:when>
								<dfl:when test="a5008">
									<dfl:action action="queryGallery" class="ssy_detail_inline">
										<dfl:actionParam name="index" value="obj-obj_id_ref"/>
										<dfl:actionParam name="desc" select="edps:Xslt2EncodeForURIPlusSign(a5008)"/>
										<dfl:text>Weiterer Datensatz zu diesem Werk</dfl:text>
									</dfl:action>
								</dfl:when>
								<dfl:otherwise>
									<dfl:text>Weiterer Datensatz zu diesem Werk</dfl:text>
								</dfl:otherwise>
							</dfl:choose>
							<dfl:if test="position()!=last()">
								<dfl:if test="not(preceding-sibling::a5007[1]/a501rl[text()[1]=current()/a501rl])">
									<dfl:space/>
									<dfl:value-of select="a501rl"/>
								</dfl:if>
								<br/>
							</dfl:if>
						</dfl:for-each>
						<dfl:if test="self::obj/a5007[!=Doppelerfassung*][!=(Rbz)*] or self::obj/a5007[=Doppelerfassung*] or self::obj/a5198 or self::que/aqu50[!=Doppelerfassung*][!=(Rbz)*] or self::que/aqu50[=Doppelerfassung*]">
							<br/>
						</dfl:if>
						<dfl:if test="self::obj/a5198">
							<dfl:wrap>{Kontext: {self::obj/a5198}}</dfl:wrap>
						</dfl:if>
						<dfl:if test="position()!=last()">
							<br/>
						</dfl:if>
						<!-- Quellendokumente -->
						<dfl:for-each select="(self::que[aqu50])[last()]/aqu50[!=Doppelerfassung*][!=(Rbz)*]">
							<dfl:choose>
								<!-- Kailus 20160914: Normdatenausgabe entfernt -->
								<dfl:whendocumentavailable selectdoctype="'obj'" selectdocnumber="a5008">
									<dfl:wrap>{{self::aqu50}: {a5009} ({a509a})}</dfl:wrap>
									<dfl:if test="self::aqu50|a5009|a509a and a5013|a5014|a5010|a501b|a501c|a501d|a501a|a5011|a5012|a5015|a5016|a5017|a5018|a501s|a501k|a501m|a501p|a501n|a5019|a5018|a501s|a501t">
										<dfl:text>, </dfl:text>
									</dfl:if>
									<a>
										<dfl:attribute name="href" class="ssy_detail_inline">
											<dfl:webrootbaseurl/>
											<dfl:text>document/obj</dfl:text>
											<dfl:wrap>{a5008}</dfl:wrap>
											<dfl:text>?medium=</dfl:text>
											<dfl:call-template selectdoctype="'obj'" selectdocnumber="a5008" template="getMedium"/>
										</dfl:attribute>
										<!-- {a5013>>a5014>>a5010>>a501b},  -->
										<dfl:choose>
											<dfl:when test="a5010 or a5013 or a5014">
												<dfl:wrap>{{a5013>>a5014>>a501b}, {a5010}}</dfl:wrap>
											</dfl:when>
											<dfl:otherwise>
												<dfl:wrap>{a5008}</dfl:wrap>
											</dfl:otherwise>
										</dfl:choose>
									</a>
									<dfl:if test="a5013|a5014|a5010|a501b|a5008 and a501c|a501d|a501a|a5011|a5012|a5015|a5016|a5017|a5018|a501s|a501k|a501m|a501p|a501n|a5019|a5018|a501s|a501t|a5017gn">
										<dfl:text>, </dfl:text>
									</dfl:if>
									<dfl:wrap>{{a501c}, {a501d}, {a501a}, {a5011}, {a5012}, {Standort: {a5015}}, {a5016}, {a5017}, {a5018}, {a501s}, {a501k}, {a501r}, {a501m}, {a501p}, {Sachtitel: {a501n}}, {a5019}, {a501s}, {a501t}}</dfl:wrap>
								</dfl:whendocumentavailable>
								<dfl:otherwise>
									<dfl:wrap>{{self::aqu50}: {a5009} ({a509a}), {a5013>>a5014>>a5010>>a501b}, {a501c}, {a501d}, {a501a}, {a5011}, {a5012}, {Standort: {a5015}}, {a5016}, {a5017}, {a5018}, {a501s}, {a501k}, {a501r}, {a501m}, {a501p}, {Sachtitel: {a501n}}, {a5019}, {a501s}, {a501t}}</dfl:wrap>
								</dfl:otherwise>
							</dfl:choose>
							<dfl:if test="position()!=last()">
								<br/>
							</dfl:if>
						</dfl:for-each>
						<dfl:for-each select="(self::que[aqu50])[last()]/aqu50[=Doppelerfassung*]">
							<dfl:choose>
								<dfl:whendocumentavailable selectdoctype="'obj'" selectdocnumber="a5008">
									<a>
										<dfl:attribute name="href" class="ssy_detail_inline">
											<dfl:webrootbaseurl/>
											<dfl:text>document/obj</dfl:text>
											<dfl:wrap>{a5008}</dfl:wrap>
											<dfl:text>?medium=</dfl:text>
											<dfl:call-template selectdoctype="'obj'" selectdocnumber="a5008" template="getMedium"/>
										</dfl:attribute>
										<dfl:text>Weiterer Datensatz zu diesem Werk</dfl:text>
									</a>
								</dfl:whendocumentavailable>
								<dfl:otherwise>
									<dfl:text>Weiterer Datensatz zu diesem Werk</dfl:text>
								</dfl:otherwise>
							</dfl:choose>
							<dfl:if test="position()!=last()">
								<br/>
							</dfl:if>
						</dfl:for-each>
					</span>
				</dfl:li>
			</dfl:if>
		</dfl:part>