It hadn’t occurred to me to use the translator, but that’s not a bad suggestion – no need to do extra work on this unless a more specific need arises. Thanks for the clarification!

 

- Demian

 

From: Julia Bauder [mailto:julia.bauder@gmail.com]
Sent: Tuesday, March 04, 2014 2:38 PM
To: Francis Kayiwa; vufind-general@lists.sourceforge.net
Subject: Re: [VuFind-General] Departments and New Books

 

Hi Francis and all,

When I wrote the Sierra driver, I intentionally made it return codes rather than English labels in many places. My logic was that much of the text that is returned goes through VuFind's translation function anyway, so you ought to be adding the possible responses to your various language.ini files regardless. So why not save a join in the query and make things run a little faster by just returning the codes?

So there are two ways to get the behavior you're expecting on that page. One is to add all of those codes to your en.ini file, along with the human-readable text you want to display to users for each fund. The other is to tweak the query so that it returns the human-readable name for each fund as stored in the fund_myuser table.

If folks think that my logic is wrong and it makes more sense to have the driver return the English-language labels rather than the codes, I'm happy to change those queries and submit a pull request.

Julia

*********************************************

Julia Bauder

Social Studies and Data Services Librarian

Grinnell College Libraries

1111 Sixth Ave.

Grinnell, IA 50112

 

641-269-4431

 

 

On Tue, Mar 4, 2014 at 11:08 AM, Demian Katz <demian.katz@villanova.edu> wrote:

The driver uses the fund_master table to determine fund codes for the purposes of limiting new books. If this does not make sense in your environment, it might make sense to add a “disable” setting similar to the one found in the Voyager driver – see the getFunds() method, and please let me know if you need more detailed guidance.

 

- Demian

 

From: Francis Kayiwa [mailto:francis.kayiwa@gmail.com]
Sent: Tuesday, March 04, 2014 12:01 PM
To: vufind-general@lists.sourceforge.net
Subject: Re: [VuFind-General] Departments and New Books

 

 

 

On Tue, Mar 4, 2014 at 11:56 AM, Demian Katz <demian.katz@villanova.edu> wrote:

This data comes from your ILS driver. Which ILS are you using? There may be something in the relevant .ini file to configure this better (and if there isn’t, it might be a useful extension to the driver).

 

 

I am using the Sierra driver. Will look at the other drivers to see if I can gleam anything from them. 

 

Cheers,

./fxk

 

 

--

philosophy:
       The ability to bear with calmness the misfortunes of our friends.


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
VuFind-General mailing list
VuFind-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vufind-general