|
Lines 107-124
sub GetAuthMARCFromKohaField {
Link Here
|
| 107 |
|
107 |
|
| 108 |
=head2 SearchAuthorities |
108 |
=head2 SearchAuthorities |
| 109 |
|
109 |
|
| 110 |
(\@finalresult, $nbresults)= &SearchAuthorities($tags, $and_or, |
110 |
( \@finalresult, $nbresults ) = SearchAuthorities( |
| 111 |
$excluding, $operator, $value, $offset,$length,$authtypecode, |
111 |
$tags, $and_or, |
| 112 |
$sortby[, $skipmetadata]) |
112 |
$excluding, $operator, $value, $offset, $length, $authtypecode, |
|
|
113 |
$sortby, $skipmetadata |
| 114 |
); |
| 115 |
|
| 116 |
Note: The parameters and_or and excluding are not supported currently. |
| 117 |
The subexpressions in $tags are hardcoded with OR unless you pass the |
| 118 |
parameter authtypecode. In the latter case AND is used. |
| 113 |
|
119 |
|
| 114 |
returns ref to array result and count of results returned |
120 |
Returns a results arrayref and a count of results |
| 115 |
|
121 |
|
| 116 |
=cut |
122 |
=cut |
| 117 |
|
123 |
|
| 118 |
sub SearchAuthorities { |
124 |
sub SearchAuthorities { |
|
|
125 |
|
| 126 |
# NOTE: The parameters $and_or, $excluding below are UNUSED here. |
| 119 |
my ( $tags, $and_or, $excluding, $operator, $value, $offset, $length, $authtypecode, $sortby, $skipmetadata ) = @_; |
127 |
my ( $tags, $and_or, $excluding, $operator, $value, $offset, $length, $authtypecode, $sortby, $skipmetadata ) = @_; |
| 120 |
|
128 |
|
| 121 |
# warn Dumper($tags, $and_or, $excluding, $operator, $value, $offset,$length,$authtypecode,$sortby); |
|
|
| 122 |
my $dbh = C4::Context->dbh; |
129 |
my $dbh = C4::Context->dbh; |
| 123 |
$sortby = "" unless $sortby; |
130 |
$sortby = "" unless $sortby; |
| 124 |
my $query; |
131 |
my $query; |
| 125 |
- |
|
|