]> source.dussan.org Git - archiva.git/commitdiff
fix detail view for packaging and parent
authorOlivier Lamy <olamy@apache.org>
Tue, 20 Mar 2012 10:34:51 +0000 (10:34 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 20 Mar 2012 10:34:51 +0000 (10:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1302830 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js

index 00bc52897ed225305ce580516d14947538e56947..6889de8b651006b1a0d931c6461874313b6f7d9f 100644 (file)
@@ -300,25 +300,6 @@ public class DefaultBrowseService
                     }
                 }
             }
-            if ( versionMetadata == null )
-            {
-                return null;
-            }
-
-            MavenProjectFacet mavenFacet = new MavenProjectFacet();
-            mavenFacet.setGroupId( groupId );
-            mavenFacet.setArtifactId( artifactId );
-            versionMetadata.addFacet( mavenFacet );
-            MavenProjectFacet versionMetadataMavenFacet =
-                (MavenProjectFacet) versionMetadata.getFacet( MavenProjectFacet.FACET_ID );
-            if ( versionMetadataMavenFacet != null )
-            {
-                if ( mavenFacet.getPackaging() != null && !StringUtils.equalsIgnoreCase( mavenFacet.getPackaging(),
-                                                                                         versionMetadataMavenFacet.getPackaging() ) )
-                {
-                    mavenFacet.setPackaging( null );
-                }
-            }
 
             return versionMetadata;
         }
index f340e33bced06d67c15b0d61705bd3628c01a4f8..942efe0f38a3692010602649943f305f02d993cd 100644 (file)
@@ -185,6 +185,7 @@ $(function() {
           mainContent.find("#browse_breadcrumb" ).show();
           mainContent.find("#browse_breadcrumb" ).html(mediumSpinnerImg());
           var metadataUrl="restServices/archivaServices/browseService/projectVersionMetadata/"+encodeURIComponent(groupId)+"/"+encodeURIComponent(artifactId);
+          metadataUrl+="/"+encodeURIComponent(version);
           var selectedRepo=getSelectedBrowsingRepository();
           if (selectedRepo){
             metadataUrl+="?repositoryId="+encodeURIComponent(selectedRepo);