Hello,

This is minor, but it took me a bit of grepping to track down.

Steps to recreate:
1 - add some biblio items
2 - create a node type view that displays biblio items
3 - add Biblio Citation to the fields list (any style)
4 - display renders using "unpublished" style, regardless of publication status.

Now, it does respect publish status fine -- the only problem is that the code to render the biblio item doesn't include the status value in the node object. So in my case each biblio item rendered this way has a pink background.

To fix it, I just added status to the node object query in views/biblio_handler_citation.inc

Thus, lines 46 - 48 now look like this:

      $result = db_query('SELECT n.title, n.status, b.* FROM {node} n
                          LEFT JOIN {biblio} b on n.vid = b.vid
                          WHERE n.vid IN ('. implode(',', $vids) .')');

(I added "n.status, ")

That seems to fix it!

Comments

rjerome’s picture

Good catch! I'll add that to the code. There will be a new release in a few days.

Ron.

rjerome’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.