<?xml version="1.0" encoding="UTF-8"?>
<config>
- <version>1.1.3</version>
+ <version>1.1.4</version>
<params>
<parent>parent</parent>
while(($sources !== false) && $v_rst = $sgbd->fetch_data($rst)){
if(isset($v_rst) && isset($v_rst["id"])){
if(isset($_sources[$v_rst["id"]])){
- if(!isset($sources[$v_rst["id"]])){
- $sources[$v_rst["id"]] = $v_rst;
- $sources[$v_rst["id"]]["authors"] = array();
+ if(!isset($params["id_class"]) || (isset($v_rst["id_class"]) && ($v_rst["id_class"] == $params["id_class"]))){
+ if(!isset($sources[$v_rst["id"]])){
+ $sources[$v_rst["id"]] = $v_rst;
+ $sources[$v_rst["id"]]["authors"] = array();
+ }
+ $sources[$v_rst["id"]]["authors"][] = $_sources[$v_rst["id"]]["id_author"];
}
- $sources[$v_rst["id"]]["authors"][] = $_sources[$v_rst["id"]]["id_author"];
}
}
else $sources = false;