Next revision
|
Previous revision
|
model:customcoll1 [2012/05/29 12:57] giancarlo created |
model:customcoll1 [2012/05/29 13:09] (current) giancarlo |
====== Collection INFO datastream ====== | ====== Collection INFO datastream ====== |
| |
| * Add datastream INFO (text/html) to collection object |
| |
| <code html> |
| <html> |
| <head> |
| <meta content="text/html; charset=ISO-8859-1" |
| http-equiv="content-type"> |
| <title>Lettera da Tecnocity</title> |
| </head> |
| <body> |
| <h2>Lettera da Tecnocity (1984 – 1992)</h2> |
| <span style="font-weight: bold;">Direttore: Marcello Pacini</span><br |
| style="font-weight: bold;"> |
| <span style="font-weight: bold;">Un progetto della Fondazione Agnelli |
| per il rilancio dell’area metropolitana torinese</span><br> |
| <br> |
| <h4>LO SFONDO</h4> |
| <br> |
| Nel decennio tra gli anni ottanta e novanta la Fondazione Giovanni |
| Agnelli è impegnata in un ampio programma volto a studiare le |
| condizioni che rendono possibile e governano l’innovazione tecnologica |
| ... |
| </code> |
| |
| Use header tag h2 (no background) or h4 (theme background). |
| |
| * Add value to dc:description element |
| |
| <WRAP prewrap center> |
| <code xml> |
| <oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd"> |
| <dc:title>Lettera da Tecnocity</dc:title> |
| <dc:description>Collection info</dc:description> |
| <dc:identifier>openbess:fgagnelli-C001</dc:identifier> |
| </oai_dc:dc> |
| </code> |
| </WRAP> |
| |
| * edit parent collection datastream QUERY to check dc:description of child |
| |
| <code> |
| select $object $title $content |
| count(select $descr from <#ri> |
| where $object <dc:description> $descr) |
| from <#ri> |
| where ($object <dc:title> $title |
| and $object <fedora-model:hasModel> $content |
| and ($object <fedora-rels-ext:isMemberOfCollection> %parent_collection% |
| or $object <fedora-rels-ext:isMemberOf> %parent_collection%) |
| and $object <fedora-model:state> <info:fedora/fedora-system:def/model#Active>) |
| minus $content <mulgara:is> <info:fedora/fedora-system:FedoraObject-3.0> |
| order by $title |
| </code> |
| |
| k0 = 0 : dc:description is NULL |
| k0 > 0 : dc:description not NULL |
| |