College of Education and Human Development wordmark.

Working Example

People tag ID 466

Skip to code sample.

Loading…

Code for example above

Add the people JavaScript to the page:


{% block bottom_js %}{{ parent() }}
<script src="/assets/dist/js/people.min.js"></script>
{% endblock %}
            

In this case we're not using the loader macro. It's just HTML:


<div class="twothird feature">
    <h2>People tag ID 466</h2>
    <div id="coordinator-container" class="loader-container" aria-live="polite"
        data-people-app {# The JavaScript is looking for this to indicate that it should pull a feed in #}
        data-tag="466" {# This is the id of the tag from the People tool #}
        data-target-element-selector="#coordinator-container" {# The element selector for the feed html #}
        data-template-path="/assets/dist/views/olpd/people/" {# The path the the Nunjucks template #}
        data-template-name="list.html" {# The name of the Nunjucks template #}
        data-people-per-group="2"> {# How many people to put in each group #}
        <div class="loader">
            <div class="loader-figure "></div>
            <p class="loader-label">Loading&hellip;</p>
        </div>
    </div>
</div>
            

The code explained

Including the JavaScript file in the example above enables us to include some parameters in HTML data attributes.

Providing the information in the format above is enough to pull in a specific tag and put the people from the feed into groups so they can be rendered in rows. The data-template-path and data-template-name attributes indicate where the Nunjucks template is. Templates have to be in the public directory so browsers can access them.

That's what will render the list of people. In this case, we've put people in groups of two so we can put two people per row. Here's what that template looks like:


{% for group in data.people %}{# the first loop loops through the groups #}
<div class="row">
    <div class="container">
    {% for person in group %}{# inside that loop, we loop through the people in the group #}
        <div class="half">
            <h4 class="heading-profile">{{ person.nameFirstLast }}</h4>
            <p>
                {% if person.workingTitle|is_string %}
                    {{ person.workingTitle|safe }}
                {% endif %}
                    <br  />
                {{ person.phone }} | <a href="mailto:{{ person.internetId }}@umn.edu">{{ person.internetId }}@umn.edu</a>
            </p>
            {% if person.headshotAddress|is_string %} <br  />
                <p class="no-margin-top"><img src="{{ person.headshotAddress }}" alt="{{ person.nameFirstLast }} headshot"></p>
            {% endif %}
        </div>
    {% endfor %}
    </div><!-- end container.emphasis -->
</div><!-- end row.emphasis -->
{% endfor %}
            

People tool data points

The feed from the people tool gets translated from XML to JSON because JavaScript can work with JSON natively. The JSON is just a set of key/value pairs. E.g., person.headshotAddress in the template above maps to headshotAddress in the JSON below:


[
  {
    "address_1": "Org Leadership, Policy/Dev",
    "address_2": "178 Pillsbury Dr SE",
    "address_3": "224 Burton Hall",
    "address_4": null,
    "areasOfInterest": "Research integrity<br>\nScientific misconduct<br>\nInternational research collaborations<br>\nGraduate education",
    "briefBio": null,
    "city": "Minneapolis",
    "curriculumVitaeAddr": null,
    "dateDisplay": "November 17, 2017",
    "dateISO": "2017-11-17",
    "degrees": "Ph.D., University of Minnesota, 1990, higher education<br />M.S., University of Iowa, 1978, mathematics<br />B.A., St. Olaf College, 1976, mathematics",
    "expertise": null,
    "fax": "612/624-3377",
    "firstName": "Melissa",
    "fullBio": "<h2>\n\tProfile</h2>\n<p>\n\tMelissa S. Anderson is professor of higher education, with affiliate membership in bioethics, and associate dean of graduate education at the University of Minnesota. Her work over the past 30 years has been in the areas of scientific integrity, research collaboration, and academy-industry relations, with particular attention to the research environment. She was principal investigator of a study funded by the U.S. National Institutes of Health on international research collaborations and co-editor, with Nick Steneck, of <em>International Research Collaborations: Much to be Gained, Many Ways to Get in Trouble</em> (Routledge, 2010). Professor Anderson chairs the Committee on Scientific Freedom and Responsibility of the American Association for the Advancement of Science and serves on the boards of <em>Science and Engineering Ethics</em>, the <em>Journal of Empirical Research on Human Research Ethics</em>, and <em>Accountability in Research</em>. She is the co-chair, with Sabine Kleinert of <em>The Lancet</em>, of the planning committee for the 4th World Conference on Research Integrity, to be held May 31-June 3, 2015, in Rio de Janeiro.</p>\n<h2>\n\tHonors and Awards</h2>\n<ul>\n\t<li>\n\t\tRobert H. Beck Faculty Teaching Award, Alumni Society of the University of Minnesota College of Education and Human Development (2005)</li>\n\t<li>\n\t\tDistinguished Teaching Award University of Minnesota College of Education and Human Development (1998)</li>\n</ul>\n<h2>\n\tCurrent and Recent Professional Activities</h2>\n<ul>\n\t<li>\n\t\tPrincipal investigator, project on Integrity in International Research Collaborations, funded by the National Institutes of Health (NIGMS/ORI) (2009-2012)</li>\n\t<li>\n\t\tCo-chair (with Sabine Kleinert of <em>The Lancet</em>) of the planning committee, 3rd World Conference on Research Integrity, Montreal, May 5-8, 2013</li>\n\t<li>\n\t\tCo-editor (with Nicholas H. Steneck) of <em>International Research Collaborations: Much to be Gained, Many Ways to Get in Trouble</em>, Routledge Press (2010)</li>\n\t<li>\n\t\tOrganizer, international conference on Challenges and Tensions in International Research Collaborations, Minneapolis, Minnesota (October 2008)</li>\n\t<li>\n\t\tMember, (Inaugural) Ethics Committee, American Educational Research Association, and chair of subcommittee to revise the AERA Ethical Principles</li>\n\t<li>\n\t\tMember, Editorial Board, <em>Journal of Empirical Research in Human Research Ethics</em></li>\n\t<li>\n\t\tMember, Editorial Board, <em>Science and Engineering Ethics</em></li>\n\t<li>\n\t\tMember, Editorial Board, <em>Accountability in Research</em></li>\n\t<li>\n\t\tChair, University of Minnesota Senate Research Committee (2009-2011)</li>\n\t<li>\n\t\tMember<em> ex officio</em>, University of Minnesota Faculty Consultative Committee (2009-2011)</li>\n\t<li>\n\t\tMember <em>ex officio</em>, University of Minnesota Provost&#39;s Research Council (2009-2011)</li>\n\t<li>\n\t\tMember <em>ex officio</em>, University of Minnesota Council of Research Associate Deans (2009-2011)</li>\n\t<li>\n\t\tMember, University of Minnesota International Risk and Liability Committee (2009-2011)</li>\n\t<li>\n\t\tInstructor in University of Minnesota Responsible Conduct of Research Program</li>\n</ul>",
    "headShot": null,
    "internetId": "mand",
    "jobs": [
      {
        "deptId": "",
        "deptIdDescription": "",
        "status": "Tenured",
        "description": "Professor",
        "umZDeptId": "Z0172",
        "umZDeptIdDescription": "Department of Organizational Leadership, Policy, and Development"
      },
      {
        "deptId": "11207",
        "deptIdDescription": "Org Leadership, Policy & Dev",
        "status": "Active",
        "description": "Professor",
        "umZDeptId": "Z0172",
        "umZDeptIdDescription": "Department of Organizational Leadership, Policy, and Development"
      }
    ],
    "lastName": "Anderson",
    "middleName": "S.",
    "name": "Anderson,Melissa S.",
    "nameFirstLast": "Melissa Anderson",
    "nameSuffix": null,
    "officeHours": null,
    "phone": "612/624-5717",
    "presentations": [
      "<p>\n\tEuroScience Open Forum, Dublin (2012, July)</p>",
      "<p>\n\tRoyal Irish Academy, Dublin (2012, July)</p>",
      "<p>\n\tCurie Institute, Paris (2012, April)</p>",
      "<p>\n\tWorkshop on Plagiarism, All European Academies/Royal Netherlands Academy of Arts and Sciences (2011, December)</p>",
      "<p>\n\tSigma Xi The Scientific Research Society (2011, November)</p>",
      "<p>\n\tWorkshop on Research Practices, Research Ethics and Integrity, and Their Governance, Harvard University (2011, May)</p>",
      "<p>\n\tAmerican Association for the Advancement of Science, Washington, D.C. (2011, February)</p>",
      "<p>\n\tNational Science Council of Taiwan / Academia Sinica Workshop on Research Integrity.&nbsp; Academia Sinica, Taiwan (2010, December)</p>",
      "<p>\n\tUniversity of Oxford, Oxford, UK (2010, October)</p>",
      "<p>\n\tScience in Question series, University of Konstanz, Konstanz, Germany (2010, October)</p>",
      "<p>\n\tSecond World Conference on Research Integrity, Singapore (2010, July)</p>",
      "<p>\n\tCenter for Excellence, University of Konstanz, Konstanz, Germany (2010, May)</p>",
      "<p>\n\tAmerican Educational Research Association, Denver (2010, April)</p>",
      "<p>\n\tAssociation for Practical and Professional Ethics, Cincinnati (2010, March)</p>",
      "<p>\n\tEuropean Science Foundation / Office of Research Integrity Workshop on Responsible Conduct of Research:&nbsp; Good Research Practices and Research Integrity Training, Strasbourg, France (2009, October)</p>",
      "<p>\n\tUniversity of Michigan, Rackham Graduate School and Program in Biological Sciences (2009, October)</p>",
      "<p>\n\tSociety of Research Administrators, Seattle (2009, October)</p>",
      "<p>\n\tNational Institutes of Health: National Institute of Allergy and Infectious Diseases; Inter-Institute&nbsp;Bioethics&nbsp;Interest Group; National Institute of Allergy and Infectious Diseases Scientific Resource Development Team; National Institute of Allergy and Infectious Diseases Strategic Planning and Evaluation Branch (2009, June)</p>",
      "<p>\n\tJoint workshop of the China Association for Science and Technology (CAST) and the American Association for the Advancement of Science (AAAS) San Diego (2009, April)</p>",
      "<p>\n\tAmerican Educational Research Association, San Diego (2009, April)</p>",
      "<p>\n\tSociety of Research Administrators, Washington DC (2008, October)</p>",
      "<p>\n\tWorkshop on Ethics Education and Scientific and Engineering Research: What&#39;s Been Learned? What Should Be Done? National Academy of Engineering and National Science Foundation (2008, August)</p>",
      "<p>\n\tConference on Developments in Research and Theory on Higher Education Organization, Athens, Georgia (2008, May)</p>",
      "<p>\n\tFourth International Barcelona Conference of the Global University Network for Innovation, Barcelona, Spain (2008, April)</p>",
      "<p>\n\tFirst Biennial Conference on Responsible Conduct of Research: Education/Instruction/Training, St. Louis (2008, April)</p>",
      "<p>\n\tAmerican Educational Research Association, New York (2008, March)</p>",
      "<p>\n\tCold Spring Harbor Laboratories, New York (2007, October)</p>",
      "<p class=\"revised\">\n\tUpdated June 2014</p>"
    ],
    "publications": [
      "<p>Anderson, M. S., Chiteng Kot, F., Shaw, M. A., Lepkowski, C. C., &amp; De Vries, R. G. (2011). Authorship issues in international research collaborations. <em>American Scientist, 99</em>(3), 204-207.</p>",
      "<p>Anderson, M. S., &amp; Steneck, N. H. (2011). The problem of plagiarism. <em>Urologic oncology: Seminars and original investigations, 29</em>(1), 90-94.</p>",
      "<p>Anderson, M. S., &amp; Steneck, N. H. (Eds.). (2010). <em>International research collaborations: Much to be gained, many ways to get in trouble</em>. New York: Routledge.</p>",
      "<p>Anderson, M. S. (2010). What can be gained and what can go wrong in the context of different national research environments. In M. S. Anderson, &amp; N. H. Steneck (Eds.), <em>International research collaborations: Much to be gained, many ways to get in trouble</em>. New York: Routledge.</p>",
      "<p>Bohnhorst, M. A., McQuaid, M., Tsantir, S. R. B., Amundson, D. M., &amp; Anderson, M. S. (2010). Legal and regulatory considerations in international research collaborations. In M. S. Anderson &amp; N. H. Steneck (Eds.), <em>International research collaborations: Much to be gained, many ways to get in trouble</em>. New York: Routledge.</p>",
      "<p>Anderson, M. S., &amp; Steneck, N. H. (2010). Realizing gains and staying out of trouble. In M. S. Anderson &amp; N. H. Steneck (Eds.), <em>International research collaborations: Much to be gained, many ways to get in trouble</em>. New York: Routledge.</p>",
      "<p>Anderson, M. S., Chiteng Kot, F., Jie, Y., Kamata, T., Kuzhabekova, A., Lepkowski, C. C., Shaw, M. A., Sorenson, M. M., &amp; Vasconcelos, S. M. R. (2010). Differences in national approaches to doctoral education: Implications for international research collaborations. In M. S. Anderson &amp; N. Steneck (Eds.), <em>International research collaborations: Much to be gained, many ways to get in trouble</em>. New York: Routledge.</p>",
      "<p>Martinson, B. C., Crain, A. L., De Vries, R., &amp;&nbsp; Anderson, M. S. (2010). The importance of organizational justice in ensuring research integrity. <em>Journal of Empirical Research on Human Research Ethics, 5</em>(3), 67-83.</p>",
      "<p>Anderson, M. S. (2010). International research collaborations: Anticipating challenges instead of being surprised.&nbsp; <em>Europa World of Learning 2011</em> (61 ed., Vol. 1, pp. 14-18) London: Routledge.</p>",
      "<p>Anderson, M. S. (2010). Research misconduct and misbehavior in relation to the research environment. In T. Bertam Gallant (Ed.), <em>Creating the ethical academy: A systems approach to understanding misconduct and empowering change</em>. New York: Routledge.</p>",
      "<p>Anderson, M. S., Ronning, E. A., Martinson, B. C., &amp; De Vries, R. (2010). Extending the Mertonian norms: Scientists&#39; subscription to norms of research. <i>Journal of Higher Education.</i></p>",
      "<p>Martinson, B. C., Crain, A. L., Anderson, M. S., &amp; De Vries, R. (2009). Institutions&rsquo; expectations for researchers&rsquo; self-funding, federal grant holding, and private industry involvement: Manifold drivers of self-interest and researcher behavior. <em>Academic Medicine, 84</em>(11), 1491-1499.</p>",
      "<p>Anderson, M. S. (2009). Who is in charge?: Research integrity in the international context. <em>Research Global, 22</em>, 12-13.</p>",
      "<p>Louis, K. S., Holdsworth, J., Anderson, M. S., &amp; Campbell, E. G. (2008). Everyday ethics in research: Translating authorship guidelines into practice in the bench sciences. <i>Journal of Higher Education, 79</i>(1), 88-112.</p>",
      "<p>Vogeli, C., Yucal, R., Bendavid, E., Jones, L. M., Anderson, M. S., Louis, K. S., &amp; Campbell, E. G. (2006). Data withholding and the next generation of scientists: Results of a National Survey. <i>Academic Medicine, 81</i>(2), 128-136.</p>",
      "<p>Martinson, B. C., Anderson, M. S., &amp; De Vries, R. (2006). Scientists&#39; perceptions of organizational justice and self-reported misbehaviors. <em>Journal of Empirical Research on Human Research Ethics, 1</em>(1), 51-66.</p>",
      "<p>De Vries, R., Anderson, M. S., &amp; Martinson, B. C. (2006). Normal misbehavior: Scientists talk about the ethics of research. <em>Journal of Empirical Research on Human Research Ethics, 1</em>(1), 43-50.</p>",
      "<p>Martinson, B. C., Anderson, M. S., &amp; De Vries, R. (2005). Scientists behaving badly. <em>Nature, 435</em>, 737-738.</p>\n<p>\n\t<em><strong>Note:</strong></em> The publication of the Nature paper was named by <em>Discover</em> as one of the top 100 events in science in the world in 2005: Zorich, Zach. (2006). Deception plagues medical research. <em>Discover, 27</em>(1), 49.</p>"
    ],
    "state": "MN",
    "tags": [
      {
        "query_key": "tg",
        "id": "386",
        "name": null,
        "description": "Ethics"
      },
      {
        "query_key": "tg",
        "id": "217",
        "name": null,
        "description": "Faculty"
      },
      {
        "query_key": "tg",
        "id": "389",
        "name": null,
        "description": "Faculty"
      },
      {
        "query_key": "tg",
        "id": "466",
        "name": null,
        "description": "HE"
      },
      {
        "query_key": "tg",
        "id": "399",
        "name": null,
        "description": "Higher Education"
      },
      {
        "query_key": "tg",
        "id": "406",
        "name": null,
        "description": "International Education"
      }
    ],
    "tagGroups": [
      {
        "query_key": "en",
        "abbreviation": "OLPD",
        "id": "48",
        "name": null,
        "description": "Organizational Leadership"
      },
      {
        "query_key": "en",
        "abbreviation": "Research",
        "id": "54",
        "name": null,
        "description": "Research topic tags"
      }
    ],
    "twitterName": null,
    "webPage": "http://www.cehd.umn.edu/olpd/people/faculty/M-anderson.asp",
    "workingTitle": "Professor; Director of Graduate Studies",
    "zip": "55455-0226",
    "headshotAddress": "http://apps.cehd.umn.edu/people/Headshot/AndersonMW-Pref.jpg"
  }
]