Skip to content

Commit

Permalink
trabajando con las listas de recursos
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloRN committed Aug 26, 2011
1 parent c25fd9d commit 6debec9
Show file tree
Hide file tree
Showing 52 changed files with 1,815 additions and 708 deletions.
10 changes: 8 additions & 2 deletions apps/admin/config/view.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ default:
stylesheets:
- markdown
- lib.ui-datepicker

- jquery-ui-1.7.3.custom
- jquery.ui.timepicker.addon
javascripts:
- admin
- lib.ui-i18n
- lib.ui-core
- lib.ui-widget
- lib.ui-mouse
- lib.ui-datepicker

- /dmCorePlugin/lib/jquery-ui/js/minified/jquery.ui.slider.min.js
- jquery.ui.timepicker.addon
has_layout: true
layout: <?php echo dm::getDir() ?>/dmAdminPlugin/modules/dmAdmin/templates/layout
2 changes: 1 addition & 1 deletion apps/admin/modules/articulo/config/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ generator:
- '=titulo'
- anno
- idioma
- aprobado
- prestado
- is_active
- formato_duro
- palabras_claves
Expand Down
10 changes: 6 additions & 4 deletions apps/admin/modules/bibliotecaPersonal/config/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ generator:
- '=titulo'
- anno
- idioma
- aprobado
- prestado
- is_active
- formato_duro
- palabras_claves
- cant_registros
- fecha_inicial
- fecha_final
- slide_id
- tematicas_list
- created_at
Expand All @@ -45,23 +46,24 @@ generator:
filter:
display:
- id
- aprobado
- prestado
- is_active
- formato_duro
- titulo
- anno
- idioma
- palabras_claves
- fecha_inicial
- fecha_final
- created_at
- updated_at
- created_by
- updated_by
form:
display:
NONE: [aprobado, is_active, formato_duro]
NONE: [prestado, is_active, formato_duro]
PDF: [slide_id_form, slide_id_view]
Others: [titulo, anno, resumen, idioma, palabras_claves, cant_registros, fecha_inicial, tematicas_list]
Others: [titulo, anno, resumen, idioma, palabras_claves, cant_registros, fecha_inicial, fecha_final, tematicas_list]
class: bibliotecapersonalAdminForm
fields: { }
edit: ~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,26 @@ public function configure()
parent::configure();
$this->validatorSchema['cant_registros'] = new sfValidatorRegex(array ('pattern' => '(^[0-9]+$)', 'required' => false), array('invalid' => 'La cantidad de registros deber ser un n&uacutemero'));

$this->widgetSchema['fecha_inicial'] = new sfWidgetFormFilterDate(array(
'from_date' => new sfWidgetFormDmDate(array(), array("style" => "float:none")),
'to_date' => new sfWidgetFormDmDate(array(), array("style" => "float:none")),
'template' => '%from_date% - %to_date% (desde - hasta)',
'with_empty' => true
));
$this->validatorSchema['fecha_inicial'] = new sfValidatorDateRange(array(
'required' => false,
'from_date' => new dmValidatorDate(array('required' => false)),
'to_date' => new dmValidatorDate(array('required' => false))
));
$this->widgetSchema['fecha_inicial'] = new sfWidgetFormDmDate(array(
'format' => '%month%/%day%/%year%',
'with_time' => false,
'required' => false
));
$this->validatorSchema['fecha_inicial'] = new dmValidatorDate(array(
'with_time' => false,
'required' => false

));
$this->widgetSchema['fecha_final'] = new sfWidgetFormDmDate(array(
'format' => '%month%/%day%/%year%',
'with_time' => false,
'required' => false
));
$this->validatorSchema['fecha_final'] = new dmValidatorDate(array(
'with_time' => false,
'required' => false
));


}
}
6 changes: 3 additions & 3 deletions apps/admin/modules/documentoLegal/config/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ generator:
- '=titulo'
- anno
- idioma
- aprobado
- prestado
- is_active
- formato_duro
- palabras_claves
Expand All @@ -46,7 +46,7 @@ generator:
filter:
display:
- id
- aprobado
- prestado
- is_active
- formato_duro
- titulo
Expand All @@ -61,7 +61,7 @@ generator:
- updated_by
form:
display:
NONE: [aprobado, is_active, formato_duro]
NONE: [prestado, is_active, formato_duro]
Slide: [slide_id_form, slide_id_view]
Others: [titulo, anno, resumen, idioma, palabras_claves, organismo, total_paginas, tipo_dc, tematicas_list]
class: documentolegalAdminForm
Expand Down
9 changes: 5 additions & 4 deletions apps/admin/modules/monografia/config/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ generator:
- '=titulo'
- anno
- idioma
- aprobado
- prestado
- is_active
- formato_duro
- palabras_claves
- ciudad_pub
- editorial
- total_paginas
- isbn
- num_inventario
- slide_id
- tematicas_list
- created_at
Expand All @@ -46,7 +47,7 @@ generator:
sortable: true
filter:
display:
- aprobado
- prestado
- is_active
- formato_duro
- titulo
Expand All @@ -62,9 +63,9 @@ generator:
- updated_by
form:
display:
NONE: [aprobado, is_active, formato_duro]
NONE: [prestado, is_active, formato_duro]
Pdf: [slide_id_form, slide_id_view]
Recurso: [titulo, anno, resumen, idioma, isbn, editorial, palabras_claves, total_paginas, tematicas_list]
Recurso: [titulo, anno, resumen, idioma, isbn, num_inventario, editorial, palabras_claves, total_paginas, tematicas_list, autors_list]
class: monografiaAdminForm
fields:
anno: {label: A&ntildeo de publicaci&oacuten }
Expand Down
3 changes: 3 additions & 0 deletions apps/admin/modules/monografia/lib/monografiaAdminForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ public function configure()
parent::configure();
$this->validatorSchema['ciudad_pub'] = new sfValidatorString(array('min_length' =>3, 'required' => false), array ('min_length' => 'La ciudad debe tener al menos 3 caracteres'));
$this->validatorSchema['editorial'] = new sfValidatorString(array('min_length' =>3), array ('required' => false, 'min_length' => 'La editorial debe tener al menos 3 caracteres'));
$this->validatorSchema['num_inventario'] = new sfValidatorRegex(array ('pattern' => '(^[0-9]{4}$)', 'required' => false), array('invalid' => 'El n&uacutemero de inventario debe ser de 4 d&iacutegitos'));
$this->validatorSchema['isbn'] = new sfValidatorString(array('min_length' =>3, 'required' => false), array ('min_length' => 'El ISBN debe tener al menos 3 caracteres'));
$this->validatorSchema['total_paginas'] = new sfValidatorRegex(array ('pattern' => '(^[0-9]+$)', 'required' => false), array('invalid' => 'El total de p&aacuteginas deber ser un n&uacutemero'));
$this->validatorSchema->setPostValidator( new sfValidatorDoctrineUnique(array(
'model' => 'Recurso', 'column' => array('isbn')), array('invalid' => 'El isbn de una monograf&iacutea es &uacutenico')));
$this->mergePostValidator( new sfValidatorDoctrineUnique(array(
'model' => 'Recurso', 'column' => array('num_inventario')), array('invalid' => 'El n. de inventario es &uacutenico')));
}
}
6 changes: 3 additions & 3 deletions apps/admin/modules/patente/config/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ generator:
- '=titulo'
- anno
- idioma
- aprobado
- prestado
- is_active
- formato_duro
- palabras_claves
Expand All @@ -47,7 +47,7 @@ generator:
filter:
display:
- id
- aprobado
- prestado
- is_active
- formato_duro
- titulo
Expand All @@ -63,7 +63,7 @@ generator:
- updated_by
form:
display:
NONE: [aprobado, is_active, formato_duro]
NONE: [prestado, is_active, formato_duro]
Slide: [slide_id_form, slide_id_view]
Datos: [titulo, anno, resumen, idioma, palabras_claves, pais, institucion, total_paginas, num_internacional, tematicas_list]
class: PatenteAdminForm
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/modules/presentacion/config/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ generator:
- '=titulo'
- anno
- idioma
- aprobado
- prestado
- is_active
- formato_duro
- palabras_claves
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/modules/recurso/config/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ generator:
- anno
- resumen
- idioma
- aprobado
- prestado
- is_active
- formato_duro
- palabras_claves
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/modules/tesis/config/generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ generator:
- '=titulo'
- anno
- idioma
- aprobado
- prestado
- is_active
- formato_duro
- palabras_claves
Expand Down
17 changes: 15 additions & 2 deletions apps/front/modules/articulo/templates/_list.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php // Vars: $articuloPager

use_helper('Date');
echo $articuloPager->renderNavigationTop();

echo _open('ul.elements');
Expand All @@ -8,7 +8,20 @@
{
echo _open('li.element');

echo _link($articulo)->text($articulo->titulo);
echo _link($articulo)->set('.titulo_link')->text($articulo->titulo);
if($articulo->resumen){

echo markdown($articulo->resumen, '.resumen');}
else{
echo _tag('p.recurso_list', 'Sin resumen');
}
echo _tag('p.recurso_infos',
_tag('span', format_date($articulo->createdAt, 'D')).
'|'.
_tag('span', $articulo->issn).
'|'.
_link($articulo)->text(__('Leer m&aacutes...'))
);

echo _close('li');
}
Expand Down
17 changes: 15 additions & 2 deletions apps/front/modules/bibliotecaPersonal/templates/_list.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php // Vars: $bibliotecaPersonalPager

use_helper('Date');
echo $bibliotecaPersonalPager->renderNavigationTop();

echo _open('ul.elements');
Expand All @@ -8,7 +8,20 @@
{
echo _open('li.element');

echo _link($bibliotecaPersonal)->text($bibliotecaPersonal->titulo);
echo _link($bibliotecaPersonal)->set('.titulo_link')->text($bibliotecaPersonal->titulo);
if($bibliotecaPersonal->resumen){

echo markdown($bibliotecaPersonal->resumen, '.resumen');}
else{
echo _tag('p.recurso_list', 'Sin resumen');
}
echo _tag('p.recurso_infos',
_tag('span', format_date($bibliotecaPersonal->createdAt, 'D')).
'|'.
_tag('span', $bibliotecaPersonal->fecha_inicial).
'|'.
_link($bibliotecaPersonal)->text(__('Leer m&aacutes...'))
);

echo _close('li');
}
Expand Down
17 changes: 15 additions & 2 deletions apps/front/modules/documentoLegal/templates/_list.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php // Vars: $documentoLegalPager

use_helper('Date');
echo $documentoLegalPager->renderNavigationTop();

echo _open('ul.elements');
Expand All @@ -8,7 +8,20 @@
{
echo _open('li.element');

echo _link($documentoLegal)->text($documentoLegal->titulo);
echo _link($documentoLegal)->set('.titulo_link')->text($documentoLegal->titulo);
if($documentoLegal->resumen){

echo markdown($documentoLegal->resumen, '.resumen');}
else{
echo _tag('p.recurso_list', 'Sin resumen');
}
echo _tag('p.recurso_infos',
_tag('span', format_date($documentoLegal->createdAt, 'D')).
'|'.
_tag('span', $documentoLegal->tipo_dc).
'|'.
_link($documentoLegal)->text(__('Leer m&aacutes...'))
);

echo _close('li');
}
Expand Down
18 changes: 15 additions & 3 deletions apps/front/modules/monografia/templates/_list.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php // Vars: $monografiaPager

use_helper('Date');
echo $monografiaPager->renderNavigationTop();

echo _open('ul.elements');
Expand All @@ -8,8 +8,20 @@
{
echo _open('li.element');

echo _link($monografia)->text($monografia->titulo);

echo _link($monografia)->set('.titulo_link')->text($monografia->titulo);
if($monografia->resumen){

echo markdown($monografia->resumen, '.resumen');}
else{
echo _tag('p.recurso_list', 'Sin resumen');
}
echo _tag('p.recurso_infos',
_tag('span', format_date($monografia->createdAt, 'D')).
'|'.
_tag('span', $monografia->editorial).
'|'.
_link($monografia)->text(__('Leer m&aacutes...'))
);
echo _close('li');
}

Expand Down
5 changes: 4 additions & 1 deletion apps/front/modules/patente/actions/components.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ public function executeList()
}

public function executeShow()
{
{

$query = $this->getShowQuery();

$this->patente = $this->getRecord($query);


}

public function executeForm()
Expand Down
Loading

0 comments on commit 6debec9

Please sign in to comment.