Is there a way to show who signed out an item in views?

Comments

jastraat’s picture

No I'm afraid not. Originally, patrons were not users, and I didn't have time to rewrite and add new view plugins when the new version was released.

grahl’s picture

If I understand you correctly, the following ugly hack with the php customfield should work:

$node=node_load($data->nid);
foreach ($node->items as $item) {
  $user=user_load($item[last_patron_uid]);
  print $user->name;
}

I'm interested in improving Views support but I'm not sure yet how to best do this. One option is to just provide specific fields like last user to check out, last transaction date, etc for a node.

The ideal solution would probably be an item specific view type, which would make the relationship between nodes and items in regards to transactions better.

Any thoughts on what is needed in practice by others?

topdillon’s picture

That works beautifully. Thank you, thank you, thank you.
Can you work the same magic to get the checkout message to display too? I am not a coder and I know this one is harder.

grahl’s picture

Issue summary: View changes
Status: Active » Closed (outdated)