Developing and Deploying Open Source in the Library: Hydra, Blacklight, and Beyond

1,530 views
1,397 views

Published on

In these trying financial times, libraries and cultural heritage institutions in general face difficult resource allocation decisions: for example, do you spend hundreds of thousands of dollars on proprietary software or do you hire a few good software developers and library professionals who can lead the design of applications and platforms specific to your needs? For some, leveraging open source software and the communities that form around it helps solve some of these problems.

The University of Virginia Library is a key partner in the collaborative and open source project known as "Hydra”; the goal of the Hydra Project is to create a comprehensive set of open source repository workflow tools that allow librarians and scholars to manage describe, deliver, reuse and preserve digital information. U.Va.’s committment to the project includes the definition of metadata standards, the creation of search and discovery interfaces, and the development and implementation of multiple Hydra “heads” such as the interface and workflow in use for the U.Va. institutional repository. U.Va is also a key contributor to the Blacklight project; Blacklight is an open source discovery interface or "next-generation catalog" — and can be seen powering the newly updated U.Va. OPAC, Virgo.

This talk will provide a brief overview of both the Hydra and Blacklight projects and the tools under development, will describe some of the processes and challenges for development teams working within a library setting, and show some of the ways that open source software works (and where it gets tricky) within this setting.

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,530
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Developing and Deploying Open Source in the Library: Hydra, Blacklight, and Beyond

  1. 1. Developing and Deploying Open Source Tools in the Library: Hydra, Blacklight, and Beyond<br />Julie Meloni, University of Virginia Library<br />NYPL Brown Bag Lunch Talk // 26 August 2011<br />jcmeloni@virginia.edu // @jcmeloni<br />
  2. 2. The Million-Dollar Question<br />Do you spend hundreds of thousands of dollars on proprietary software (licensing, maintenance contracts, support contracts, etc.) that performs one set of tasks, or do you hire a few good software developers and library professionals who can lead the design of applications and platforms specific to your needs?<br />
  3. 3. The Answer …<br />The people cost more.<br />The people can also do more, especially when committed to open source wherever possible.<br />In turn, other institutions benefit as well.<br />This approach will not work for every institution.<br />This approach does work for University of Virginia Library.<br />
  4. 4. Problems with Proprietary Software<br />Expensive in terms of<br />licensing<br />hardware<br />Maintenance<br />Vendor lock-in<br />dependencies make switching costs too great<br />
  5. 5. Problems with Open Source Software<br />Expensive in terms of<br />Human resources (learning, collaboration, and commitment to a community takes a lot of time!)<br />No vendor support<br />Reliance on internal resources and a community that may have different goals than your own.<br />
  6. 6. Where Does that Leave Us?<br />OSS is no panacea<br />Know what you're getting into<br />Philosophies are difficult to implement wholesale<br />Implementations must serve the greater goals of the library<br />The process of testing, implementing, and testing again, and working with a community to achieve goals, takes time but is worth the effort for stability and scalability.<br />
  7. 7. OSS at UVa Library<br />Fedora (Flexible Extensible Digital Object Repository Architecture): a solid, modular architecture on which to build repositories, archives, and related systems<br />2001 Mellon grant to Cornell & UVa enabled development <br />Blacklight: creating, implementing, and maintaining an open source OPAC (& related collaborations)<br />Developed originally within the Scholars’ Lab and UVa Library as a skunkworks project<br />Embracing the Hydra philosophy that<br />no single application can meet the full range of needs<br />no single institution can handle development and maintenance<br />requires a common repository infrastructure; flexible, atomic data models; modular services and configurable components <br />
  8. 8. Up Next…<br />The Hydra Project: what we do, what we get out of it, and what we contribute back to the community<br />How using an open source discovery interface has allowed us to quickly address the needs of our institutionand its patrons<br />How working with open source has allowed more Library staff outside of the development team have a say in the design, development, and deployment of our products <br />
  9. 9. The Hydra Project<br />Collaborative effort between University of Virginia, Stanford University, University of Hull, Fedora Commons/DuraSpace, and MediaShelf.<br />Working group created in 2008 to fill a need to develop an end-to-end, flexible, extensible, workflow-driven, Fedora application kit.<br />Technical Framework <br />Community Framework<br />No direct funding of the Hydra Project itself.<br />
  10. 10. Hydra Project Assumption #1<br />No single application can meet the full range of digital asset management needs, but there are shared primitive functions:<br />Depositsimple or multipart objects, singly or in bulk<br />Manage object’s content, metadata, and permissions<br />Search both full text and fielded search in support of user discovery and administration<br />Browseobjects sequentially by collection, attribute, or ad-hoc filtering<br />Delivery of objects for viewing, downloading, and dissemination through user and machine interfaces<br />
  11. 11. Hydra Project Response<br />One body, many heads.<br />Hydra is designed to support tailored applications and workflows for different content types, contexts, and interactions by building from:<br />a common repository infrastructure,<br />flexible, atomic data models, and<br />modular services and configurable components<br />
  12. 12. Hydra Technical Framework<br />Fedoraas repository layer for persisting and managing digital objects. <br />An abstraction layer sits between Fedora and the Hydra heads, insulating applications from changes in the repository structure<br />ActiveFedorais a Ruby gem for creating and managing objects in Fedora<br />Solr indexes provide fast access to information Blacklight for faceted searching, browsing and tailored views on objects<br />The Hydra-Head plugin itself: a Ruby on Rails library that works with ActiveFedora to provide create, update and delete actions against objects in the repository<br />
  13. 13. Hydra Project Assumption #2<br />No single institution or provider can resource the development or maintenance of a full set of solutions for the same needs.<br />Problems with proprietary software include expense in terms of licensing, hardware, maintenance, potential vendor lock-in<br />Problems with open source software include expense of human resources, and lack of vendor support causes a reliance on internal resources and community that may have different goals than your own.<br />
  14. 14. Hydra Project Response<br />“If you want to go fast, go alone.<br /> If you want to go far, go together.”<br />Hydra Steering Group<br />Collaborative roadmapping, resource allocation and coordination, governance of the technology core<br />Hydra Managers <br />Shape and fund work, commission “heads”, create functional requirements and specifications, UI/UX design, documentation, training, evangelism<br />Hydra Developers<br />Define technical architecture, commit code, integration and release, testing, testing, testing.<br />
  15. 15. Hydra Community Framework<br />Conceived and executed as a collaborative, open source effort from the start<br />An open architecture, with many contributors to the core<br />Collaboratively built “solution bundles” that can be adapted and modified to suit local needs<br />Hydra heads as reference implementations<br />Ultimate objective of the Hydra Project is to effectively intertwine its technical and community threads of development, producing a community-sourced, sustainable application framework.<br />http://projecthydra.org/<br />
  16. 16. Great, But…<br />WHAT DID YOU BUILD???<br />We built Libra: an unmediated, self-deposit, institutional repository for scholarly material.<br />http://libra.virginia.edu/<br />
  17. 17. In February 2010, the University of Virginia Faculty Senate passed an Open Access resolution:<br />All faculty encouraged to “reserve a nonexclusive, irrevocable, non-commercial, global license to exercise any and all rights under copyright relating to each of her or his scholarly articles in any medium, and to authorize others to do the same.”<br />NSF requirements for preservation and access of data used in or resulting from researchers’ grant-funded projects.<br />Discovery, access, and preservation of our students’ electronic theses and dissertations.<br />Why Did We Need Libra?<br />
  18. 18. Given institutional commitment to these University-wide problems, resources were allocated from both the University Library and Information Technology & Communication.<br />UVa was already committed to the Hydra Project, and to assist in the development of an end-to-end, flexible, extensible, workflow-driven Fedora application kit.<br />The solution to our problems clearly required such an application toolkit…good thing the Hydra Project had one in development.<br />Hydra offerings ARE NOT a turnkey institutional repository solutions, but frameworks for depositing, managing, searching, browsing, and delivering digital content.<br />We built on that.<br />How Did We Get Libra?<br />
  19. 19. Our solution should:<br />Be unmediated<br />Provide sustainable access to and discovery of scholarly materials<br />Enable collection of depository-designated metadata<br />Manage depositor-designated access permissions<br />Work with internal stakeholders to gather requirements and user stories, as this is their repository.<br />Work with Hydra partners to move the common code base forward while still developing our own application in our own branch.<br />Libra Development Principles<br />
  20. 20. The Result: A Highly Customized Application<br />http://libra.virginia.edu<br />
  21. 21. Works With Multiple Item Types<br />
  22. 22. All Discoverable<br />
  23. 23. …and detailed<br />
  24. 24. Sustainable Access to Scholarly Work<br />
  25. 25. Open Source in Practice<br />Blacklight is an open source discovery interface that can be used as a front end for a digital repository, or as a single-search interface to aggregate digital content that would otherwise be siloed.<br />customizable and removable for ultimate flexibility<br />many core developers part of the Hydra Project (Bess Sadler, now at Stanford, Bob Haschert at UVa, etc)<br />Continued development by a core group of committers governed by developer norms.<br />http://projectblacklight.org/<br />
  26. 26. Basic Blacklight<br />
  27. 27. Customized Blacklight<br />
  28. 28. Even More Customizations<br />
  29. 29. Good, Broad, Requirements Gathering<br />Functional requirements define the functionality of the system, in terms of inputs, behaviors, outputs.<br />What is the system supposed to accomplish?<br />Functional requirements come from stakeholders (users), not (necessarily) developers.<br />stakeholder request -> feature -> use case -> business rule<br />Developers can/should/will help stakeholders work through functional requirements.<br />Functional requirements should be written in a non-technical way.<br />
  30. 30. An epic is a long story that can be broken into smaller stories.<br />It is a narrative; it describes interactions between people and a system<br />WHO the actors are<br />WHAT the actors are trying to accomplish<br />The OUTPUT at the end<br />Narrative should:<br />Be chronological <br />Be complete (the who, what, AND the why)<br />NOT reference specific software or other tools<br />NOT describe a user interface<br />Non-Technical Folk Write Epics and Stories<br />
  31. 31. Stories are the pieces of an epic that begin to get to the heart of the matter.<br />Still written in non-technical language, but move toward a technical structure.<br />Given/When/Then scenarios<br />GIVEN the system is in a known state WHEN an action is performed THEN these outcomes should exist<br />EXAMPLE:<br />GIVEN one thing <br />AND an other thing <br />AND yet an other thing <br />WHEN I open my eyes <br />THEN I see something <br />But I don't see something else<br />Non-Technical Folk Write Epics and Stories<br />
  32. 32. Scenario: User attempting to add an object<br />GIVEN I am logged in <br />AND I have selected the “add” form<br />AND I am attempting to upload a file<br />WHEN I invoke the file upload button<br />THEN validate file type on client side <br />AND return alert message if not valid<br />AND continue if is valid<br />THEN validate file type on server side<br />AND return alert message if not valid<br />AND finish process if is valid<br />Actual Story Example<br />
  33. 33. Developers involved at the story level<br />Writing stories<br />Validating stories<br />Throwing rocks at stories<br />Getting at the real nitty-gritty of the task request<br />Moving from story to actual code<br />Stories written in step definitions become Ruby code<br />Tests are part of this code<br />Code is tested from the time it is written<br />Writing Code From Stories<br />
  34. 34. Watch out for the butterfly effect…<br />When one change in a complex system has large effects elsewhere, through a sensitive dependence on initial conditions.<br />Epics and stories do not have to be golden, but changes should be carefully considered<br />Developers illuminate the potential effects of changes<br />The cycle of epic, story, coding begins again<br />This includes any story that touches the changed story<br />Never Stop Communicating<br />
  35. 35. Each release has with a list of known issues and potential areas of improvement<br />We go through the cycle of epic, story, coding/testing, user testing, story editing, coding/testing, (etc) again and again.<br />Products are organic and grow upward and outward<br />…but if you want to lop off part of that tree, expect there will be systematic changes <br />developers are there to ensure the tree doesn’t fall on your house<br />We Never Think We’re Finished<br />
  36. 36. We Never Ignore the User <br />Work closely with the UX team to ensure that wireframes and prototypes are put in front of users before we take action.<br />Patrons vet the stakeholder requests just like developers do, but from a user’s perspective rather than a technical one.<br />In some notable instances, patron desires have differed tremendously from what stakeholders believe they want.<br />The story of integrating a discovery service: how and why we didn’t blend results.<br />User testing produced clear requests, different from librarian assumptions.<br />Open source flexibility allowed us to go from requirements gathering to user testing to requirements changing to development and deployment in four months.<br />
  37. 37. We Will…<br />NEVER return to using proprietary software and solutions (when we can help it).<br />ALWAYS try to find an open source solution, or build one if it doesn’t exist.<br />SHARE everything we possibly and legally can, with anyone who wants to use it.<br />HOPE that any of you considering the use of open source versus proprietary software will consider it and ask questions…<br />

×