Dev – Latest Updates

  • by rogercgui
    Merge pull request #701 from ABCD-DEVCOM/fix-error-696 Add DOM existence checks in pft.php Close #696
  • by rogercgui
    Add DOM existence checks in pft.php Guard DOM access in SelectExistingFormat and SubmitForm to prevent TypeError crashes for restricted profiles (e.g., guests without CENTRAL_EDPFT). Also normalize JS (add semicolons), safely trim inputs, consolidate pft content validation, strengthen numeric range checks, and ensure preview/print targets are set. Minor cleanup: move $backtocancelscript assignment into the conditional. It […]
  • by rogercgui
    Merge pull request #700 from ABCD-DEVCOM/improvements-facets-OPAC Unify search expression building
  • by rogercgui
    Unify search expression building Extract montarExpressaoBusca helper into includes/search/expression_builder.php and refactor facets.php, direct_search.php and organized_search.php to use it. The new helper centralizes combining the base expression, collection and active facets (reads coleccion from request and returns '$' when empty). facets.php now pulls facetas from the request and includes the builder via $Web_Dir. Minor cleanup and […]
  • by rogercgui
    Merge pull request #699 from ABCD-DEVCOM/improvements-to-OPAC Enhance cookie handling, search performance, and relevance controls Close #697
  • by rogercgui
    Add relevance controls and raise buffer Introduce configurable relevance-ranking controls and caching, and increase the search buffer. Adds RELEVANCE_* entries to example opac.def files; adds i18n strings (en/es/pt opac.tab) for labels and a front warning; updates parametros.php to provide defaults and a UI panel for conf_RELEVANCE_GATE_ENABLED, conf_RELEVANCE_MAX_SCORED, conf_RELEVANCE_CACHE_ENABLED and conf_RELEVANCE_CACHE_TTL; increases buscar.xis buffersize from 200000 […]
  • by rogercgui
    Fix cipar path and HTTP_HOST fallback Include $actparfolder in the &cipar query parameter in facetas.php so the par file path is constructed correctly. Add a $http_host fallback ('localhost') in head.php to avoid undefined $_SERVER['HTTP_HOST'] warnings and use it when building $actual_link. Files modified: www/htdocs/opac/components/facets.php, www/htdocs/opac/head.php.
  • by rogercgui
    Modularize integrated search and add relevance gate Refactors buscar_integrada.php by extracting search logic into modular helpers under includes/search: expression_builder, wxis_totals, format_selector, relevance_scoring, direct_search, organized_search and suggestions. Preserves prior behavior with safer fallbacks, caching for search results, and a relevance gate to avoid expensive scoring on very large result sets (exports REAL_TOTAL_GERAL/BASE and RELEVANCE_GATE_TRIGGERED globals). Also […]
  • by rogercgui
    Initialize prefijo and Opcion request vars Add default initialization for $Prefijo and $Opcion using $_REQUEST with null coalescing in presentar_diccionario_inc.php. This prevents undefined index notices when prefijo or Opcion are not provided and ensures the subsequent $pre calculation behaves reliably; no functional change intended.
  • by rogercgui
    Limit search count from 90000 to 100 Reduce the default 'count' parameter used in buscar.xis within record_card.php from 90000 to 100. This restricts the number of returned records to improve performance and reduce server/load impact. File modified: www/htdocs/opac/templates/default/views/record_card.php.
https://github.com/ABCD-DEVCOM/ABCD2/graphs/contributors