Hi all!

I think I have a problem with my search keys page.

I just noticed that in my FEZ instalation 1.2. when I try to select multiple and add a number limit, when I do update, the system says “Thank you, the search key was updated successfully.” But I go to the advanced search and dont have the mutiple fields available!

Did I miss something? I have then enable in advanced search...

I sent below my search_keys.php

 

Thanks

António 

 

 

<?php

/* vim: set expandtab tabstop=4 shiftwidth=4: */

// +----------------------------------------------------------------------+

// | Fez - Digital Repository System                                      |

// +----------------------------------------------------------------------+

// | Copyright (c) 2005, 2006 The University of Queensland,               |

// | Australian Partnership for Sustainable Repositories,                 |

// | eScholarship Project                                                 |

// |                                                                      |

// | Some of the Fez code was derived from Eventum (Copyright 2003, 2004  |

// | MySQL AB - http://dev.mysql.com/downloads/other/eventum/ - GPL)      |

// |                                                                      |

// | This program is free software; you can redistribute it and/or modify |

// | it under the terms of the GNU General Public License as published by |

// | the Free Software Foundation; either version 2 of the License, or    |

// | (at your option) any later version.                                  |

// |                                                                      |

// | This program is distributed in the hope that it will be useful,      |

// | but WITHOUT ANY WARRANTY; without even the implied warranty of       |

// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |

// | GNU General Public License for more details.                         |

// |                                                                      |

// | You should have received a copy of the GNU General Public License    |

// | along with this program; if not, write to:                           |

// |                                                                      |

// | Free Software Foundation, Inc.                                       |

// | 59 Temple Place - Suite 330                                          |

// | Boston, MA 02111-1307, USA.                                          |

// +----------------------------------------------------------------------+

// | Authors: Christiaan Kortekaas <c.kortekaas@library.uq.edu.au>,       |

// |          Matthew Smith <m.smith@library.uq.edu.au>                   |

// +----------------------------------------------------------------------+

//

//

include_once("../config.inc.php");

include_once(APP_INC_PATH . "class.template.php");

include_once(APP_INC_PATH . "class.auth.php");

include_once(APP_INC_PATH . "class.search_key.php");

include_once(APP_INC_PATH . "class.controlled_vocab.php");

include_once(APP_INC_PATH . "class.collection.php");

include_once(APP_INC_PATH . "db_access.php");

 

$tpl = new Template_API();

$tpl->setTemplate("manage/index.tpl.html");

 

Auth::checkAuthentication(APP_SESSION);

 

$tpl->assign("type", "search_keys");

 

$isUser = Auth::getUsername();

$tpl->assign("isUser", $isUser);

$isAdministrator = User::isUserAdministrator($isUser);

$tpl->assign("isAdministrator", $isAdministrator);

 

if ($isAdministrator) {

 

    if (@$HTTP_POST_VARS["cat"] == "new") {

        $tpl->assign("result", Search_Key::insert());

    } elseif (@$HTTP_POST_VARS["cat"] == "update") {

        $tpl->assign("result", Search_Key::update($HTTP_POST_VARS["id"]));

    } elseif (@$HTTP_POST_VARS["cat"] == "delete") {

        Search_Key::remove();

    }

 

    if (@$HTTP_GET_VARS["cat"] == "edit") {

        $tpl->assign("info", Search_Key::getDetails($HTTP_GET_VARS["id"]));

    }

 

    $tpl->assign("list", Search_Key::getList());

    $tpl->assign("controlled_vocab_list", Controlled_Vocab::getAssocList());

} else {

    $tpl->assign("show_not_allowed_msg", true);

}

 

$tpl->displayTemplate();

?>