This is a minor request. I wonder if it is possible to have a slight integration of bibliography module with rules. In particular allowing rules actions to populate biblio fields. Why would I like to have this? I have created a system of submission of papers with flags and rules. When the user flags a node which is a theme of the call for papers ("submit a paper under this theme"), a biblio node is created and I would like to populate some of its fields like "Publication Type", "Conference title", "date", etc.
I have no idea if this is easy, complicated or "impossible".
I will be waiting for the response...:)

Tomski

Comments

rjerome’s picture

Nothing is impossible, I doubt it's easy, so it must be complicated :-)

Seriously though, are you saying that the work flow you have already setup presents the user with a blank Biblio input form and you would like to have it partially completed when it's presented to them?

Ron.

tomski’s picture

Indeed. Even a simple piece of php code that would allow directly to complete some of the biblio fields within an action would make the deal.

Thanks!
Tomski

tomski’s picture

I manage to find a solution. I have created a custom PHP action under rule :

$node_added_biblio_abstract->biblio_type = '103';
return array("node" => $node_added_biblio_abstract);

This is just for the biblio_type but I should able from here to populate the other fields as well.

Explanation for those who would be interested in this:
- first : you need the Rules module and (I believe) the php filter activated
- second : you need to create an action to add content and you indicate that you want biblio type (this can be triggered by anything, in my case it is a flag).
- third : you add a PHP custom action as above by putting at the place of biblio_abstract the name of the variable you have given in the "add new content action".
- fourth : you add a save action for the added content.
The result is that a new biblio node is created in the process (in my case the node is attributed to the user who has flagged the theme node) and the biblio_type is automatically set to 103 (conference paper).

Tomski

rjerome’s picture

Great, thanks for sharing that, it could prove quite useful.

The conference name would go in biblio_secondary_title, date in biblio_date, year in biblio_year, location in biblio_place_published...

bekasu’s picture

marking issue closed.
bekasu

liam morland’s picture

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

This version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.