From: Olivier Lamy Date: Sat, 25 Feb 2012 20:46:45 +0000 (+0000) Subject: js bean mapping for displaying artifact entry X-Git-Tag: archiva-1.4-M3~1236 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b3e4b0439a250658b77883c5260e33e43e7ea49a;p=archiva.git js bean mapping for displaying artifact entry git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293686 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js index 0d8526291..58d52c917 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js @@ -50,23 +50,7 @@ $(function() { if (i licenses = new ArrayList(); + this.licenses=licenses; + + //private List mailingLists = new ArrayList(); + this.mailingLists=mailingLists; + + //private List dependencies = new ArrayList(); + this.dependencies=dependencies; + + //private boolean incomplete; + this.incomplete=incomplete; + + } + + Organization=function(name,url){ + //private String name; + this.name=name; + + //private String url; + this.url=url; + } + + IssueManagement=function(system,url) { + //private String system; + this.system=system; + + //private String url; + this.url=url; + } + + Scm=function(connection,developerConnection,url) { + //private String connection; + this.connection=connection; + + //private String developerConnection; + this.developerConnection=developerConnection; + + //private String url; + this.url=url; + } + + CiManagement=function(system,url) { + //private String system; + this.system=system; + + //private String url; + this.url=url; + } + + License=function(name,url){ + this.name=name; + this.url=url; + } + + MailingList=function(mainArchiveUrl,otherArchives,name,postAddress,subscribeAddress,unsubscribeAddress){ + //private String mainArchiveUrl; + this.mainArchiveUrl=mainArchiveUrl; + + //private List otherArchives; + this.otherArchives=otherArchives; + + //private String name; + this.name=name; + + //private String postAddress; + this.postAddress=postAddress; + + //private String subscribeAddress; + this.subscribeAddress=subscribeAddress; + + //private String unsubscribeAddress; + this.unsubscribeAddress=unsubscribeAddress; + } + + Dependency=function(classifier,optional,scope,systemPath,type,artifactId,groupId,version){ + //private String classifier; + this.classifier=classifier; + + //private boolean optional; + this.optional=optional; + + //private String scope; + this.scope=scope; + + //private String systemPath; + this.systemPath=systemPath; + + //private String type; + this.type=type; + + //private String artifactId; + this.artifactId=artifactId; + + //private String groupId; + this.groupId=groupId; + + //private String version; + this.version=version; + + } //----------------------------------------- // search part diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html index 60ea5ec48..4d81fbb3a 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/search.html @@ -27,6 +27,7 @@
+
@@ -83,4 +84,8 @@ {{/each}} + + + \ No newline at end of file