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:...>&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,

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.

AttachmentSize
nodereference-handling.patch 765 bytes

#5

Title:node referrence» node reference
Category:feature request» bug report
Status:active» fixed

Fixed on Git repository: http://drupalcode.org/project/oai2forcck.git/commit/555c522e21950ae2e4df...

#6

Status:fixed» closed (fixed)