Posted by iko on March 31, 2009 at 1:17pm
| Project: | OAI2 for CCK |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hello,
I'm very interested in OAI2forCCK but I need to expose node referrence fields. The value is therefore a hypertext link : in OAI repository, it becomes :<dc:...><a href="...../node/34">title of node 34</a></dc:..>
I would like to have : <dc:...>title of node 34</dc:..>
May you plan to do something ?
thanks very much,
Comments
#1
I am also experiencing this issue - has anyone figured out a solution?
Thanks
#2
i have the same problem with node reference field..did you solve??
thanks
#3
I founded a solution.
You can create a template.php file inside YOUR_THEME folder and put this
<?php
function YOUR_THEME_nodereference_formatter_default($element) {
$output = '';
if (!empty($element['#item']['nid']) && is_numeric($element['#item']['nid']) && ($title = _nodereference_titles($element['#item']['nid']))) {
$output = ( isset($_GET['verb']) ? $title : l($title, 'node/'. $element['#item']['nid']));
return $output;
}
?>
#4
I've made a patch that do the same work of previous patch but more simple and in the module itself.
#5
Fixed on Git repository: http://drupalcode.org/project/oai2forcck.git/commit/555c522e21950ae2e4df...
#6