Skip to content
This repository was archived by the owner on Oct 12, 2018. It is now read-only.

Commit 1105934

Browse files
committed
support for mods
1 parent bca8345 commit 1105934

File tree

2 files changed

+1513
-1
lines changed

2 files changed

+1513
-1
lines changed

modules/module.MBIB-2-BIBFRAME-Shared.xqy

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ declare namespace hld = "http://www.loc.gov/opacxml/holdings/" ;
4747

4848

4949
(: 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";
5151

5252
(:rules have a status of "on" or "off":)
5353
declare variable $mbshared:transform-rules :=(
@@ -523,6 +523,7 @@ return element bf:Instance {element bf:instanceTitle{
523523
:
524524
: @param $d element is the MARCXML 260 or substitute
525525
: @param $workID uri for the derivedfrom
526+
: @param $control-fields 008 data converted
526527
: @return bf:* as element()
527528
:)
528529
declare function mbshared:generate-instance-from260(
@@ -536,6 +537,7 @@ declare function mbshared:generate-instance-from260(
536537
(: attribute rdf:resource{fn:concat($workID,fn:normalize-space(fn:string($d/../marcxml:controlfield[@tag eq "001"])))}:)
537538
attribute rdf:resource{fn:concat($workID,".marcxml.xml")}
538539
}
540+
let $control-fields:= marc2bfutils:generate-controlfields($d/ancestor::marcxml:record)
539541
let $instance-title :=
540542
for $titles in $d/../marcxml:datafield[fn:matches(@tag,"(245|246|247|222|242|210)")]
541543
for $t in $titles
@@ -747,6 +749,7 @@ let $sound:=
747749
element bf:instanceOf {
748750
attribute rdf:resource {$workID}
749751
},
752+
(:$control-fields,:)
750753
$derivedFrom,
751754
$holdings
752755
}
@@ -1635,6 +1638,7 @@ declare function mbshared:generate-instance-from250(
16351638

16361639
(:get the physical details:)
16371640
(: We only ask for the first 260 :)
1641+
16381642
let $instance := mbshared:generate-instance-from260($d/../marcxml:datafield[fn:matches(@tag, "(260|261|262|264|300)")][1], $workID)
16391643

16401644
let $instanceOf :=

0 commit comments

Comments
 (0)