Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display doc_type following Bibliotheque document #54

Merged
merged 2 commits into from
Mar 15, 2018

Conversation

dragonleman
Copy link
Contributor

No description provided.

@dragonleman dragonleman requested a review from ebreton March 15, 2018 11:55
Copy link
Contributor

@ebreton ebreton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tout bon pour merge!

J'aime beaucoup la nouvelle structure de marc21xml.py Très claire ! ⭐️

@@ -79,7 +81,7 @@ def get_sorted_by_doc_types(notices):
for doc_type in DOC_TYPE_ORDERED:
index = 0
for head in groups_head:
if head[0] == doc_type[0]:
if head == doc_type[0]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

selon discussion, proposition de passer DOC_TYPE_ORDERED en dictionnaire, et pour cette ligne, utiliser items

else:
notices = sorted(notices, key=lambda k: k['Publisher_Date'], reverse=True)
notices = sorted(notices, key=lambda k: k['Publication_Year'], reverse=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (pour plus tard): utiliser des objets plutôt que des dictionnaires


$('.navbar-nav>li>a').on('click', function(){
$('.navbar-collapse').collapse('hide');
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

à checker (copy paste raté?)

@dragonleman dragonleman merged commit 147d490 into master Mar 15, 2018
@dragonleman dragonleman deleted the doc_type_display branch March 16, 2018 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants