/
show.pbcore.php
68 lines (56 loc) · 3.39 KB
/
show.pbcore.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'; ?>
<PBCoreDescriptionDocument xmlns="http://www.PBCore.org/PBCore/PBCoreNamespace.html"
xmlns:mt="http://www.iana.org/assignments/media-types/"
xmlns:la="http://www.loc.gov/standards/iso639-2/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<?php $item = get_current_item(); ?>
<PBCoreAssetDate dateType="Broadcast"><?php echo item('PBCore', 'Date Broadcast'); ?></PBCoreAssetDate>
<PBCoreIdentifier source="Internet Archive"><?php echo item('PBCore', 'Identifier'); ?></PBCoreIdentifier>
<?php foreach (item('PBCore', 'Title', array('all'=>true)) as $title) { ?>
<PBCoreTitle><?php echo $title; ?></PBCoreTitle>
<?php } ?>
<PBCoreTitle titleType="Episode"><?php echo item('PBCore', 'Episode Title'); ?></PBCoreTitle>
<PBCoreTitle titleType="Series"><?php echo item('PBCore', 'Series Title'); ?></PBCoreTitle>
<?php $tags = get_tags(array('sort_field' => 'name'), null);
foreach ($tags as $tag): ?>
<PBCoreSubject source="Free tags"><?php echo $tag; ?></PBCoreSubject>
<?php endforeach; ?>
<PBCoreDescription><?php echo item('PBCore', 'Description'); ?></PBCoreDescription>
<PBCoreCoverage>
<coverage><?php if (function_exists('geolocation_get_location_for_item') && geolocation_get_location_for_item($item, true)) { $location = geolocation_get_location_for_item($item, true); echo $location->address; } ?></coverage>
<coverageType>Spatial</coverageType>
</PBCoreCoverage>
<PBCoreCreator>
<creator><?php echo item('PBCore', 'Creator'); ?></creator>
<creatorRole>Creator</creatorRole>
</PBCoreCreator>
<PBCoreContributor>
<contributor><?php echo item('PBCore', 'Interviewee'); ?></contributor>
<contributorRole><?php echo "Interviewee"; ?></contributorRole>
</PBCoreContributor>
<PBCoreContributor>
<contributor><?php echo item('PBCore', 'Interviewer'); ?></contributor>
<contributorRole><?php echo "Interviewer"; ?></contributorRole>
</PBCoreContributor>
<PBCoreContributor>
<contributor><?php echo item('PBCore', 'Host'); ?></contributor>
<contributorRole><?php echo "Host"; ?></contributorRole>
</PBCoreContributor>
<PBCoreRightsSummary>
<rightsSummary><?php echo item('PBCore', 'Rights'); ?></rightsSummary>
</PBCoreRightsSummary>
<PBCoreInstantiation>
<instantiationIdentifier source="Filename"><?php echo item('PBCore', 'Identifier'); ?></instantiationIdentifier>
<instantiationDigital><?php echo item('PBCore', 'Format'); ?></instantiationDigital>
<instantiationLocation><?php echo item('PBCore', 'Digital Location'); ?></instantiationLocation>
<instantiationDuration><?php echo item('PBCore', 'Duration'); ?></instantiationDuration>
</PBCoreInstantiation>
<PBCoreInstantiation>
<instantiationPhysical><?php echo item('PBCore', 'Physical Format'); ?></instantiationPhysical>
<instantiationLocation><?php echo item('PBCore', 'Physical Location'); ?></instantiationLocation>
</PBCoreInstantiation>
<PBCoreAnnotation annotationType="Transcription"><?php echo item('PBCore', 'Transcription'); ?></PBCoreAnnotation>
<PBCoreAnnotation annotationType="Notes"><?php echo item('PBCore', 'Notes'); ?></PBCoreAnnotation>
<PBCoreAnnotation annotationType="MusicUsed"><?php echo item('PBCore', 'Music/Sound Used'); ?></PBCoreAnnotation>
<PBCoreAnnotation annotationType="DatePeg"><?php echo item('PBCore', 'Date Peg'); ?></PBCoreAnnotation>
</PBCoreDescriptionDocument>