Re: [Koha-devel] Cataloguer's info in MARC field

2015-10-02 Thread Katrin Fischer
Hi Marc, documenting this is definitely a good idea. :) An explanation on the help page and maybe a short hint about the existance of placeholders on the form? Katrin Am 29.09.2015 um 08:03 schrieb Marc Véron: > Hi Katrin, > > I tested as well on some subfields, it worked fine with 'user'. >

Re: [Koha-devel] Cataloguer's info in MARC field

2015-10-02 Thread Marc Véron
Hi Katrin, I filed a Bug: Bug 14941 - Subfield defaults: Add information about substitutable values Marc Am 02.10.2015 um 08:38 schrieb Katrin Fischer: > Hi Marc, > > documenting this is definitely a good idea. :) An explanation on the > help page and maybe a short hint about the existance of

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-29 Thread Marc Véron
Hi Katrin, I tested as well on some subfields, it worked fine with 'user'. Bug 7045 mentions more replaceable strings: , MM and DD I successfully tested with 'user DD-MM-', resulting in something like: testuser 29-09-2015 However I do not find any documentation about the replaceable

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-28 Thread Katrin Fischer
Hi, there is a somewhat hidden feature you could use, described on bug 7045: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7045 If you add 'user' as the default value for a subfield in your bibliographic frameworks, the field will be automatically filled with the staff user's surname.

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-24 Thread Philippe Blouin
Like that, I doubt your userenv will contain anything. You first need to log in. But you could add the code in cataloguing/addbooks.pl for example. Somewhere after the my ( $template, $loggedinuser, $cookie ) = *get_template_and_user*( ... You could have something like warn "AKAFORTES

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-24 Thread akafortes
Thank you very much That was just what I needed Based on the "EXAMPLE.pl", I just did this: use Modern::Perl; use C4::Auth; use C4::Output; my $builder= sub { my $params = shift; my $id = $params->{id}; my $user=C4::Context->userenv->{'surname'}; return qq| |; };

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-24 Thread Michael Hafen
I think Philippe is probably right about userenv not being set in your plugin. If that is the case you could try calling get_template_and_user() ( which calls checkauth() ), or calling checkauth() directly, to build userenv for you. On Thu, Sep 24, 2015 at 6:06 AM, Philippe Blouin <

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-22 Thread Christopher Davis
Akafortes, I was always instructed to store such information within the MARC 583 field during my cataloging training. More information on the MARC 583 field can be found at . FWIW, Christopher Davis, MLS Systems & E-Services Librarian Uintah

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-22 Thread Hector Castro
> I've seen the 040 Modifying Agency, and have often though 'wouldn't it be > nice if there was a MARC plugin in the framework to automate filling that > field with the librarians name'. Maybe someone should add a feature > request to bugzilla for that. > Yep! A better solution would be file a

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-22 Thread Michael Hafen
I've seen the 040 Modifying Agency, and have often though 'wouldn't it be nice if there was a MARC plugin in the framework to automate filling that field with the librarians name'. Maybe someone should add a feature request to bugzilla for that. On Tue, Sep 22, 2015 at 9:41 AM, Indranil Das

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-22 Thread Philippe Blouin
Are you looking for the information itself, like the content of C4::Context->userenv ? It is a hash with the logged user info, like C4::Context->userenv->{'surname'} (i think :) ) Regards, Philippe Blouin, Responsable du développement informatique Tél. : (888) 604-2627

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-22 Thread G.K.MANJUNATH
Marc tag 856$l is for Logon (NR). I do not know whether the login code gets added to this field. If can customise you may be able store it. check at http://www.loc.gov/marc/bibliographic/bd856.html tks g.k.m On Tue, 22 Sep 2015, akafortes wrote: Hello, is it possible to get the

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-22 Thread akafortes
Hello G.K.MANJUNATH, thank you for your answer but I'm afraid that's not what I'm looking for. It's my understanding that this field is used for when the specified record is stored in an electronic form and in this field you save information about its location and maybe credentials (or something

Re: [Koha-devel] Cataloguer's info in MARC field

2015-09-22 Thread Indranil Das Gupta
Hi, On Tue, Sep 22, 2015 at 6:46 PM, akafortes wrote: > Hello G.K.MANJUNATH, > thank you for your answer but I'm afraid that's not what I'm looking for. > It's my understanding that this field is used for when the specified record > is stored in an electronic form and in