server/public/scripts/controllers/landingController.js
//requests albums released today (logic for today is server side)
requests albums released today (logic for today is server side)
requests albums released today ( logic for today is server side )
function searchTodaysAlbums(){
    $http.get('/musicBrainz/today').then(
      function(response) {
        console.log(response);
        var x2js = new X2JS();
        var xmlText = response.data;
        var jsonObj = x2js.xml_str2json( xmlText );
        $scope.albums = jsonObj.metadata['release-list'].release;
        $scope.sortedAlbums = [];
        removeDuplicates($scope.albums);
      }
    );
  } 
function searchTodaysAlbums ( ) { $http . get ( '/musicBrainz/today' ) . then ( function ( response ) { console . log ( response ) ; var x2js = new X2JS ( ) ; var xmlText = response . data ; var jsonObj = x2js . xml_str2json ( xmlText ) ; $scope . albums = jsonObj . metadata [ 'release-list' ] . release ; $scope . sortedAlbums = [ ] ; removeDuplicates ( $scope . albums ) ; } ) ; }
requests albums released today (logic for today is server side)
requests albums released today ( logic for today is server side )
//converts xml to json //extracting useful info from data-object //end of searchTodaysAlbums