Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
model:customcoll1 [2012/05/29 12:57]
giancarlo created
model:customcoll1 [2012/05/29 13:05]
giancarlo
Line 1: Line 1:
 ====== 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
 +
 +<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>
 +
 +  * 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
  
 
 
model/customcoll1.txt · Last modified: 2012/05/29 13:09 by giancarlo

Developers: CNR IRCrES IT Office and Library
Giancarlo Birello (giancarlo.birello _@_ ircres.cnr.it) and Anna Perin (anna.perin _@_ ircres.cnr.it)
DigiBess is licensed under: Creative Commons License
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki
Drupal Garland Theme for Dokuwiki