SlideShare a Scribd company logo
Mobile Website on Drupal Computer in Library March 23, 2011 Shian Chang Georgetown University
Agenda History Approaches Mobile Services Drupal  Future Plan
History The library website is built on Drupal 6 since 2009. Started to plan the mobile website on the same Drupal in 2010. The Mobile website was launched on January 2011.
Approaches Develop a mobile web (not iPhone nor Android app) Build on the same Drupal of the main library website Build a framework for easily adding mobile content Share the data with the main library website
Mobile Services Library Hours and Locations Library Catalog Ask Us Mobile resources
Drupal Drupal module and Theme Mobile Page Basic Mobile view Basic Other Mobile Pages
Drupal Module and Theme Install Mobile Tool module and iWebkit theme. Enable iWebkit theme and configure it. Configure Mobile Tool Configure <library-home>/mobile/* to be mobile pages Switch to iWebkit theme for all path of <library-home>/mobile/* Demo (Mobile Tool Configuration)
Mobile Page Basic iWebkit Framework Mobile Page Framework Mobile Page Content Mobile Page Path
iWebkit Framework <ul class=pageitem> <li class=“textbox”>…</li> <li class=“textbox”>…</li> <li class=“menu”>…</li> <li class=“store”>…</li> </ul> <li class=&quot;menu&quot;>  <a href=&quot;index.php&quot;>  <img alt=&quot;Description&quot; src=&quot;thumbs/basics.png&quot; /> <span class=&quot;name&quot;>Iphone iwebkit Example</span>  <span class=&quot;arrow&quot;></span> </a>  </li>   <li class=&quot;store&quot;>  <a href=&quot;index.php&quot;>  <span class=&quot;image&quot; style=&quot;background-image: url('image.jpg')&quot;></span>  <span class=&quot;name&quot;>Iphone Song</span>  <span class=&quot;comment&quot;>iWebKit Comment</span>  <img alt=&quot;rating&quot; class=&quot;stars&quot; src=&quot;images/4stars.png&quot; />  <span class=&quot;starcomment&quot;>13 Reviews<br> </span>  <span class=&quot;arrow&quot;></span> </a>  </li>
Mobile Page Framework Add <ul class=“pageItem”> in page.tpl.php for iWebkit theme. <ul class=&quot;pageitem&quot;> <?php if($content): ?> <?php print $content; ?> <?php endif; ?><!--End of content --> </ul>
Mobile Page Content  Add <li class=“…”> as the content of Mobile Page
Mobile Page Path Assign the path of the page to be ~/mobile/…., then iWebkit theme applies to the page.
Mobile View Basic Create a view  Customize Fields in the view Theme field in view as need View page path
Create a View
Customize Fields in View Because <ul class=“ pageItem ” > has been in page.tpl.php of iWebkit theme, Construct <li> at each field to be displayed Rewrite the output of this field Output this field as a link Link path – URL of the menu item Prefix text - <li …> Suffix text - </li>
<li class=&quot;menu2&quot;> <a href=&quot;/mobile/service-point/Circulation%20Desk&quot; title=&quot;More on Circulation Desk&quot;>  <img src=&quot;/sites/default/files/images/Circulation Desk-small.png&quot; /> <span class=&quot;name&quot;>Circulation Desk</span> <span class=&quot;comment&quot;>8:30am - Midnight</span> <span class=&quot;arrow&quot;></span> </a> </li>
Path of View Page Assign the path name with ~/mobile/…., then iWebkit theme applies to the page.
Theme Field in View Create a template file at ~/sites/all/theme/iwebkit directory. Make the file name as views-view-field-- [field-name] .tpl.php The template file overwrites the views-view-field.tpl.php (default template).
Example of Template File views-view-field-- field-phone-value .tpl.php <?php  $phone_output = '<li class=&quot;menu&quot;><a href=&quot;tel:'.$output.'&quot;><img src=&quot;/sites/default/files/images/phone-small.png&quot; /><span class=&quot;name&quot;>Call ‘; $phone_output = $phone_output.$output.'</span><span class=&quot;arrow&quot;></span></a></li>'; print $phone_output;  ?>
Theming Information in View Click on “Information” to see the theme template information
Theming Information in View Select iWebkit theme Click on “Change theme” to see all template files used by the view
Theming Information in View The template “views-view-field-- field-phone-value .tpl.php” overwrites “views-view-field.tpl.php” for the field_phone.
Other Mobile Pages Mobile Home page Library Catalog
Mobile Home Page Create a content type called Mobile Service icon image Link Create a view called mobile_services Configure display style as grid to display 4 columns for each row Create a theme file to adjust the spaces The new file has the name as view-view-grid- mobile-services .tpl.php. The new file overwrites views-view-grid.tpl.php (default).
Library Catalog  Use Web service Develop PHP code to parse the XML and format the display Consortium Arquabrowser (Library Catalog Discovery Server) Georgetown University Website (Drupal)  Submit a search request Response an XML with search result
Examples of Library Catalog
Future Plan Add more mobile services such as “My Account”. Add SMS capability and integrate with LibraryH3lp. Improve Library Catalog with access to other libraries in our consortium.
Question? Georgetown University Mobile site:  http://library.georgetown.edu/mobile Georgetown University Website:  http://library.georgetown.edu   Drupal iWebkit:  http://drupal.org/project/iwebkit Drupal Mobile Tool:   http://drupal.org/project/mobile_tools   Thank You ! Shian Chang (slc72@georgetown.edu)

More Related Content

PPT
Lecture 6 - Comm Lab: Web @ ITP
PPTX
You and Your Stylesheet
PPT
Html5 accessibility
PPTX
WordPress и социальные сети
PPT
How To Create Personal Web Pages On My Web
PPTX
Your First Wordpress Theme
PPT
The Frameless Opac
PPT
Getting More Traffic From Search Advanced Seo For Developers Presentation
Lecture 6 - Comm Lab: Web @ ITP
You and Your Stylesheet
Html5 accessibility
WordPress и социальные сети
How To Create Personal Web Pages On My Web
Your First Wordpress Theme
The Frameless Opac
Getting More Traffic From Search Advanced Seo For Developers Presentation

What's hot (19)

PPS
Flash Templates- Joomla!Days NL 2009 #jd09nl
PPTX
Basic of web design
PPTX
Html5 structure tags
PPTX
Semantics & the Mobile Web
PPTX
Microdata semantic-extend
PPT
Testing and evaluation
PPT
Lecture 1 - Comm Lab: Web @ ITP
PPT
Customised Search With Google
PDF
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
PPT
Joomla 1.7 SEO
PPT
Joomla 1.6 Core SEO and Best Practices
PPTX
Social structured data is your friend brighton seo april 2013
PPT
Enhance Your Google Search
PPT
Pinned Sites in Internet Explorer 9
PPT
Website designing company in delhi
PPT
SES Toronto 2008; Joe Dolson
PPT
Building A Website
DOCX
HTML Basics 2 workshop
PPTX
On-Page SEO EXTREME - SEOZone Istanbul 2013
Flash Templates- Joomla!Days NL 2009 #jd09nl
Basic of web design
Html5 structure tags
Semantics & the Mobile Web
Microdata semantic-extend
Testing and evaluation
Lecture 1 - Comm Lab: Web @ ITP
Customised Search With Google
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
Joomla 1.7 SEO
Joomla 1.6 Core SEO and Best Practices
Social structured data is your friend brighton seo april 2013
Enhance Your Google Search
Pinned Sites in Internet Explorer 9
Website designing company in delhi
SES Toronto 2008; Joe Dolson
Building A Website
HTML Basics 2 workshop
On-Page SEO EXTREME - SEOZone Istanbul 2013
Ad

Similar to Mobile library on drupal cil2011 (20)

PPT
Creating Yahoo Mobile Widgets
PPT
jQuery Mobile
PPT
Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM
PPTX
Creating a Webpage
PDF
Optaros Surf Code Camp Walkthrough 1
PDF
Optaros Surf Code Camp Lab 4
ODP
HTML5: 5 Quick Wins
KEY
HTML5 - techMaine Presentation 5/18/09
PPT
HTML5 Overview
PPT
Evolution of API With Blogging
PPTX
Web design 2 - Basic HTML 2010
PPT
Html5 Overview
PPT
Xhtml Part1
ODP
IBM Lotus Notes Domino XPages and XPages for Mobile
PPS
Flash templates for Joomla!
ODP
Why Python Web Frameworks Are Changing the Web
ODP
Phing - A PHP Build Tool (An Introduction)
PDF
Optaros Surf Code Camp Walkthrough 2
PPT
Developing Gadgets
Creating Yahoo Mobile Widgets
jQuery Mobile
Enterprise Google Gadgets Integrated with Alfresco - Open Source ECM
Creating a Webpage
Optaros Surf Code Camp Walkthrough 1
Optaros Surf Code Camp Lab 4
HTML5: 5 Quick Wins
HTML5 - techMaine Presentation 5/18/09
HTML5 Overview
Evolution of API With Blogging
Web design 2 - Basic HTML 2010
Html5 Overview
Xhtml Part1
IBM Lotus Notes Domino XPages and XPages for Mobile
Flash templates for Joomla!
Why Python Web Frameworks Are Changing the Web
Phing - A PHP Build Tool (An Introduction)
Optaros Surf Code Camp Walkthrough 2
Developing Gadgets
Ad

Recently uploaded (20)

PDF
A comparative analysis of optical character recognition models for extracting...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Getting Started with Data Integration: FME Form 101
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
A Presentation on Artificial Intelligence
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
A comparative analysis of optical character recognition models for extracting...
“AI and Expert System Decision Support & Business Intelligence Systems”
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Digital-Transformation-Roadmap-for-Companies.pptx
MYSQL Presentation for SQL database connectivity
NewMind AI Weekly Chronicles - August'25-Week II
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Getting Started with Data Integration: FME Form 101
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
A Presentation on Artificial Intelligence
Network Security Unit 5.pdf for BCA BBA.
20250228 LYD VKU AI Blended-Learning.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Electronic commerce courselecture one. Pdf
Unlocking AI with Model Context Protocol (MCP)
SOPHOS-XG Firewall Administrator PPT.pptx
Assigned Numbers - 2025 - Bluetooth® Document

Mobile library on drupal cil2011

  • 1. Mobile Website on Drupal Computer in Library March 23, 2011 Shian Chang Georgetown University
  • 2. Agenda History Approaches Mobile Services Drupal Future Plan
  • 3. History The library website is built on Drupal 6 since 2009. Started to plan the mobile website on the same Drupal in 2010. The Mobile website was launched on January 2011.
  • 4. Approaches Develop a mobile web (not iPhone nor Android app) Build on the same Drupal of the main library website Build a framework for easily adding mobile content Share the data with the main library website
  • 5. Mobile Services Library Hours and Locations Library Catalog Ask Us Mobile resources
  • 6. Drupal Drupal module and Theme Mobile Page Basic Mobile view Basic Other Mobile Pages
  • 7. Drupal Module and Theme Install Mobile Tool module and iWebkit theme. Enable iWebkit theme and configure it. Configure Mobile Tool Configure <library-home>/mobile/* to be mobile pages Switch to iWebkit theme for all path of <library-home>/mobile/* Demo (Mobile Tool Configuration)
  • 8. Mobile Page Basic iWebkit Framework Mobile Page Framework Mobile Page Content Mobile Page Path
  • 9. iWebkit Framework <ul class=pageitem> <li class=“textbox”>…</li> <li class=“textbox”>…</li> <li class=“menu”>…</li> <li class=“store”>…</li> </ul> <li class=&quot;menu&quot;> <a href=&quot;index.php&quot;> <img alt=&quot;Description&quot; src=&quot;thumbs/basics.png&quot; /> <span class=&quot;name&quot;>Iphone iwebkit Example</span> <span class=&quot;arrow&quot;></span> </a> </li> <li class=&quot;store&quot;> <a href=&quot;index.php&quot;> <span class=&quot;image&quot; style=&quot;background-image: url('image.jpg')&quot;></span> <span class=&quot;name&quot;>Iphone Song</span> <span class=&quot;comment&quot;>iWebKit Comment</span> <img alt=&quot;rating&quot; class=&quot;stars&quot; src=&quot;images/4stars.png&quot; /> <span class=&quot;starcomment&quot;>13 Reviews<br> </span> <span class=&quot;arrow&quot;></span> </a> </li>
  • 10. Mobile Page Framework Add <ul class=“pageItem”> in page.tpl.php for iWebkit theme. <ul class=&quot;pageitem&quot;> <?php if($content): ?> <?php print $content; ?> <?php endif; ?><!--End of content --> </ul>
  • 11. Mobile Page Content Add <li class=“…”> as the content of Mobile Page
  • 12. Mobile Page Path Assign the path of the page to be ~/mobile/…., then iWebkit theme applies to the page.
  • 13. Mobile View Basic Create a view Customize Fields in the view Theme field in view as need View page path
  • 15. Customize Fields in View Because <ul class=“ pageItem ” > has been in page.tpl.php of iWebkit theme, Construct <li> at each field to be displayed Rewrite the output of this field Output this field as a link Link path – URL of the menu item Prefix text - <li …> Suffix text - </li>
  • 16. <li class=&quot;menu2&quot;> <a href=&quot;/mobile/service-point/Circulation%20Desk&quot; title=&quot;More on Circulation Desk&quot;> <img src=&quot;/sites/default/files/images/Circulation Desk-small.png&quot; /> <span class=&quot;name&quot;>Circulation Desk</span> <span class=&quot;comment&quot;>8:30am - Midnight</span> <span class=&quot;arrow&quot;></span> </a> </li>
  • 17. Path of View Page Assign the path name with ~/mobile/…., then iWebkit theme applies to the page.
  • 18. Theme Field in View Create a template file at ~/sites/all/theme/iwebkit directory. Make the file name as views-view-field-- [field-name] .tpl.php The template file overwrites the views-view-field.tpl.php (default template).
  • 19. Example of Template File views-view-field-- field-phone-value .tpl.php <?php $phone_output = '<li class=&quot;menu&quot;><a href=&quot;tel:'.$output.'&quot;><img src=&quot;/sites/default/files/images/phone-small.png&quot; /><span class=&quot;name&quot;>Call ‘; $phone_output = $phone_output.$output.'</span><span class=&quot;arrow&quot;></span></a></li>'; print $phone_output; ?>
  • 20. Theming Information in View Click on “Information” to see the theme template information
  • 21. Theming Information in View Select iWebkit theme Click on “Change theme” to see all template files used by the view
  • 22. Theming Information in View The template “views-view-field-- field-phone-value .tpl.php” overwrites “views-view-field.tpl.php” for the field_phone.
  • 23. Other Mobile Pages Mobile Home page Library Catalog
  • 24. Mobile Home Page Create a content type called Mobile Service icon image Link Create a view called mobile_services Configure display style as grid to display 4 columns for each row Create a theme file to adjust the spaces The new file has the name as view-view-grid- mobile-services .tpl.php. The new file overwrites views-view-grid.tpl.php (default).
  • 25. Library Catalog Use Web service Develop PHP code to parse the XML and format the display Consortium Arquabrowser (Library Catalog Discovery Server) Georgetown University Website (Drupal) Submit a search request Response an XML with search result
  • 27. Future Plan Add more mobile services such as “My Account”. Add SMS capability and integrate with LibraryH3lp. Improve Library Catalog with access to other libraries in our consortium.
  • 28. Question? Georgetown University Mobile site: http://library.georgetown.edu/mobile Georgetown University Website: http://library.georgetown.edu Drupal iWebkit: http://drupal.org/project/iwebkit Drupal Mobile Tool: http://drupal.org/project/mobile_tools Thank You ! Shian Chang (slc72@georgetown.edu)