WATERBEAR:Villes

EN CONSTRUCTION




But

Cette article concerne la gestion des adresses des lecteurs, partie ville. Le menu de cette recherche n'est pas accessible mais derrière, nombre de noeuds existent déjà. L'utilisation de l'API de l'IGN français, s'il est correctement configuré, permet de le remplir automatiquement et progressivement. Mais dans certains cas, c'est impossible, par exemple si on est dans un autre pays ou proche de la frontière. Cet écran de recherche permet d'avoir une complète et d'y effectuer des corrections.


Procédure

Cette procédure fait intervenir l'utilisation du registre. Elle est longue et fastidieuse mais on peut s'aider de ce qui existe dans d'autres domaines.

Ajout dans le menu d'accueil

Nous allons dans le registre à l'adresse:

profiles/defaut/pages/bib/accueil/_parametres/barre_menu1/21 - rechercher/sections/02 - lecteurs/menus/03 - villes
=> 03 - villes
=> titre = rechercher_villes
=> url = bib.php?module=catalogue/recherches/formulaires/ville/standard


Le code à injecter via l'outil d'importation dans le registre est:


[{"type":"supprimer_noeud","chemin":"profiles\\/defaut\\/pages\\/bib\\/accueil\\/_parametres\\/barre_menus1\\/21 - rechercher\\/sections\\/02 - lecteurs\\/menus\\/03 - villes","nom":"03 - villes","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib\\/accueil\\/_parametres\\/barre_menus1\\/21 - rechercher\\/sections\\/02 - lecteurs\\/menus","nom":"03 - villes","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib\\/accueil\\/_parametres\\/barre_menus1\\/21 - rechercher\\/sections\\/02 - lecteurs\\/menus\\/03 - villes","nom":"titre","valeur":"rechercher_villes","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib\\/accueil\\/_parametres\\/barre_menus1\\/21 - rechercher\\/sections\\/02 - lecteurs\\/menus\\/03 - villes","nom":"url","valeur":"bib.php?module=catalogue\\/recherches\\/formulaires\\/ville\\/standard","description":""}
]


Adaptation des critères de recherche

Il y a deux critères de recherche: la ville et le code postal. Cette adaptation consiste à proposer une liste déroulante de propositions interactivement en fonction de ce qui est introduit dans la zone de recherche. Cette approche nécessite trois étapes successives, qui sont dépendantes entre elles via la succession séquentielle des plugins.


Ville

  • Critères autocomplete

Nous allons dans le registre à l'adresse:

profiles/defaut/plugins/plugins/catalogue/recherches/criteres/ville/standard/ville
=> nom
=> chemin_fichier = div
=> nom_fonction = plugins_2_array
=> parametres
=> !!booleens
=> nom_plugin = catalogue/recherches/booleens/standard
=> !!types_recherches
=> nom_plugin = catalogue/recherches/listes_types_recherches/defaut
=> ??critere_intitule = bib/catalogue/recherches/criteres/ville/standard/nom
=> autoplugin
=> nom_plugin = catalogue/recherches/criteres/ville/standard/nom
=> critere = a_nom
=> type_champ = autocomplete
=> ws_url = bib_ws.php?module=autocomplete/ville/standard/nom&


Le code à injecter via l'outil d'importation dans le registre est:


[{"type":"supprimer_noeud","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom","nom":"nom","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard","nom":"nom","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom","nom":"chemin_fichier","valeur":"div","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom","nom":"nom_fonction","valeur":"plugins_2_array","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom","nom":"parametres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom\\/parametres","nom":"!!booleens","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom\\/parametres\\/!!booleens","nom":"nom_plugin","valeur":"catalogue\\/recherches\\/booleens\\/standard","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom\\/parametres","nom":"!!types_recherches","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom\\/parametres\\/!!types_recherches","nom":"nom_plugin","valeur":"catalogue\\/recherches\\/listes_types_recherches\\/defaut","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom\\/parametres","nom":"??critere_intitule","valeur":"bib\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom\\/parametres","nom":"autoplugin","valeur":"","description":"nom de ce plugin lui-m\\u00eame. permettra de recharger une recherche sauvegarder dans un panier dynamique"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom\\/parametres\\/autoplugin","nom":"nom_plugin","valeur":"catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom\\/parametres","nom":"critere","valeur":"a_nom","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom\\/parametres","nom":"type_champ","valeur":"autocomplete","description":"TMP !! mettre autocomplete\\n\\n"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/nom\\/parametres","nom":"ws_url","valeur":"bib_ws.php?module=autocomplete\\/ville\\/standard\\/nom&","description":"ADB modif\\n\\nancien:\\nbib_ws.php?module=autocomplete\\/ville\\/standard\\/defaut&"}
]


  • Web service

Nous allons dans le registre à l'adresse:

profiles/defaut/pages/bib_ws/autocomplete/ville/standard/nom

+ nom + _page => bib_ws/catalogue/catalogage/recherches.php + _parametres

    + plugin_recherche
         + nom_plugin => catalogue/recherches/autocomplete/recherche_simple/ville/standard/nom

Le code à injecter via l'outil d'importation dans le registre est:


[{"type":"supprimer_noeud","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard\\/nom","nom":"nom","valeur":"","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard","nom":"nom","valeur":"","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard\\/nom","nom":"_page","valeur":"bib_ws\\/catalogue\\/catalogage\\/recherches.php","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard\\/nom","nom":"_parametres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard\\/nom\\/_parametres","nom":"plugin_recherche","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard\\/nom\\/_parametres\\/plugin_recherche","nom":"nom_plugin","valeur":"catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom","description":""}
]

  • Recherche

Nous allons dans le registre à l'adresse:

profiles/defaut/plugins/plugins/catalogue/recherches/autocomplete/recherche_simple/ville/standard/nom

+ nom => nom + chemin_fichier => catalogue/recherches + nom_fonction => recherche_simple + parametres

    + param_recherche
         + bool_parse_contenu => 0
         + criteres
              + 01 - nom
                   + ##valeur_critere => query
                   + intitule_critere => a_nom
                   + type_recherche => str_contient_last_commence
         + format_resultat => formate
         + plugin_formate_liste
         + plugin_formate_notice
              + alias
                   + ligne => tableau
              + alias_retour
                   + texte => /
              + nom_plugin => catalogue/marcxml/formatage/ville/autocomplete/standard/nom
         + type_objet => ville

+ _compile => 1

Le code à injecter via l'outil d'importation dans le registre est:


[{"type":"supprimer_noeud","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom","nom":"nom","valeur":"nom","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard","nom":"nom","valeur":"nom","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom","nom":"chemin_fichier","valeur":"catalogue\\/recherches","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom","nom":"nom_fonction","valeur":"recherche_simple","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom","nom":"parametres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres","nom":"param_recherche","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche","nom":"bool_parse_contenu","valeur":"0","description":"Aura-t-on besoin de parser la notice en XML ??"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche","nom":"criteres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche\\/criteres","nom":"01 - nom","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche\\/criteres\\/01 - nom","nom":"##valeur_critere","valeur":"query","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche\\/criteres\\/01 - nom","nom":"intitule_critere","valeur":"a_nom","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche\\/criteres\\/01 - nom","nom":"type_recherche","valeur":"str_contient_last_commence","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche","nom":"format_resultat","valeur":"formate","description":"str_sql => la phrase sql\\n\\nformate => on appelle des plugins pour mettre en forme le resultat\\n\\ndonnees => tableau contenant les r\\u00e9sultats PLUS un champ [xml] avec la notice xml"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche","nom":"plugin_formate_liste","valeur":"","description":"plugin utilis\\u00e9 pour mettre en forme la liste. Si aucun fourni, retourn\\u00e9 sous forme de tableau php"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche","nom":"plugin_formate_notice","valeur":"","description":"notice utilis\\u00e9e pour formater CHAQUE notice"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche\\/plugin_formate_notice","nom":"alias","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche\\/plugin_formate_notice\\/alias","nom":"ligne","valeur":"tableau","description":"on renomme la variable $ligne en $tableau"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche\\/plugin_formate_notice","nom":"alias_retour","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche\\/plugin_formate_notice\\/alias_retour","nom":"texte","valeur":"\\/","description":"on ne r\\u00e9cup\\u00e8re que [resultat][texte] qu\'on met directement en [resultat]"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche\\/plugin_formate_notice","nom":"nom_plugin","valeur":"catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/nom","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom\\/parametres\\/param_recherche","nom":"type_objet","valeur":"ville","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/nom","nom":"_compile","valeur":"1","description":""}
]

  • Formatage des résultats

Nous allons dans le registre à l'adresse:

profiles/defaut/plugins/plugins/catalogue/marcxml/formatage/ville/autocomplete/standard/nom

+ nom + chemin_fichier => catalogue/marcxml + nom_fonction => get_colonnes_array + parametres

    + colonnes
         + 01 - nom
              + nom_champ => nom
              + nom_colonne => a_nom


Le code à injecter via l'outil d'importation dans le registre est:


[{"type":"supprimer_noeud","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/nom","nom":"nom","valeur":"","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard","nom":"nom","valeur":"","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/nom","nom":"chemin_fichier","valeur":"catalogue\\/marcxml","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/nom","nom":"nom_fonction","valeur":"get_colonnes_array","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/nom","nom":"parametres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/nom\\/parametres","nom":"colonnes","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/nom\\/parametres\\/colonnes","nom":"01 - nom","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/nom\\/parametres\\/colonnes\\/01 - nom","nom":"nom_champ","valeur":"nom","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/nom\\/parametres\\/colonnes\\/01 - nom","nom":"nom_colonne","valeur":"a_nom","description":""}
]


Code postal

  • Critère autocomplete

Nous allons dans le registre à l'adresse:

profiles/defaut/plugins/plugins/catalogue/recherches/criteres/ville/standard/cp
=> cp
=> chemin_fichier = div
=> nom_fonction = plugins_2_array
=> parametres
=> !!booleens
=> nom_plugin = catalogue/recherches/booleens/standard
=> !!types_recherches
=> nom_plugin = catalogue/recherches/listes_types_recherches/defaut
=> ??critere_intitule = bib/catalogue/recherches/criteres/ville/standard/cp
=> autoplugin
=> nom_plugin = catalogue/recherches/criteres/ville/standard/cp
=> critere = a_cp
=> type_champ = autocomplete
=> ws_url = bib_ws.php?module=autocomplete/ville/standard/cp&


Le code à injecter via l'outil d'importation dans le registre est:


[{"type":"supprimer_noeud","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp","nom":"cp","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard","nom":"cp","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp","nom":"chemin_fichier","valeur":"div","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp","nom":"nom_fonction","valeur":"plugins_2_array","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp","nom":"parametres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp\\/parametres","nom":"!!booleens","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp\\/parametres\\/!!booleens","nom":"nom_plugin","valeur":"catalogue\\/recherches\\/booleens\\/standard","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp\\/parametres","nom":"!!types_recherches","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp\\/parametres\\/!!types_recherches","nom":"nom_plugin","valeur":"catalogue\\/recherches\\/listes_types_recherches\\/defaut","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp\\/parametres","nom":"??critere_intitule","valeur":"bib\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp\\/parametres","nom":"autoplugin","valeur":"","description":"nom de ce plugin lui-m\\u00eame. permettra de recharger une recherche sauvegarder dans un panier dynamique"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp\\/parametres\\/autoplugin","nom":"nom_plugin","valeur":"catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp\\/parametres","nom":"critere","valeur":"a_cp","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp\\/parametres","nom":"type_champ","valeur":"autocomplete","description":"ADB modif \\n\\nancien: textbox\\n\\nTMP !! mettre autocomplete"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/criteres\\/ville\\/standard\\/cp\\/parametres","nom":"ws_url","valeur":"bib_ws.php?module=autocomplete\\/ville\\/standard\\/cp&","description":"ADB modif\\n\\nancien:\\nbib_ws.php?module=catalogue\\/catalogage\\/recherches\\/ville\\/unimarc_standard\\/700_9a&"}
]


  • Web service

Nous allons dans le registre à l'adresse:

profiles/defaut/pages/bib_ws/autocomplete/ville/standard/cp

+ cp + _page => bib_ws/catalogue/catalogage/recherches.php + _parametres

    + plugin_recherche
         + nom_plugin => catalogue/recherches/autocomplete/recherche_simple/ville/standard/cp


Le code à injecter via l'outil d'importation dans le registre est:


[{"type":"supprimer_noeud","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard\\/cp","nom":"cp","valeur":"","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard","nom":"cp","valeur":"","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard\\/cp","nom":"_page","valeur":"bib_ws\\/catalogue\\/catalogage\\/recherches.php","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard\\/cp","nom":"_parametres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard\\/cp\//_parametres","nom":"plugin_recherche","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/pages\\/bib_ws\\/autocomplete\\/ville\\/standard\\/cp\\/_parametres\\/plugin_recherche","nom":"nom_plugin","valeur":"catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp","description":""}
]

  • Recherche

Nous allons dans le registre à l'adresse:

profiles/defaut/plugins/plugins/catalogue/recherches/autocomplete/recherche_simple/ville/standard/cp


+ cp + chemin_fichier => catalogue/recherches + nom_fonction => recherche_simple + parametres

    + param_recherche
         + bool_parse_contenu => 0
         + criteres
              + 01 - cp
                   + ##valeur_critere => query
                   + intitule_critere => a_cp
                   + type_recherche => str_contient_last_commence
         + format_resultat => formate
         + plugin_formate_liste
         + plugin_formate_notice
              + alias
                   + ligne => tableau
              + alias_retour
                   + texte => /
              + nom_plugin => catalogue/marcxml/formatage/ville/autocomplete/standard/cp
         + type_objet => ville

+ _compile => 1


Le code à injecter via l'outil d'importation dans le registre est:


[{"type":"supprimer_noeud","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp","nom":"cp","valeur":"","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard","nom":"cp","valeur":"","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp","nom":"chemin_fichier","valeur":"catalogue\\/recherches","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp","nom":"nom_fonction","valeur":"recherche_simple","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp","nom":"parametres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres","nom":"param_recherche","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche","nom":"bool_parse_contenu","valeur":"0","description":"Aura-t-on besoin de parser la notice en XML ??"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche","nom":"criteres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche\\/criteres","nom":"01 - cp","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche\\/criteres\\/01 - cp","nom":"##valeur_critere","valeur":"query","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche\\/criteres\\/01 - cp","nom":"intitule_critere","valeur":"a_cp","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche\\/criteres\\/01 - cp","nom":"type_recherche","valeur":"str_contient_last_commence","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche","nom":"format_resultat","valeur":"formate","description":"str_sql => la phrase sql\\n\\nformate => on appelle des plugins pour mettre en forme le resultat\\n\\ndonnees => tableau contenant les r\\u00e9sultats PLUS un champ [xml] avec la notice xml"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche","nom":"plugin_formate_liste","valeur":"","description":"plugin utilis\\u00e9 pour mettre en forme la liste. Si aucun fourni, retourn\\u00e9 sous forme de tableau php"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche","nom":"plugin_formate_notice","valeur":"","description":"notice utilis\\u00e9e pour formater CHAQUE notice"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche\\/plugin_formate_notice","nom":"alias","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche\\/plugin_formate_notice\\/alias","nom":"ligne","valeur":"tableau","description":"on renomme la variable $ligne en $tableau"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche\\/plugin_formate_notice","nom":"alias_retour","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche\\/plugin_formate_notice\\/alias_retour","nom":"texte","valeur":"\\/","description":"on ne r\\u00e9cup\\u00e8re que [resultat][texte] qu\'on met directement en [resultat]"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche\\/plugin_formate_notice","nom":"nom_plugin","valeur":"catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/cp","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp\\/parametres\\/param_recherche","nom":"type_objet","valeur":"ville","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/recherches\\/autocomplete\\/recherche_simple\\/ville\\/standard\\/cp","nom":"_compile","valeur":"1","description":""}
]

  • Formatage des résultats

Nous allons dans le registre à l'adresse:

profiles/defaut/plugins/plugins/catalogue/marcxml/formatage/ville/autocomplete/standard/cp


+ cp + chemin_fichier => catalogue/marcxml + nom_fonction => get_colonnes_array + parametres

    + colonnes
         + 01 - cp
              + nom_champ => nom
              + nom_colonne => a_cp


Le code à injecter via l'outil d'importation dans le registre est:


[{"type":"supprimer_noeud","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/cp","nom":"cp","valeur":"","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard","nom":"cp","valeur":"","description":"ADB ajout"}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/cp","nom":"chemin_fichier","valeur":"catalogue\\/marcxml","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/cp","nom":"nom_fonction","valeur":"get_colonnes_array","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/cp","nom":"parametres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/cp\\/parametres","nom":"colonnes","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/cp\\/parametres\\/colonnes","nom":"01 - cp","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/cp\\/parametres\\/colonnes\\/01 - cp","nom":"nom_champ","valeur":"nom","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/autocomplete\\/standard\\/cp\\/parametres\\/colonnes\\/01 - cp","nom":"nom_colonne","valeur":"a_cp","description":""}
]




Adaptation des éléments des notices

Nous allons dans le registre à l'adresse:

profiles/defaut/plugins/plugins/catalogue/marcxml/formatage/ville/elem_notice
=> elem_notice
=> contenu
=> structure
=> objet_cliquable_avant
=> chemin_fichier = catalogue/marcxml
=> nom_fonction = formate_plugins
=> parametres
=> plugins
=> 01 - ID notice pour clic gauche
=> alias
=> notice = tableau
=> nom_plugin = catalogue/marcxml/get_colonnes
=> parametres
=> colonnes
=> 01 - ID
=> apres = ,
=> avant = nom_colonne = ID
=> 02 - _idx pour clic gauche
=> alias
=> notice = tableau
=> nom_plugin = cataogue/marcxml/get_colonnes
=> parametres
=> colonnes
=> 01 - _idx
=> apres = );"
=> nom_colonne = _idx
=> 03 - ID notice pour clic droit
=> alias
=> notice = tableau
=> nom_plugin = catalogue/marcxml/get_colonnes
=> parametres
=> colonnes
=> 01 - ID
=> apres = ,
=> avant = oncontextmenu="return(fn_mc(event, 'ville',
=> nom_colonne = ID
=> _idx pour clic droit
=> alias
=> notice = tableau
=> nom_plugin = catalogue/marcxml/get_colonnes
=> parametres
=> colonnes
=> 01 - _idx
=> apres = ));" >
=> nom_colonne = _idx


Le code à injecter via l'outil d'importation dans le registre est:


[{"type":"supprimer_noeud","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice","nom":"elem_notice","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville","nom":"elem_notice","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice","nom":"contenu","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice","nom":"structure","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure","nom":"objet_cliquable_avant","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant","nom":"chemin_fichier","valeur":"catalogue\\/marcxml","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant","nom":"nom_fonction","valeur":"formate_plugins","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant","nom":"parametres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres","nom":"plugins","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres\\/plugins","nom":"01 - ID notice pour clic gauche","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres\\/plugins\\/01 - ID notice pour clic gauche","nom":"alias","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres\\/plugins\\/01 - ID notice pour clic gauche\\/alias","nom":"notice","valeur":"tableau","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres\\/plugins\\/01 - ID notice pour clic gauche","nom":"nom_plugin","valeur":"catalogue\\/marcxml\\/get_colonnes","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres\\/plugins\\/01 - ID notice pour clic gauche","nom":"parametres","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres\\/plugins\\/01 - ID notice pour clic gauche\\/parametres","nom":"colonnes","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres\\/plugins\\/01 - ID notice pour clic gauche\\/parametres\\/colonnes","nom":"01 - ID","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres\\/plugins\\/01 - ID notice pour clic gauche\\/parametres\\/colonnes\\/01 - ID","nom":"apres","valeur":", ","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres\\/plugins\\/01 - ID notice pour clic gauche\\/parametres\\/colonnes\\/01 - ID","nom":"avant","valeur":"","description":""}
,{"type":"niv2_create_node","chemin":"profiles\\/defaut\\/plugins\\/plugins\\/catalogue\\/marcxml\\/formatage\\/ville\\/elem_notice\\/structure\\/objet_cliquable_avant\\/parametres\\/plugins\\/_idx pour clic droit\\/parametres\\/colonnes\\/01 - _idx","nom":"nom_colonne","valeur":"_idx","description":""}
]




Intégration dans le registre

Ces corrections sont a faire dans le registre. A ce stade, vous pouvez les personnaliser. Pour les appliquer, vous pouvez soit les intégrer dans l'écran d'importation au niveau de l'administration du registre, soit exécuter, en commande de ligne sous Linux, le script contenu dans le fichier zippé ci-dessous:

Télécharger le fichier ZIP

Ce fichier est à dézipper sous Linux dans un répertoire de travail quelconque sur la machine où se trouve les sources du site WEB de Waterbear:

unzip ville.maj.registre.zip

Dans ce répertoire généré, se trouvent un sous-répertoire "registre" contenant les fichiers texte (.txt) où se trouvent les enregistrements à injecter dans le registre. Ce contenu a le format de celui utilisé dans l'interface d'exportation et d'importation de l'administration du registre de Waterbear. On trouve également un fichier de script PHP. Dans ce fichier, il faut adapter la variable "$racinewaterbear" qui doit contenir le chemin de la racine du logiciel WEB de Waterbear où on retrouve le fichier "bib.php". Par exemple, si ce chemin est "/web/waterbear" comme dans notre exemple d'installation, la variable devient (ne pas oublier la barre oblique finale "/"):

$racinewaterbear = "/web/waterbear/";

Ensuite, en commande de ligne sous Linux, positionnez-vous dans le répertoire du script et exécutez-le:

php ./maj.registre.liste.fichier.php




->retour à la personnalisation de Waterbear