Hi, Stephanie!

You are surely welcome (in my case, within my limited knowledge, if we take in account all the technologies VuFind's explorers to the maximum --- and I praise Demian for knowing and remember every little detail as small as it may be [every bit, 0 or 1; Demian is our Higgs Boson --- and his own Higgs Boson :) as Demian turns ideas into 100% working code and helps other do that too]); anyway it is stimulating to find out why something is happening when there is no apparent reason for that (now that House, M.D. as been canceled -- better, there will be no Season 9 --- I think  Hugh Laurie is here in Portugal for a Jazz Festival, as he plays piano, guitar, drums, harmonica, saxophone and also sings --  we turn to software, like House, S.E.s).

For sure you have 

// Setup Translator
if (isset($_GET['mylang'])) {
    $language = $_GET['mylang'];
    setcookie('language', $language, null, '/');

instead of standard

// Setup Translator
if (isset($_POST['mylang'])) {
    $language = $_POST['mylang'];
    setcookie('language', $language, null, '/');

... else those pretty flags in standard view that invoke http://www.katzenbibliothek.de/?mylang={de || en} wouldn't change the interface language...

I don't know a way in PHP and didn't find in Google how to check a variable either if passed by POST or GET so to handle both interfaces (been using PHP for a couple of years or so).

Raw solutions:

1) Check them both --- another "if" check and another $language = $_xxxx;
2) Check them both and store the value of the one not null in a $_SESSION and then use that to feed

// Setup Translator
if (isset($_SESSION['mylang'])) {
    $language = $_SESSION['mylang'];


or a very pragmatic one, Portuguese style (bad codding but gets the job done -- I haven't share so many patches as I could because of these out of the "framework" solutions, but it gets a lighter index.php (homepage of the site), for not having so many "ifs" (that with the extra ones to handle both post and get):

3) Instead of

     <form method="post" name="langForm" action="#" id="langForm" data-ajax="false">

 in web/interface/themes/jquerymobile/layout.tpl you could change

 <form method="post" name="langForm" action="?mylang={en,de}" id="langForm" data-ajax="false">

but you would need to have some javacript to change the value mylang= selected ("de" or "de") --- that is not so hard to do...


Ok, not so goog... BUT, yet another possible one... you could forget about <form .... /> and turn to a ...


4) Straight forward solution, make it a mirror of the solution you have in standard view: buttons with "Deutsch" and "English" with plain / pure hyperlinks links to ?mylang=de and ?mylang=en (not very conventional, truly 100% Portuguese way, but from several tries all were successful: it just appends ?mylang=xx to the current URL, changing the language as desired, that is, instead of being thrown to the homepage, it opens the page where you were but in the new language selected. As we are talking about only two languages possible, it's 100% feasible.
 ,
4.1 You can even have the flags and text in the hyperlink "text" or,
4.2 just the flags like you have in the standard view.

that is, in

just replace:

        <form method="post" name="langForm" action="#" id="langForm" data-ajax="false">
          <div data-role="fieldcontain">
            <label for="langForm_mylang">{translate text="Language"}:</label>
            <select id="langForm_mylang" name="mylang">
              {foreach from=$allLangs key=langCode item=langName}
                <option value="{$langCode}"{if $userLang == $langCode} selected="selected"{/if}>{translate text=$langName}</option>
              {/foreach}
            </select>
            <input type="submit" value="{translate text='Set'}" />
          </div>
        </form>

with the two buttons.

Something like 

  <div class="ui-btn-text"><a rel="external" href="?mylang=de" class="ui-link-inherit">Deutsch</a><a rel="external" href=" ?mylang=de " class="ui-link-inherit"> English</a></div>

should do it... if you want the flags you can placed creating similar entries to ui-link-inherit but with (in jquery.mobile-1.0rc2.min.css)

background-image:url(images/icons-de|en.png;background-repeat:no-repeat

Hey, but this last one (CSS) I'm writing by heart, it may need some adjustment.


Well, enough for now, as perhaps your colleague will come with his own solution. Nevertheless, I leave here some ideas; hope they are useful.

All the best from Aveiro, Portugal,

Filipe B.


--------------------------

Filipe Manuel S. Bento  |  http://about.filipebento.pt/


A book that shall be really a reference to all of us (has a lot of VuFind related entries):
Library Automation and OPAC 2.0: Information Access and Services in the 2.0 Landscape
http://www.igi-global.com/book/library-automation-opac/63870
(read it for free: request your free 60-day e-book exam copy)

Computer Science Specialist | University of Aveiro, Portugal

Electronic & Telecommunication Engineering (5 yrs degree, UA) * MSc in Electronic Information Management (U.Sheffield, UK)

ESA – European Space Agency Industrial Placement (IRS / ESRIN – European Space Research Institute, Frascati [Rome], Italy)

ICPD Doctorate Candidate (UA | U.Porto) * PhD Researcher (UA/CETAC.Media), grant by FCT - Portuguese Foundation for Science and Technology

President/Chair of USE.pt Steering Committee (Portuguese Ex Libris Users’ National Association), http://metis.fe.up.pt/use/ 





On Tue, Jul 24, 2012 at 12:33 PM, Stephanie Funk <stephaniefunk@gmx.de> wrote:

Hi Demian & Filipe,

thanks for your answeres! Now the availability is off from search results.

Demian was right, the guy who helped me with the interface made changes in
web/index.php. I detected it because he left a note in the file. I will ask
him for help now.

Kind regards
Steffi.


Filipe MS Bento (UA) wrote:
>
> Hello, again!
>
> Ok, availability is checked and displayed in this span, result.tpl:
>
>     {if !$summOpenUrl && empty($summURLs)}
>       {translate text='Loading'}...
>     {/if}
>
> So just take it that part of, followed $ sudo rm -rf
> /usr/local/vufind/web/interface/cache/*; sudo rm -rf
>  /usr/local/vufind/web/interface/compile/*;
>
> and no more bye-bye "Verfügbar" and the green dot before it.
>
> Just tried on mine.
>
> The other one, try to place for some seconds in web/conf/config.ini
>
> [System]
> debug            = "1"
>
> and check for any error it may give.
>
> All the best and please let us know if an error is displayed,
>
> Btw, congrats on Katzenbibliothek (great job in customizing the interface)
>
> Filipe
>
> --------------------------
>
> Filipe Manuel S. Bento  |  http://about.filipebento.pt/
>
> Computer Science Specialist | University of Aveiro, Portugal
>
> Electronic & Telecommunication Engineering (5 yrs degree, UA) * MSc in
> Electronic Information Management (U.Sheffield, UK)
>
> ESA – European Space Agency Industrial Placement (IRS / ESRIN – European
> Space Research Institute, Frascati [Rome], Italy)
>
> ICPD Doctorate Candidate (UA | U.Porto) * PhD Researcher (UA/CETAC.Media),
> grant by FCT - Portuguese Foundation for Science and Technology
>
> President/Chair of USE.pt Steering Committee (Portuguese Ex Libris Users’
> National Association), http://metis.fe.up.pt/use/
>
>
>
>
> On Sun, Jul 22, 2012 at 6:22 PM, Filipe MS Bento (UA) <fsb@ua.pt> wrote:
>
>> Sorry,
>>
>> (know I can change back to German)  >  (know I *can't* change back to
>> German)
>>
>>
>> On Sun, Jul 22, 2012 at 6:21 PM, Filipe MS Bento (UA) <fsb@ua.pt> wrote:
>>
>>> (know I can change back to German)
>>
>>
>>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> VuFind-General mailing list
> VuFind-General@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vufind-general
>
>

--
View this message in context: http://old.nabble.com/Customize-mobile-theme-tp34164001p34204799.html
Sent from the vufind-general mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
VuFind-General mailing list
VuFind-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vufind-general