Skip to content

Commit

Permalink
fixed validation for cgp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Eichar committed Oct 24, 2012
1 parent 2750f1a commit 0ae8e5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
20 changes: 3 additions & 17 deletions web/src/main/webapp/scripts/harvesting/cgp/cgp.js
Expand Up @@ -4,9 +4,6 @@
//===
//=====================================================================================

/*ker.include('calendar/calendar.js');
ker.include('calendar/calendar-setup.js');
ker.include('calendar/lang/calendar-en.js');*/
ker.include('harvesting/cgp/model.js');
ker.include('harvesting/cgp/view.js');

Expand Down Expand Up @@ -40,20 +37,9 @@ function Cgp(xmlLoader)
//===
//=====================================================================================

this.getType = function()
{
return "cgp";
}

this.getLabel = function()
{
return loader.eval("info[@type='cgp']/long");
}

this.getEditPanel = function()
{
return "cgp.editPanel";
}
this.getType = function() { return "cgp"; }
this.getLabel = function() { return loader.eval("info[@type='cgp']/long"); }
this.getEditPanel = function() { return "cgp.editPanel"; }

//=====================================================================================

Expand Down
5 changes: 1 addition & 4 deletions web/src/main/webapp/scripts/harvesting/cgp/view.js
Expand Up @@ -52,10 +52,7 @@ cgp.View = function(xmlLoader)
{ id:'cgp.url', type:'length', minSize :1, maxSize :200 },
{ id:'cgp.url', type:'url' },
{ id:'cgp.username', type:'length', minSize :0, maxSize :200 },
{ id:'cgp.password', type:'length', minSize :0, maxSize :200 },
{ id:'cgp.every.days', type:'integer', minValue:0, maxValue:99 },
{ id:'cgp.every.hours', type:'integer', minValue:0, maxValue:23 },
{ id:'cgp.every.mins', type:'integer', minValue:0, maxValue:59 }
{ id:'cgp.password', type:'length', minSize :0, maxSize :200 }
]);

shower = new Shower('cgp.useAccount', 'cgp.account');
Expand Down
Expand Up @@ -7,7 +7,7 @@
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>

<!-- ============================================================================================= -->
<!-- === Generate a table row for the harvesting's webdav privilege list -->
<!-- === Generate a table row for the harvesting's csw privilege list -->
<!-- ============================================================================================= -->

<xsl:template match="/root/group">
Expand Down

0 comments on commit 0ae8e5f

Please sign in to comment.