====== OpacMarc según Django ====== Estas son unas notas iniciadas en marzo de 2008, cuando entré en contacto por primera vez con el framework Django. --- //[[fjgomez@gmail.com|Fernando Gómez]] 2009/05/13 23:08// Ver también: * [[notas:opacmarc_y_symfony]] * [[llamadas_a_opac.xis]] Las URLs pueden organizarse según: * Base consultada: * headings (name, subj) * title * biblio * class * Tipo de consulta: * browse (headings, title, biblio, class) * keyword match (heading, biblio, class) * heading match (biblio) * Tipo de resultado: * list of headings * list of bib records * single bib record * class table ¿El parámetro , presente en todas las URLs, podría ser guardado como variable de la sesión? Tal vez podría estar implícito, mediante archivo de configuración, o como parte del dominio (e.g. //bibima.opac.uns.edu.ar//). Si tuviéramos subcatálogos, el nombre del subcatálogo debería ser otro parámetro en la URL. ¿El contexto de un registro (la lista de registros a la que pertenece) se puede almacenar en la sesión? Ver cómo Django maneja la paginación de listas. Templates: * base * header * footer * home Aux functions (based on existing *.pfts and *.xis): * bib_sort_key() * doc_type() * clean_heading() * compact_dates() * agrep() * find_suggestions() ===== Tabla ===== ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- URL Response / Comments Views (functions) Templates ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Root: / No db specified, show menu of available dbs? Search forms: //search// search_form() form-simple.html, form-advanced.html //search/ Redirect to //search/simple/ // Idem Retrieve headings: //browse-head//[]/ Paginated list of headings. browse_headings() heading_list.html, heading.html Default: term = start of index //kw-in-head/// Paginated list of headings, or suggestions. match_kw_in_heading() heading_list.html, suggestions.html Title browse ?? Retrieve lists of bib records: //kw-in-bib///[sortBy]/ Paginated list of bib records, or suggestions. match_kw_in_bib() bib-record_list.html, bib-record-mini.html, suggestions.html //head-in-bib///[sortBy]/ Paginated list of bib records. match_heading_in_bib() bib-record_list.html, bib-record-mini.html //class-in-bib//[sortBy]/ Paginated list of bib records. match_class_in_bib() bib-record_list.html Browse catalog (shelves): //browse-catalog// Paginated list of bib records, sorted by call number browse_catalog() bib-record_list.html, bib-record-mini1.html //browse-catalog// Paginated list of bib records, sorted by call number browse_catalog() bib-record_list.html, bib-record-mini1.html Classification browse/search: //browse-class/[]/[]/ List of class codes. Default: tree_level=1 browse_class() class_list.html, msc_home.html, msc.html //kw-in-class// List of matching class codes, or suggestions. match_kw_in_class() class_list.html, msc.html Bib record details: //bib-record////[