Re: Different menu files for groups

Seth McQuale <[email protected]>
Newsgroups gmane.education.ezproxy
Organization NYIT
Message-ID <[email protected]>
I spent several hours trying to get DocsCustom to work, but failed. I'm 
sure I must have done something wrong, but I spent way too much time 
trying to find the putative mistake. I had trouble, as well, with a 
feature added to EZproxy back in version 1.4a -- ::menu=xyz.htm -- as I 
found blithely using it will screw up the menus. It then occurred to me 
(I also had outside help) to treat the "::menu=..." element like a 
variable and pepper user.txt with alternating statements. A kludge, 
certainly, but it seems to work. viz,

::menu=menu.htm  [Start out insisting upon the default menu file.]
::group=group1
::group1 stuff

::menu=xyz.htm

::group=group2xyz
::group2xyz stuff

::menu=menu.htm  [Return to default for the LDAP users. Alternatively, 
add a menu for a third group.]

::group=group3123
::LDAP
LDAP stuff
/LDAP

::menu=menu.htm  [I was warned that LDAP is a bit tricky, so I bracketed 
it with identical default menu statements to be safe. It might not be 
necessary, but it seems to work.]

::menu=yetanother.htm  [...And so on.]
::group=xxxxxxxxxxxx
...

::menu=menu.htm [I closed user.txt with the default to be safe.]


This way, the different menu files can be different redirects to 
fancier, and more relevant resource lists on the school's website. For 
us, the different resource list pages are formatted in accordance with 
institutional policy.



----------------------------
Seth McQuale, Systems Librarian
New York Institute of Technology
Old Westbury, NY  11568-8000
[email protected]
(516) 686-1164 [fax (516) 686-1320]
----------------------------

On 9/20/2019 5:56 AM, Laurence Lockton wrote:
> Hi Seth,
> 
> I'm pretty sure you're right, it goes in user.txt, but I just tried and 
> I couldn't get it to work either. Sorry.
> 
> Laurence
> 
> -----Original Message-----
> From: EZproxy List <[email protected]> On Behalf Of Seth McQuale
> Sent: 19 September 2019 17:56
> To: [email protected]
> Subject: Re: [EZPROXY-L] Different menu files for groups
> 
> I tried MenuByGroups but it didn't work, probably because our menu.htm 
> file was edited to redirect the user to a web page listing all available 
> online resources. That's how we want our users to see our resources.
> 
> I have been experimenting with IfGroupMember -- which would seem to do 
> what I am looking to do -- as in:
> 
> IfGroupMember XYZ; DocsCustom xyz
> 
> ...where "XYZ" is the group requiring a limited menu, and "xyz" is the 
> subdirectory docs/custom/xyz, which contains a custom menu.htm for the 
> members of XYZ group. It still doesn't work, however. It insists on 
> using docs/menu.htm, which redirects to a larger list of available 
> resources. I tried placing the IfGroupMember line in different places in 
> user.txt to no avail. Different groups are authenticated in different 
> ways -- mostly using LDAP, although XYZ is authenticated via a flat text 
> file. If this directive should work, what am I doing wrong? Is it 
> supposed to go in config.txt? The documentation doesn't say explicitly, 
> but I assumed it goes in user.txt.
> 
> ----------------------------
> Seth McQuale, Systems Librarian
> New York Institute of Technology
> Old Westbury, NY  11568-8000
> [email protected]
> (516) 686-1164 [fax (516) 686-1320]
> ----------------------------
> 
> On 9/19/2019 3:47 AM, Laurence Lockton wrote:
>> Hi Seth,
>> 
>> Option MenuByGroups
>> https://help.oclc.org/Library_Management/EZproxy/Configure_resources/O
>> ption_MenuByGroups
>> 
>> Cheers,
>> Laurence Lockton
>> University of Bath
>> UK
>> 
>> -----Original Message-----
>> From: EZproxy List <[email protected]> On Behalf Of Seth McQuale
>> Sent: 18 September 2019 18:42
>> To: [email protected]
>> Subject: [EZPROXY-L] Different menu files for groups
>> 
>> Greetings,
>> 
>> What's the best way to specify different menu files for members of 
>> different groups? Some of our groups have constrained sets of 
>> resources that they are allowed to access, so I don't want them to be 
>> mislead by full lists of our online resources.
>> 
>> --
>> 
>> ----------------------------
>> Seth McQuale, Systems Librarian
>> New York Institute of Technology
>> Old Westbury, NY  11568-8000
>> [email protected]
>> (516) 686-1164 [fax (516) 686-1320]
>> ----------------------------
>> 

********************************************************************
If you wish to stop receiving messages from EZPROXY-L or otherwise amend your preferences,
you can do so <a href="https://www.oclc.org/forms/internet-subscription.en.html">here</a>.
Or email [email protected] including the relevant text below in the body of the email:
• To unsubscribe: "unsubscribe EZPROXY-L"
• To receive EZPROXY-L in digest form: "set EZPROXY-L digest"
• To set your options to no mail: "set EZPROXY-L nomail"
• To receive these messages in the future "set EZPROXY-L mail"
To contact the list owners directly please send your message to [email protected].
If you unsubscribe from EZPROXY-L, you will no longer be able to participate in any of its features, including the public forum.
To unsubscribe from all OCLC marketing email communications
(including all OCLC listervs, OCLC Connect emails, OCLC event notifications, product/service/cooperative updates and newsletters),
please email us at [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.