[Koha-bugs] [Bug 6035] Mobile interface for OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 9 16:46:42 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6035

Ian Walls <koha.sekjal at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |koha.sekjal at gmail.com

--- Comment #3 from Ian Walls <koha.sekjal at gmail.com> ---
Stow Munroe Falls Public Library has created a mobile OPAC and shared it on
gitorious:  http://gitorious.org/koha-mobile-web/kohaclone

Methodology:  creates a new directory, koha-tmpl/mobile (and another dir for
icons), as well as 11 new mobile-opac-*.pl files in the opac dir.  The bulk of
the mobile templates look to actually be in koha-tmpl/opac-tmpl/prog/en, with
the mobile-* prefix.  Many of the styles and features are hardcoded to work for
SMFPL at this time.

New mobile-opac-*.pl scripts, with differences from their opac-*.pl originals:

mobile-opac-detail.pl : calls the mobile template instead, and has hardcoded
changes to the definition of "lost"
mobile-opac-main.pl : calls mobile template instead
mobile-opac-modrequest.pl : redirects to the mobile URL instead
mobile-opac-renew.pl : mobile template and mobile URL redirect
mobile-opac-reserve.pl : mobile template and mobile URL redirect
mobile-opac-search.pl : mobile templates (many), mobile URL redirect, and
default numbers of results and pages to show
mobile-opac-shelves.pl : mobile template
mobile-opac-user.pl : mobile template

These files are new, and I'm not sure what their functions are

mobile-opac-detail-hold.pl
mobile-opac-main-hold.pl
mobile-opac-user-hold.pl

So, it looks like by adding a universal piece of logic to determine whether to
use the mobile template or not, we could avoid having duplicate copies of these
files.  The redirects wouldn't need to be different, because the URLs would
stay the same between mobile and desktop versions.

Additional bug reports could be filed to handle the other differences (like
default numbers of results, and "lost" definition.

Once the Perl scripts are reconciled, it just becomes a matter of moving the
templates into a new directory (koha-tmpl/opac-tmpl/mobile ?), and generalizing
for other institutions.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list