@@ -47,7 +47,7 @@ declare namespace hld = "http://www.loc.gov/opacxml/holdings/" ;
47
47
48
48
49
49
(: VARIABLES :)
50
- declare variable $mbshared:last-edit :="2015-03-16 -T11:00:00" ;
50
+ declare variable $mbshared:last-edit :="2015-04-27 -T11:00:00" ;
51
51
52
52
(:rules have a status of "on" or "off":)
53
53
declare variable $mbshared:transform-rules :=(
@@ -523,6 +523,7 @@ return element bf:Instance {element bf:instanceTitle{
523
523
:
524
524
: @param $d element is the MARCXML 260 or substitute
525
525
: @param $workID uri for the derivedfrom
526
+ : @param $control-fields 008 data converted
526
527
: @return bf:* as element()
527
528
:)
528
529
declare function mbshared:generate-instance-from260 (
@@ -536,6 +537,7 @@ declare function mbshared:generate-instance-from260(
536
537
(: attribute rdf:resource{fn:concat($workID,fn:normalize-space(fn:string($d/../marcxml:controlfield[@tag eq "001"])))}:)
537
538
attribute rdf:resource{fn:concat ($workID,".marcxml.xml" )}
538
539
}
540
+ let $control-fields:= marc2bfutils:generate-controlfields ($d/ancestor::marcxml:record)
539
541
let $instance-title :=
540
542
for $titles in $d/../marcxml:datafield[fn:matches (@tag,"(245|246|247|222|242|210)" )]
541
543
for $t in $titles
@@ -747,6 +749,7 @@ let $sound:=
747
749
element bf:instanceOf {
748
750
attribute rdf:resource {$workID}
749
751
},
752
+ (:$control-fields,:)
750
753
$derivedFrom,
751
754
$holdings
752
755
}
@@ -1635,6 +1638,7 @@ declare function mbshared:generate-instance-from250(
1635
1638
1636
1639
(:get the physical details:)
1637
1640
(: We only ask for the first 260 :)
1641
+
1638
1642
let $instance := mbshared:generate-instance-from260 ($d/../marcxml:datafield[fn:matches (@tag, "(260|261|262|264|300)" )][1 ], $workID)
1639
1643
1640
1644
let $instanceOf :=
0 commit comments