Skip to content

Commit

Permalink
duplicate entry
Browse files Browse the repository at this point in the history
found duplicate entry of 'computer science' in directory
  • Loading branch information
hakarune committed Dec 28, 2012
1 parent 20d09eb commit 3525e00
Showing 1 changed file with 0 additions and 97 deletions.
97 changes: 0 additions & 97 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2160,103 +2160,6 @@ <H3>Computer Science</H3>
<div class="collapsibleDirectory" data-role="collapsible">
<H3>Creative Media and Digital Culture</H3>
<div id='results-cmdc'></div>
</div>
<script> //faculty
var directoryName = 'computer-science';
$.ajax({
type: 'GET',
url: "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22http%3A%2F%2Fdirectory.vancouver.wsu.edu%2F" + directoryName + "%22%20and%20xpath%3D%22%2F%2Fdiv%5B%40id%3D'facdir'%5D%2Fdiv%2Fdiv%2Fdiv%2Fdiv%22",
dataType: 'xml',
success: function (data) {
if(data) {

var textResults = $(data).find('results').text();

$(data).find('results').find('.views-row').each(function (indexFM) {

var facultyMember = this;

$(facultyMember).each(function (indexFC) {

var facultyMemberImage = $(this).find('.views-field-field-profile-image-fid #directoryimage a img').attr('src');

var facultyMemberTitleTEMP = $(this).find('.views-field-field-professional-title-value #largetitle').text();

var facultyMemberTitleUrl = $(this).find('.views-field-field-professional-title-value #largetitle a').attr('href');

var facultyMemberTitle = '<a href="http://directory.vancouver.wsu.edu' + facultyMemberTitleUrl + '">' + facultyMemberTitleTEMP + '</a>';

var facultyMemberPosition = $(this).find('.views-field-field-position-value span').text();

var facultyMemberPhone = $(this).find('.views-field-field-phone-value span').text();

var facultyMemberBuilding = $(this).find('.views-field-field-building-value span').text();

var facultyMemberRoom = $(this).find('.views-field-field-room-number-value span').text();

var facultyMemberEmailTEMP = $(this).find('.views-field-field-email-value span').text();
var facultyMemberEmail = '<a href="mailto:' + facultyMemberEmailTEMP + '">' + facultyMemberEmailTEMP + '</a><span class="iconEmail"></span>'

var divObject = '<p><img class="dynamicThumb" src="' + facultyMemberImage + '" /><span class="dynamicName">' + facultyMemberTitle + '</span><br /><span class="dynamicText">' + facultyMemberPosition + '<br />' + "Phone:" + '<a href="tel:' + facultyMemberPhone + '">' + facultyMemberPhone + '</a> <br />' + "Location: " + facultyMemberBuilding + " " + facultyMemberRoom + '<br />' + facultyMemberEmail + '</span></p>';

$('#results-csci').append(divObject);
});
});
}
}
});
</script>
<script> //staff
var directoryName = 'computer-science';

$.ajax({
type: 'GET',
url: "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%3D%22http%3A%2F%2Fdirectory.vancouver.wsu.edu%2F" + directoryName + "%22%20and%20xpath%3D%22%2F%2Fdiv%5B%40id%3D'staffdir'%5D%2Fdiv%2Fdiv%2Fdiv%2Fdiv%22",
dataType: 'xml',
success: function (data) {
if(data) {

var textResults = $(data).find('results-anth').text();

$(data).find('results').find('.views-row').each(function (indexFM) {

var staffMember = this;

$(staffMember).each(function (indexFC) {

var staffMemberImage = $(this).find('.views-field-field-profile-image-fid #directoryimage img').attr('src');

var staffMemberTitleTEMP = $(this).find('.views-field-field-professional-title-value #largetitle').text();

var staffMemberTitleUrl = $(this).find('.views-field-field-professional-title-value #largetitle a').attr('href');

var staffMemberTitle = '<a href="http://directory.vancouver.wsu.edu' + staffMemberTitleUrl + '">' + staffMemberTitleTEMP + '</a>';

var staffMemberPosition = $(this).find('.views-field-field-position-value span').text();

var staffMemberPhone = $(this).find('.views-field-field-phone-value span').text();

var staffMemberBuilding = $(this).find('.views-field-field-building-value span').text();

var staffMemberRoom = $(this).find('.views-field-field-room-number-value span').text();

var staffMemberEmailTEMP = $(this).find('.views-field-field-email-value span').text();
var staffMemberEmail = '<a href="mailto:' + staffMemberEmailTEMP + '">' + staffMemberEmailTEMP + '</a><span class="iconEmail"></span>'

var divObject = '<p><img class="dynamicThumb" src="' + staffMemberImage + '" /><span class="dynamicName">' + staffMemberTitle + '</span><br /><span class="dynamicText">' + staffMemberPosition + '<br />' + "Phone: " + staffMemberPhone + '<br />' + "Location: " + staffMemberBuilding + " " + staffMemberRoom + '<br />' + staffMemberEmail + '</span></p>';

$('#results-csci').append(divObject);
});
});
}
}

});

</script>
<div class="collapsibleDirectory" data-role="collapsible">
<H3>Computer Science</H3>
<div id='results-csci'></div>
</div>
<script> //faculty
var directoryName = 'criminal-justice';
Expand Down

0 comments on commit 3525e00

Please sign in to comment.