Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
afi
opacce
Commits
3b8f7ad4
Commit
3b8f7ad4
authored
Jul 25, 2019
by
Laurent
Browse files
dev #92386 PMB serial articles : fix RT
parent
48c9cc96
Pipeline
#8203
failed with stage
in 30 minutes and 13 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
FEATURES/92386
FEATURES/92386
+0
-10
application/modules/opac/controllers/NoticeajaxController.php
...ication/modules/opac/controllers/NoticeajaxController.php
+2
-2
library/Class/Codification.php
library/Class/Codification.php
+1
-1
library/Class/Notice.php
library/Class/Notice.php
+6
-0
No files found.
FEATURES/92386
deleted
100644 → 0
View file @
48c9cc96
'92386' =>
['Label' => $this->_('Import périodiques PMB'),
'Desc' => '',
'Image' => '',
'Video' => '',
'Category' => '',
'Right' => function($feature_description, $user) {return true;},
'Wiki' => '',
'Test' => '',
'Date' => '2019-05-15'],
\ No newline at end of file
application/modules/opac/controllers/NoticeajaxController.php
View file @
3b8f7ad4
...
...
@@ -115,8 +115,8 @@ class NoticeAjaxController extends ZendAfi_Controller_Action {
public
function
exemplairesAction
()
{
if
(
(
$first_item
=
$this
->
notice
->
getFirstExemplaire
())
&&
$f
irst
_i
tem
->
is
TypeSerialArticle
())
$this
->
notice
=
$
first_item
->
getPMBSerialRecord
();
if
(
$this
->
notice
->
isF
irst
I
temTypeSerialArticle
())
$this
->
notice
=
$
this
->
notice
->
getFirstExemplaire
()
->
getPMBSerialRecord
();
$nb_notices_oeuvre
=
Class_Notice
::
countBy
([
'clef_oeuvre'
=>
$this
->
notice
->
getClefOeuvre
(),
'id_notice not'
=>
$this
->
notice
->
getId
()]);
...
...
library/Class/Codification.php
View file @
3b8f7ad4
...
...
@@ -271,7 +271,7 @@ class Class_Codification {
if
(
!
$notice
->
isPeriodique
())
return
$me
->
_
(
'Voir tous les tomes'
);
if
(
(
$first_item
=
$notice
->
getFirstExemplaire
())
&&
$f
irst
_i
tem
->
is
TypeSerialArticle
())
if
(
$notice
->
isF
irst
I
temTypeSerialArticle
())
return
$me
->
_
(
'Voir tous les articles de ce numéro'
);
return
$me
->
_
(
'Voir tous les numéros'
);
...
...
library/Class/Notice.php
View file @
3b8f7ad4
...
...
@@ -1705,6 +1705,12 @@ class Class_Notice extends Storm_Model_Abstract {
return
$type_doc
->
isSonore
();
}
public
function
isFirstItemTypeSerialArticle
()
{
return
(
$first_item
=
$this
->
getFirstExemplaire
())
&&
$first_item
->
isTypeSerialArticle
();
}
public
function
toUnimarcISO2709
()
{
$unimarc
=
new
Class_NoticeUnimarc_Writer
();
$unimarc
->
setNotice
(
$this
->
getUnimarc
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment