|
Next revision
Both sides next revision
|
model:customcoll1 [2012/05/29 12:57] giancarlo created |
model:customcoll1 [2012/05/29 13:02] 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). |
| |
| * edit parent collection datastream QUERY to check dc:description element |
| |
| <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 |
| |