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:...>&lt;a href="...../node/34"&gt;title of node 34&lt;/a&gt;</dc:..>

I would like to have : <dc:...>title of node 34</dc:..>

May you plan to do something ?

thanks very much,

CommentFileSizeAuthor
#4 nodereference-handling.patch765 bytesDnaX

Comments

EWB’s picture

I am also experiencing this issue - has anyone figured out a solution?

Thanks

squinternata’s picture

i have the same problem with node reference field..did you solve??
thanks

asanchez75’s picture

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;
 
}

?>

DnaX’s picture

StatusFileSize
new765 bytes

I've made a patch that do the same work of previous patch but more simple and in the module itself.

DnaX’s picture

Title: node referrence » node reference
Category: feature » bug
Status: Active » Fixed
DnaX’s picture

Status: Fixed » Closed (fixed)